Package org.zkoss.zss.engine

Examples of org.zkoss.zss.engine.RefBook


  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));
      }
    }
  }
View Full Code Here


  }
  /*package*/ static void notifyGridlines(Book book, Set<Ref> all, boolean show) {
    if (all != null) {
      for(Ref ref : all) {
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        refBook.publish(new SSDataEvent(SSDataEvent.ON_DISPLAY_GRIDLINES, ref, show));
      }
    }
  }
View Full Code Here

 
  /*package*/ static void notifyProtectSheet(Book book, Set<Ref> all,  String password) {
    if (all != null) {
      for(Ref ref : all) {
        final RefSheet refSheet = ref.getOwnerSheet();
        final RefBook refBook = refSheet.getOwnerBook();
        refBook.publish(new SSDataEvent(SSDataEvent.ON_PROTECT_SHEET, ref, password));
      }
    }
  }
View Full Code Here

    }
  }
 
  /*package*/ static void notifyMoveFriendFocus(Ref ref, Object obj) {
    final RefSheet refSheet = ref.getOwnerSheet();
    final RefBook refBook = refSheet.getOwnerBook();
    refBook.publish(new SSDataEvent(SSDataEvent.ON_FRIEND_FOCUS_MOVE, ref, obj));
  }
View Full Code Here

    refBook.publish(new SSDataEvent(SSDataEvent.ON_FRIEND_FOCUS_MOVE, ref, obj));
  }
 
  /*package*/ static void notifyDeleteFriendFocus(Ref ref, Object obj) {
    final RefSheet refSheet = ref.getOwnerSheet();
    final RefBook refBook = refSheet.getOwnerBook();
    refBook.publish(new SSDataEvent(SSDataEvent.ON_FRIEND_FOCUS_DELETE, ref, obj));
  }
View Full Code Here

    refBook.publish(new SSDataEvent(SSDataEvent.ON_FRIEND_FOCUS_DELETE, ref, obj));
  }
 
  /*package*/ static void notifyDeleteSheet(Ref ref, Object[] namePairs) {
    final RefSheet refSheet = ref.getOwnerSheet();
    final RefBook refBook = refSheet.getOwnerBook();
    refBook.publish(new SSDataEvent(SSDataEvent.ON_SHEET_DELETE, ref, namePairs));
  }
View Full Code Here

    refBook.publish(new SSDataEvent(SSDataEvent.ON_SHEET_DELETE, ref, namePairs));
  }
 
  /*package*/ static void notifyCreateSheet(Ref ref, String sheetName) {
    final RefSheet refSheet = ref.getOwnerSheet();
    final RefBook refBook = refSheet.getOwnerBook();
    refBook.publish(new SSDataEvent(SSDataEvent.ON_SHEET_CREATE, ref, sheetName));
  }
View Full Code Here

    refBook.publish(new SSDataEvent(SSDataEvent.ON_SHEET_CREATE, ref, sheetName));
  }

  /*package*/ static void notifyChangeSheetName(Ref ref, String sheetName) {
    final RefSheet refSheet = ref.getOwnerSheet();
    final RefBook refBook = refSheet.getOwnerBook();
    refBook.publish(new SSDataEvent(SSDataEvent.ON_SHEET_NAME_CHANGE, ref, sheetName));
  }
View Full Code Here

    refBook.publish(new SSDataEvent(SSDataEvent.ON_SHEET_NAME_CHANGE, ref, sheetName));
  }
 
  /*package*/ static void notifyChangeSheetOrder(Ref ref, String sheetName) {
    final RefSheet refSheet = ref.getOwnerSheet();
    final RefBook refBook = refSheet.getOwnerBook();
    refBook.publish(new SSDataEvent(SSDataEvent.ON_SHEET_ORDER_CHANGE, ref, sheetName));
  }
View Full Code Here

    CellRefImpl srcRef = null;
    boolean isOld = false;
    final String srcSheetName = ec.getSheetName();
    final int srcRow = ec.getRowIndex();
    final int srcCol = ec.getColumnIndex();
    final RefBook srcRefBook = BookHelper.getOrCreateRefBook(_book);
    final RefSheet srcRefSheet = srcRefBook.getOrCreateRefSheet(srcSheetName);
    if (ctx != null) {
      final String srcRefKey = srcRefBook.getBookName()+"]"+srcSheetName+"!"+new CellReference(srcRow, srcCol).formatAsString();
      final Object[] refs = (Object[]) ctx.getAttribute(srcRefKey);
      if (refs != null) {
        srcRef = (CellRefImpl) refs[0];
        isOld = ((Boolean)refs[1]).booleanValue();
      } else {
View Full Code Here

TOP

Related Classes of org.zkoss.zss.engine.RefBook

Copyright © 2018 www.massapicom. 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.