Examples of focusTo()


Examples of org.zkoss.zss.app.zul.ctrl.WorkbookCtrl.focusTo()

    recoverEditorText();
    recoverCellText();
    endEditingFormula(false);
    int row = bookCtrl.getSelection().getTop();
    int col = bookCtrl.getSelection().getLeft();
    bookCtrl.focusTo(row, col, true);
  }
 
  public void onFocus() {
    WorkbookCtrl bookCtrl = getDesktopWorkbenchContext().getWorkbookCtrl();
    Worksheet sheet = bookCtrl.getSelectedSheet();
View Full Code Here

Examples of org.zkoss.zss.app.zul.ctrl.WorkbookCtrl.focusTo()

            if (newmerged != null) {
              col = newmerged.getFirstColumn();
            }
          }
        }
        bookCtrl.focusTo(row, col, true);
      } else if (everFocusCell) { //click on the same cell, shall enter edit mode, something like press F2
        //TODO click on the same cell, shall enter edit mode, something like press F2
      }
    }
  }
View Full Code Here

Examples of org.zkoss.zss.app.zul.ctrl.WorkbookCtrl.focusTo()

    int row = pos.getRow() + 1;
    int col = pos.getColumn();
    if (bookCtrl.getMaxrows() <= row) {
      row = bookCtrl.getMaxrows() - 1;
    }
    bookCtrl.focusTo(row, col, true);
  }

  private static boolean isComposingFormula(String label) {
    return label != null && label.startsWith("=");
  }
View Full Code Here

Examples of org.zkoss.zss.app.zul.ctrl.WorkbookCtrl.focusTo()

    WorkbookCtrl bookCtrl = getDesktopWorkbenchContext().getWorkbookCtrl();
   
    Range range = Ranges.range(formulaSheet, formulaCell.getRowIndex(), formulaCell.getColumnIndex());
    if (confirmChange) {
      range.setEditText(newEdit);
      bookCtrl.focusTo(formulaRow, formulaColumn, false);
    }
    clearCellReferenceFocus();
    editExistingFormula = false;
    formulaCell = null;
    formulaText = 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.