Package org.zkoss.zss.engine

Examples of org.zkoss.zss.engine.RefBook.publish()


  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));
      }
    }
  }
 
  public static void notifySizeChanges(Book book, Set<Ref> all) {
View Full Code Here


  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));
      }
    }
  }
 
  public static void notifyWidgetChanges(Set<Ref> all) {
View Full Code Here

  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));
      }
    }
  }
 
  public static void notifyChartAdd(Ref ref, ZssChartX chartX) {
View Full Code Here

 
  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));
    }
  }
 
  public static void notifyChartDelete(Ref ref, Chart chart) {
    if (ref != null) {
View Full Code Here

 
  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));
    }
  }

  public static void notifyPictureAdd(Ref ref, Picture picture) {
    if (ref != null) {
View Full Code Here

  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));
    }
  }

  public static void notifyPictureDelete(Ref ref, Picture picture) {
    if (ref != null) {
View Full Code Here

  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));
    }
  }

  public static void notifyPictureUpdate(Ref ref, Picture picture) {
    if (ref != null) {
View Full Code Here

  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));
    }
  }

  public static void notifyChartUpdate(Ref ref, Chart chart) {
    if (ref != null) {
View Full Code Here

  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));
    }
  }

  public static void notifyBtnChanges(Set<Ref> all) {
    if (all != null) {
View Full Code Here

  public static void notifyBtnChanges(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_BTN_CHANGE, ref, SSDataEvent.MOVE_NO));
      }
    }
  }
  /*package*/ static void notifyGridlines(Book book, Set<Ref> all, boolean show) {
    if (all != null) {
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.