We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.spreadsheet.command.
Class RowInsertOrDeleteCommand
- java.lang.Object
-
- com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
-
- com.vaadin.flow.component.spreadsheet.command.RowInsertOrDeleteCommand
-
All Implemented Interfaces:
public class RowInsertOrDeleteCommand extends SpreadsheetCommand
Command to insert or delete a row
See Also:
-
-
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 Modifier and Type Method Description void
deleteRow()
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.
void
insertNewRow()
-
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:
Command
Executes this command.
-
getSelectedCellReference
public org.apache.poi.ss.util.CellReference getSelectedCellReference()
Description copied from interface:
Command
The selected cell that should be set when this command is run. In case this command shouldn't change the selected cell,
null
is returned.Returns:
the selection or
null
-
getPaintedCellRange
public org.apache.poi.ss.util.CellRangeAddress getPaintedCellRange()
Description copied from interface:
Command
The painted range that should be set when this command is run. In case his command shouldn't set a painted range,
null
is returned.Returns:
the painted range or
null
-
insertNewRow
public void insertNewRow()
-
deleteRow
public void deleteRow()
-
-