Package org.zkoss.zss.engine

Examples of org.zkoss.zss.engine.Ref


    }
    private String nextFocusColor() {
      return FOCUS_COLORS[_colorIndex++ % FOCUS_COLORS.length];
    }
    private void onFriendFocusMove(SSDataEvent event) {
      final Ref rng = event.getRef();
      Worksheet sheet = getSheet(rng);
      if (sheet == null) {//ZSS-209: book may removed
        return;
      }
      if (sheet.equals(_selectedSheet)) { //same sheet
View Full Code Here


          moveEditorFocus(id, focus.name, ofocus != null ? ofocus.color : nextFocusColor(), focus.row, focus.col);
        }
      }
    }
    private void onFriendFocusDelete(SSDataEvent event) {
      final Ref rng = event.getRef();
      Worksheet sheet = BookHelper.getSheet(_book, rng.getOwnerSheet());
      if (sheet == null) {//ZSS-209: book may removed
        return;
      }
      if (sheet.equals(_selectedSheet)) { //same sheet
        final Focus focus = (Focus) event.getPayload(); //other's spreadsheet's focus
View Full Code Here

        final Focus focus = (Focus) event.getPayload(); //other's spreadsheet's focus
        removeEditorFocus(focus.id);
      }
    }
    private void onChartAdd(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      final Object payload = event.getPayload();
      addChartWidget(sheet, (ZssChartX) payload);
    }
View Full Code Here

      final Worksheet sheet = getSheet(rng);
      final Object payload = event.getPayload();
      addChartWidget(sheet, (ZssChartX) payload);
    }
    private void onChartDelete(SSDataEvent event) {
      final Ref rng = event.getRef();
      final Worksheet sheet = getSheet(rng);
      final Object payload = event.getPayload();
      deleteChartWidget(sheet, (Chart) payload);
    }
View Full Code Here

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

      final Worksheet sheet = getSheet(rng);
      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 Worksheet sheet = getSheet(rng);
      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 Worksheet sheet = getSheet(rng);
      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 Worksheet sheet = getSheet(rng);
      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 right = rng.getRightCol();
      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;
View Full Code Here

TOP

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

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.