@Override public int getType() { return delegate.getType(); }
public int getType() { return delegate.getType(); }
public int getType() { return cell.getType(); }
public int getType() { return delegate.getType(); }
private String getFormulaFromRegion() { if (isCurrentCellATopLeftCellInRegion()) { return cellFormula(); } ICell topLeftCell = getTopLeftCellFromRegion(); return topLeftCell.getType() == IGrid.CELL_TYPE_FORMULA ? topLeftCell.getFormula() : null; }
private int getTypeFromRegion() { if (isCurrentCellATopLeftCellInRegion()) { return getIGridCellType(getCell().getCellType()); } ICell topLeftCell = getTopLeftCellFromRegion(); return topLeftCell.getType(); }
public void doAction(IGridTable table) { IWritableGrid grid = (IWritableGrid) table.getGrid(); IGridRegion rrFrom = grid.getRegionStartingAt(colFrom, rowFrom); ICell cell = grid.getCell(colFrom, rowFrom); setPrevValue(cell.getObjectValue()); setPrevFormula(cell.getFormula()); setPrevStyle(cell.getStyle()); setPrevComment(cell.getComment()); setPrevMetaInfo(metaInfoWriter.getMetaInfo(rowFrom, colFrom)); if (rrFrom != null) { toRestore = rrFrom; grid.removeMergedRegion(rrFrom); GridRegion copyFrom = new GridRegion(rrFrom.getTop() + getRow() - rowFrom, rrFrom.getLeft() + getCol() - colFrom, rrFrom.getBottom() + getRow() - rowFrom, rrFrom.getRight() + getCol() - colFrom); grid.addMergedRegion(copyFrom); toRemove = copyFrom; } grid.setCellFormula(getCol(), getRow(), getPrevFormula()); grid.setCellValue(getCol(), getRow(), getPrevValue()); grid.setCellStyle(getCol(), getRow(), getPrevStyle()); grid.setCellComment(getCol(), getRow(), getPrevComment()); metaInfoWriter.setMetaInfo(getRow(), getCol(), getPrevMetaInfo()); ICell newCell = grid.getCell(getCol(), getRow()); if (cell.getType() == IGrid.CELL_TYPE_STRING && newCell.getType() == IGrid.CELL_TYPE_FORMULA) { grid.setCellStringValue(getCol(), getRow(), cell.getObjectValue().toString()); } }
currentRow + j + region.getTop(), gridModel.getSheetSource().getSheet()); if (cell.getType() != IGrid.CELL_TYPE_FORMULA && newCell.getCellType() == CellType.FORMULA) { newCell.setCellType(CellType.STRING); newCell.setCellValue(cellValue.toString());