Examples of CellReference


Examples of org.apache.poi.ss.util.CellReference

     *
     * @param toprow the top row to show in desktop window pane
     * @param leftcol the left column to show in desktop window pane
     */
    public void showInPane(short toprow, short leftcol) {
        CellReference cellReference = new CellReference(toprow, leftcol);
        String cellRef = cellReference.formatAsString();
    getPane().setTopLeftCell(cellRef);
    }
View Full Code Here

Examples of org.apache.poi.ss.util.CellReference

     *
     * @param cellRef cell region
     * @param comment the comment to assign
     */
    public void setCellComment(String cellRef, XSSFComment comment) {
        CellReference cellReference = new CellReference(cellRef);

        comment.setRow(cellReference.getRow());
        comment.setColumn(cellReference.getCol());
    }
View Full Code Here

Examples of org.zkoss.poi.ss.util.CellReference

    final int maxcol = ver.getLastColumnIndex();
    final int maxrow = ver.getLastRowIndex();

    AreaReference ref = null;
    try {
      final CellReference c1 = new CellReference(c1str);
      if (c1.getCol() <= maxcol && c1.getRow() <= maxrow) {
        final CellReference c2 = rb != null ? new CellReference(rb) : c1;
        if (rb != null) {
          if (c2.getCol() <= maxcol && c2.getRow() <= maxrow) {
            ref = new AreaReference(c1, c2);
          }
        } else {
          ref = new AreaReference(c1, c2);
        }
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.