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
public class CellShiftValuesCommand extends CellValueCommand
Command for shifting the value(s) of one or more cells.- Since:
- 1.0
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.flow.component.spreadsheet.command.CellValueCommand
selectedcellCol, selectedCellRange, selectedCellRow, values
-
Fields inherited from class com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
activeSheetIndex, spreadsheet
-
-
Constructor Summary
Constructors Constructor Description CellShiftValuesCommand(Spreadsheet spreadsheet, boolean decrease)Creates a new CellShiftValuesCommand targeting the given spreadsheet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class com.vaadin.flow.component.spreadsheet.command.CellValueCommand
captureCellRangeValues, captureCellValues, clearValues, getCell, getCellValue, getCellValue, getCellValue, getChangedCells, updateCellValue
-
Methods inherited from class com.vaadin.flow.component.spreadsheet.command.SpreadsheetCommand
getActiveSheetIndex, getSheet, setActiveSheetIndex
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.spreadsheet.command.Command
getActiveSheetIndex, setActiveSheetIndex
-
-
-
-
Constructor Detail
-
CellShiftValuesCommand
public CellShiftValuesCommand(Spreadsheet spreadsheet, boolean decrease)
Creates a new CellShiftValuesCommand targeting the given spreadsheet.- Parameters:
spreadsheet- Target spreadsheetdecrease-
-
-
Method Detail
-
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
-
-