Examples of SSDataEvent


Examples of org.zkoss.zss.engine.event.SSDataEvent

      return;
    }
    final Set<Ref> last = info.getToEval();
    final Set<Ref> all = info.getAffected();
    if (event != null && ref != null) {
      refBook.publish(new SSDataEvent(event, ref, orient));
    }
    //must delete and add in batch, or merge ranges can interfere to each other
    for(MergeChange change : info.getMergeChanges()) {
      final Ref orgMerge = change.getOrgMerge();
      if (orgMerge != null) {
        refBook.publish(new SSDataEvent(SSDataEvent.ON_MERGE_DELETE, orgMerge, orient));
      }
    }
    for(MergeChange change : info.getMergeChanges()) {
      final Ref merge = change.getMerge();
      if (merge != null) {
        refBook.publish(new SSDataEvent(SSDataEvent.ON_MERGE_ADD, merge, orient));
      }
    }
    BookHelper.reevaluateAndNotify((Book) _sheet.getWorkbook(), last, all);
  }
View Full Code Here

Examples of org.zkoss.zss.engine.event.SSDataEvent

  public static void notifyCellChanges(Book book, Set<Ref> all) {
    if (all != null) {
      for(Ref ref : all) {
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        refBook.publish(new SSDataEvent(SSDataEvent.ON_CONTENTS_CHANGE, ref, SSDataEvent.MOVE_NO));
      }
    }
  }
View Full Code Here

Examples of org.zkoss.zss.engine.event.SSDataEvent

  public static void notifySizeChanges(Book book, Set<Ref> all) {
    if (all != null) {
      for(Ref ref : all) {
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        refBook.publish(new SSDataEvent(SSDataEvent.ON_SIZE_CHANGE, ref, SSDataEvent.MOVE_NO));
      }
    }
  }
View Full Code Here

Examples of org.zkoss.zss.engine.event.SSDataEvent

  public static void notifyWidgetChanges(Set<Ref> all) {
    if (all != null) {
      for(Ref ref : all) {
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        refBook.publish(new SSDataEvent(SSDataEvent.ON_WIDGET_CHANGE, ref, SSDataEvent.MOVE_NO));
      }
    }
  }
View Full Code Here

Examples of org.zkoss.zss.engine.event.SSDataEvent

 
  public static void notifyChartAdd(Ref ref, ZssChartX chartX) {
    if (ref != null) {
      final RefSheet refSheet = ref.getOwnerSheet();
      final RefBook refBook = refSheet.getOwnerBook();
      refBook.publish(new SSDataEvent(SSDataEvent.ON_CHART_ADD, ref, chartX));
    }
  }
View Full Code Here

Examples of org.zkoss.zss.engine.event.SSDataEvent

 
  public static void notifyChartDelete(Ref ref, Chart chart) {
    if (ref != null) {
      final RefSheet refSheet = ref.getOwnerSheet();
      final RefBook refBook = refSheet.getOwnerBook();
      refBook.publish(new SSDataEvent(SSDataEvent.ON_CHART_DELETE, ref, chart));
    }
  }
View Full Code Here

Examples of org.zkoss.zss.engine.event.SSDataEvent

  public static void notifyPictureAdd(Ref ref, Picture picture) {
    if (ref != null) {
      final RefSheet refSheet = ref.getOwnerSheet();
      final RefBook refBook = refSheet.getOwnerBook();
      refBook.publish(new SSDataEvent(SSDataEvent.ON_PICTURE_ADD, ref, picture));
    }
  }
View Full Code Here

Examples of org.zkoss.zss.engine.event.SSDataEvent

  public static void notifyPictureDelete(Ref ref, Picture picture) {
    if (ref != null) {
      final RefSheet refSheet = ref.getOwnerSheet();
      final RefBook refBook = refSheet.getOwnerBook();
      refBook.publish(new SSDataEvent(SSDataEvent.ON_PICTURE_DELETE, ref, picture));
    }
  }
View Full Code Here

Examples of org.zkoss.zss.engine.event.SSDataEvent

  public static void notifyPictureUpdate(Ref ref, Picture picture) {
    if (ref != null) {
      final RefSheet refSheet = ref.getOwnerSheet();
      final RefBook refBook = refSheet.getOwnerBook();
      refBook.publish(new SSDataEvent(SSDataEvent.ON_PICTURE_UPDATE, ref, picture));
    }
  }
View Full Code Here

Examples of org.zkoss.zss.engine.event.SSDataEvent

  public static void notifyChartUpdate(Ref ref, Chart chart) {
    if (ref != null) {
      final RefSheet refSheet = ref.getOwnerSheet();
      final RefBook refBook = refSheet.getOwnerBook();
      refBook.publish(new SSDataEvent(SSDataEvent.ON_CHART_UPDATE, ref, chart));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.