Package org.zkoss.zss.model

Examples of org.zkoss.zss.model.Worksheet


      final Object payload = event.getPayload();
      updateChartWidget(sheet, (Chart) payload);
    }
    private void onPictureAdd(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      final Object payload = event.getPayload();
      addPictureWidget(sheet, (Picture) payload);
    }
View Full Code Here


      final Object payload = event.getPayload();
      addPictureWidget(sheet, (Picture) payload);
    }
    private void onPictureDelete(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      final Object payload = event.getPayload();
      deletePictureWidget(sheet, (Picture) payload);
    }
View Full Code Here

      final Object payload = event.getPayload();
      deletePictureWidget(sheet, (Picture) payload);
    }
    private void onPictureUpdate(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      final Object payload = event.getPayload();
      updatePictureWidget(sheet, (Picture) payload);
    }
View Full Code Here

      final Object payload = event.getPayload();
      updatePictureWidget(sheet, (Picture) payload);
    }
    private void onWidgetChange(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      final int left = rng.getLeftCol();
      final int top = rng.getTopRow();
      final int right = rng.getRightCol();
      final int bottom = rng.getBottomRow();
      updateWidget(sheet, left, top, right, bottom);
View Full Code Here

      final int bottom = rng.getBottomRow();
      updateWidget(sheet, left, top, right, bottom);
    }
    private void onContentChange(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      final int left = rng.getLeftCol();
      final int top = rng.getTopRow();
      final int right = rng.getRightCol();
      int bottom = rng.getBottomRow();
      updateWidget(sheet, left, top, right, bottom);
      updateCell(sheet, left, top, right, bottom);
      final int lastrow = sheet.getLastRowNum();
      if (bottom > lastrow) {
        bottom = lastrow;
      }
      org.zkoss.zk.ui.event.Events.postEvent(new CellSelectionEvent(Events.ON_CELL_CHANGE, Spreadsheet.this, sheet, CellSelectionEvent.SELECT_CELLS, left, top, right,  bottom));
    }
View Full Code Here

      }
      org.zkoss.zk.ui.event.Events.postEvent(new CellSelectionEvent(Events.ON_CELL_CHANGE, Spreadsheet.this, sheet, CellSelectionEvent.SELECT_CELLS, left, top, right,  bottom));
    }
    private void onRangeInsert(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      if (!getSelectedSheet().equals(sheet))
        return;
      _updateCellId.next();
      if (rng.isWholeColumn()) {
        final int left = rng.getLeftCol();
View Full Code Here

        ((ExtraCtrl) getExtraCtrl()).insertRows(sheet, top, bottom - top + 1);
      }
    }
    private void onRangeDelete(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      if (!getSelectedSheet().equals(sheet))
        return;
      _updateCellId.next();
      if (rng.isWholeColumn()) {
        final int left = rng.getLeftCol();
View Full Code Here

      }
    }
    private void onMergeChange(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Ref orng = event.getOriginalRef();
      final Worksheet sheet = getSheet(orng);
      if (!getSelectedSheet().equals(sheet))
        return;
      ((ExtraCtrl) getExtraCtrl()).updateMergeCell(sheet,
          rng.getLeftCol(), rng.getTopRow(), rng.getRightCol(), rng.getBottomRow(),
          orng.getLeftCol(), orng.getTopRow(), orng.getRightCol(), orng.getBottomRow());
View Full Code Here

          rng.getLeftCol(), rng.getTopRow(), rng.getRightCol(), rng.getBottomRow(),
          orng.getLeftCol(), orng.getTopRow(), orng.getRightCol(), orng.getBottomRow());
    }
    private void onMergeAdd(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      if (!getSelectedSheet().equals(sheet))
        return;
      ((ExtraCtrl) getExtraCtrl()).addMergeCell(sheet,
          rng.getLeftCol(), rng.getTopRow(), rng.getRightCol(), rng.getBottomRow());
View Full Code Here

          rng.getLeftCol(), rng.getTopRow(), rng.getRightCol(), rng.getBottomRow());

    }
    private void onMergeDelete(SSDataEvent event) {
      final Ref orng = event.getRef();
      final Worksheet sheet = getSheet(orng);
      if (!getSelectedSheet().equals(sheet))
        return;
      ((ExtraCtrl) getExtraCtrl()).deleteMergeCell(sheet, orng.getLeftCol(),
          orng.getTopRow(), orng.getRightCol(), orng.getBottomRow());
    }
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.