Package org.zkoss.zss.ui

Examples of org.zkoss.zss.ui.Position


    }
    focusOut = true;
   
    handleCellText();
   
    Position pos = bookCtrl.getCellFocus();
    int row = pos.getRow();
    int col = pos.getColumn();
    int oldrow = currentEditcell == null ? -1 : currentEditcell.getRowIndex();
    int oldcol = currentEditcell == null ? -1 : currentEditcell.getColumnIndex();
    final boolean focusChanged = (row != oldrow || col != oldcol); //user click directly to a different cell
    if (!focusChanged) {
      if (everTab != null) { //Tab key
View Full Code Here


    WorkbookCtrl bookCtrl  = getDesktopWorkbenchContext().getWorkbookCtrl();   
    focusOut = true;
    handleCellText();
   
    //move cell focus
    Position pos = bookCtrl.getCellFocus();
    int row = pos.getRow() + 1;
    int col = pos.getColumn();
    if (bookCtrl.getMaxrows() <= row) {
      row = bookCtrl.getMaxrows() - 1;
    }
    bookCtrl.focusTo(row, col, true);
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zss.ui.Position

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.