public class SizeChangeCommand extends SpreadsheetCommand
| Modifier and Type | Class and Description |
|---|---|
static class |
SizeChangeCommand.Type
Determines whether this command applies to a row or to a column.
|
activeSheetIndex, spreadsheet| Constructor and Description |
|---|
SizeChangeCommand(Spreadsheet spreadsheet,
SizeChangeCommand.Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
captureValues(Integer[] indexes)
Captures the current row heights or column widths (depending on the type
set to this command) for the row/column indexes given.
|
void |
execute()
Executes this command.
|
org.apache.poi.ss.util.CellRangeAddress |
getPaintedCellRange()
The painted range that should be set when this command is run.
|
org.apache.poi.ss.util.CellReference |
getSelectedCellReference()
The selected cell that should be set when this command is run.
|
SizeChangeCommand.Type |
getType()
Returns the type of size change this represents.
|
getActiveSheetIndex, getSheet, setActiveSheetIndexpublic SizeChangeCommand(Spreadsheet spreadsheet, SizeChangeCommand.Type type)
public SizeChangeCommand.Type getType()
public void captureValues(Integer[] indexes)
indexes - Row /column indexes, 1-basedpublic void execute()
Commandpublic org.apache.poi.ss.util.CellReference getSelectedCellReference()
Commandnull is
returned.nullpublic org.apache.poi.ss.util.CellRangeAddress getPaintedCellRange()
Commandnull is returned.nullCopyright © 2013–2026 Vaadin Ltd. All rights reserved.