Class CellShiftValuesCommand

    • Constructor Detail

      • CellShiftValuesCommand

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

      • 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