Package org.zkoss.zss.model

Examples of org.zkoss.zss.model.Worksheet


          orng.getTopRow(), orng.getRightCol(), orng.getBottomRow());
    }
    private void onSizeChange(SSDataEvent event) {
      //TODO shall pass the range over to the client side and let client side do it; rather than iterate each column and send multiple command
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      if (!getSelectedSheet().equals(sheet))
        return;
      if (rng.isWholeColumn()) {
        final int left = rng.getLeftCol();
        final int right = rng.getRightCol();
View Full Code Here


        syncFriendFocusesPosition(rect.getLeft(), top, rect.getRight(), rect.getBottom());
      }
    }
    private void onBtnChange(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      if (!getSelectedSheet().equals(sheet))
        return;
      updateAutoFilter(sheet.getAutoFilter());
    }
View Full Code Here

        return;
      updateAutoFilter(sheet.getAutoFilter());
    }
    private void onDisplayGridlines(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      if (!getSelectedSheet().equals(sheet))
        return;
      setDisplayGridlines(event.isShow());
    }
View Full Code Here

        return;
      setDisplayGridlines(event.isShow());
    }
    private void onProtectSheet(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      if (!getSelectedSheet().equals(sheet))
        return;
      setProtectSheet(event.getProtect());
    }
View Full Code Here

 
  /**
   * @param selection
   */
  public void doHideRow(Rect selection) {
    Worksheet sheet = _spreadsheet.getSelectedSheet();
    if (sheet != null && isValidSelection(selection)) {
      if (!sheet.getProtect()) {
        Ranges
        .range(sheet, selection.getTop(), selection.getLeft(), selection.getBottom(), selection.getRight())
        .getRows()
        .setHidden(true)
      } else {
View Full Code Here

  }
  /**
   * @param selection
   */
  public void doUnhideRow(Rect selection) {
    Worksheet sheet = _spreadsheet.getSelectedSheet();
    if (sheet != null && isValidSelection(selection)) {
      if (!sheet.getProtect()) {
        Ranges
        .range(sheet, selection.getTop(), selection.getLeft(), selection.getBottom(), selection.getRight())
        .getRows()
        .setHidden(false)
      } else {
View Full Code Here

  }
  /**
   * @param selection
   */
  public void doUnhideColumn(Rect selection) {
    Worksheet sheet = _spreadsheet.getSelectedSheet();
    if (sheet != null && isValidSelection(selection)) {
      if (!sheet.getProtect()) {
        Ranges
        .range(sheet, selection.getTop(), selection.getLeft(), selection.getBottom(), selection.getRight())
        .getColumns()
        .setHidden(false)
      } else {
View Full Code Here

  }
  /**
   * @param selection
   */
  public void doHideColumn(Rect selection) {
    Worksheet sheet = _spreadsheet.getSelectedSheet();
    if (sheet != null && isValidSelection(selection)) {
      if (!sheet.getProtect()) {
        Ranges
        .range(sheet, selection.getTop(), selection.getLeft(), selection.getBottom(), selection.getRight())
        .getColumns()
        .setHidden(true)
      } else {
View Full Code Here

  public void doInsertPicture(UploadEvent evt) {
    if (_insertPictureSelection == null) {
      return;
    }
   
    Worksheet sheet = _spreadsheet.getSelectedSheet();
    if (sheet != null) {
      if (!sheet.getProtect()) {
        final Media media = evt.getMedia();
        if (media instanceof AImage) {
          AImage image = (AImage)media;
          Ranges
          .range(_spreadsheet.getSelectedSheet())
View Full Code Here

  public void doBeforeInsertPicture(Rect selection) {
    _insertPictureSelection = selection;
  }
 
  protected void setVerticalAlign(final short alignment, Rect selection) {
    Worksheet sheet = _spreadsheet.getSelectedSheet();
    if (sheet != null && isValidSelection(selection)) {
      if (!sheet.getProtect()) {
        Utils.visitCells(sheet, selection, new CellVisitor(){
          @Override
          public void handle(CellVisitorContext context) {
            final short srcAlign = context.getVerticalAlignment();
View Full Code Here

TOP

Related Classes of org.zkoss.zss.model.Worksheet

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.