Class SpreadsheetCommand
java.lang.Object
com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
- All Implemented Interfaces:
Command,Serializable
- Direct Known Subclasses:
CellValueCommand,RowInsertOrDeleteCommand,SizeChangeCommand
Abstract base class for Spreadsheet commands.
- Since:
- 1.0
- Author:
- Vaadin Ltd.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpreadsheetCommand(Spreadsheet spreadsheet) Creates a new command targeting the given spreadsheet. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index of the currently active sheet.protected org.apache.poi.ss.usermodel.SheetgetSheet()Returns the currently active sheet.voidsetActiveSheetIndex(int activeSheetIndex) Sets the sheet at the given index the currently active sheet.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.spreadsheet.command.Command
execute, getPaintedCellRange, getSelectedCellReference
-
Field Details
-
activeSheetIndex
protected int activeSheetIndex -
spreadsheet
-
-
Constructor Details
-
SpreadsheetCommand
Creates a new command targeting the given spreadsheet.- Parameters:
spreadsheet- The target spreadsheet
-
-
Method Details
-
getSheet
protected org.apache.poi.ss.usermodel.Sheet getSheet()Returns the currently active sheet.- Returns:
- active sheet
-
getActiveSheetIndex
public int getActiveSheetIndex()Description copied from interface:CommandReturns the index of the currently active sheet.- Specified by:
getActiveSheetIndexin interfaceCommand- Returns:
- index of active sheet
-
setActiveSheetIndex
public void setActiveSheetIndex(int activeSheetIndex) Description copied from interface:CommandSets the sheet at the given index the currently active sheet.- Specified by:
setActiveSheetIndexin interfaceCommand- Parameters:
activeSheetIndex- Index of sheet to set active
-