Interface Command
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
ValueChangeCommand
- All Known Implementing Classes:
CellShiftValuesCommand,CellValueCommand,RowInsertOrDeleteCommand,SizeChangeCommand,SpreadsheetCommand
public interface Command extends Serializable
Common interface for all Spreadsheet commands.- Since:
- 1.0
- Author:
- Vaadin Ltd.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute()Executes this command.intgetActiveSheetIndex()Returns the index of the currently active sheet.org.apache.poi.ss.util.CellRangeAddressgetPaintedCellRange()The painted range that should be set when this command is run.org.apache.poi.ss.util.CellReferencegetSelectedCellReference()The selected cell that should be set when this command is run.voidsetActiveSheetIndex(int index)Sets the sheet at the given index the currently active sheet.
-
-
-
Method Detail
-
execute
void execute()
Executes this command.
-
getActiveSheetIndex
int getActiveSheetIndex()
Returns the index of the currently active sheet.- Returns:
- index of active sheet
-
setActiveSheetIndex
void setActiveSheetIndex(int index)
Sets the sheet at the given index the currently active sheet.- Parameters:
index- Index of sheet to set active
-
getSelectedCellReference
org.apache.poi.ss.util.CellReference getSelectedCellReference()
The selected cell that should be set when this command is run. In case this command shouldn't change the selected cell,nullis returned.- Returns:
- the selection or
null
-
getPaintedCellRange
org.apache.poi.ss.util.CellRangeAddress getPaintedCellRange()
The painted range that should be set when this command is run. In case his command shouldn't set a painted range,nullis returned.- Returns:
- the painted range or
null
-
-