Class CellShiftValuesCommand
java.lang.Object
com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
com.vaadin.flow.component.spreadsheet.command.CellValueCommand
com.vaadin.flow.component.spreadsheet.command.CellShiftValuesCommand
- All Implemented Interfaces:
Command,ValueChangeCommand,Serializable
Command for shifting the value(s) of one or more cells.
- Since:
- 1.0
- Author:
- Vaadin Ltd.
- See Also:
-
Field Summary
Fields inherited from class com.vaadin.flow.component.spreadsheet.command.CellValueCommand
selectedcellCol, selectedCellRange, selectedCellRow, valuesFields inherited from class com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
activeSheetIndex, spreadsheet -
Constructor Summary
ConstructorsConstructorDescriptionCellShiftValuesCommand(Spreadsheet spreadsheet, boolean decrease) Creates a new CellShiftValuesCommand targeting the given spreadsheet. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes this command.org.apache.poi.ss.util.CellRangeAddressThe painted range that should be set when this command is run.org.apache.poi.ss.util.CellReferenceThe selected cell that should be set when this command is run.Methods inherited from class com.vaadin.flow.component.spreadsheet.command.CellValueCommand
captureCellRangeValues, captureCellValues, clearValues, getCell, getCellValue, getCellValue, getCellValue, getChangedCells, updateCellValueMethods inherited from class com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
getActiveSheetIndex, getSheet, setActiveSheetIndexMethods 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
getActiveSheetIndex, setActiveSheetIndex
-
Constructor Details
-
CellShiftValuesCommand
Creates a new CellShiftValuesCommand targeting the given spreadsheet.- Parameters:
spreadsheet- Target spreadsheetdecrease-
-
-
Method Details
-
execute
public void execute()Description copied from interface:CommandExecutes this command.- Specified by:
executein interfaceCommand- Overrides:
executein classCellValueCommand
-
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.- Specified by:
getSelectedCellReferencein interfaceCommand- Overrides:
getSelectedCellReferencein classCellValueCommand- 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.- Specified by:
getPaintedCellRangein interfaceCommand- Overrides:
getPaintedCellRangein classCellValueCommand- Returns:
- the painted range or
null
-