Class 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:
  • Constructor Details

    • CellShiftValuesCommand

      public CellShiftValuesCommand(Spreadsheet spreadsheet, boolean decrease)
      Creates a new CellShiftValuesCommand targeting the given spreadsheet.
      Parameters:
      spreadsheet - Target spreadsheet
      decrease -
  • Method Details

    • execute

      public void execute()
      Description copied from interface: Command
      Executes this command.
      Specified by:
      execute in interface Command
      Overrides:
      execute in class CellValueCommand
    • 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.
      Specified by:
      getSelectedCellReference in interface Command
      Overrides:
      getSelectedCellReference in class CellValueCommand
      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.
      Specified by:
      getPaintedCellRange in interface Command
      Overrides:
      getPaintedCellRange in class CellValueCommand
      Returns:
      the painted range or null