Class RowInsertOrDeleteCommand
- java.lang.Object
-
- com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
-
- com.vaadin.flow.component.spreadsheet.command.RowInsertOrDeleteCommand
-
- All Implemented Interfaces:
Command,Serializable
public class RowInsertOrDeleteCommand extends SpreadsheetCommand
Command to insert or delete a row- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
activeSheetIndex, spreadsheet
-
-
Constructor Summary
Constructors Constructor Description RowInsertOrDeleteCommand(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress headerRange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteRow()voidexecute()Executes this command.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.voidinsertNewRow()-
Methods inherited from class com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
getActiveSheetIndex, getSheet, setActiveSheetIndex
-
-
-
-
Constructor Detail
-
RowInsertOrDeleteCommand
public RowInsertOrDeleteCommand(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress headerRange)
-
-
Method Detail
-
execute
public void execute()
Description copied from interface:CommandExecutes this command.
-
getSelectedCellReference
public org.apache.poi.ss.util.CellReference getSelectedCellReference()
Description copied from interface:CommandThe 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
public org.apache.poi.ss.util.CellRangeAddress getPaintedCellRange()
Description copied from interface:CommandThe 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
-
insertNewRow
public void insertNewRow()
-
deleteRow
public void deleteRow()
-
-