public abstract class SpreadsheetCommand extends Object implements Command
| Modifier and Type | Field and Description |
|---|---|
protected int |
activeSheetIndex |
protected Spreadsheet |
spreadsheet |
| Constructor and Description |
|---|
SpreadsheetCommand(Spreadsheet spreadsheet)
Creates a new command targeting the given spreadsheet.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveSheetIndex()
Returns the index of the currently active sheet.
|
protected org.apache.poi.ss.usermodel.Sheet |
getSheet()
Returns the currently active sheet.
|
void |
setActiveSheetIndex(int activeSheetIndex)
Sets the sheet at the given index the currently active sheet.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getPaintedCellRange, getSelectedCellReferenceprotected int activeSheetIndex
protected final Spreadsheet spreadsheet
public SpreadsheetCommand(Spreadsheet spreadsheet)
spreadsheet - The target spreadsheetprotected org.apache.poi.ss.usermodel.Sheet getSheet()
public int getActiveSheetIndex()
CommandgetActiveSheetIndex in interface Commandpublic void setActiveSheetIndex(int activeSheetIndex)
CommandsetActiveSheetIndex in interface CommandactiveSheetIndex - Index of sheet to set activeCopyright © 2013–2026 Vaadin Ltd. All rights reserved.