Class DeleteRowAction

All Implemented Interfaces:
Serializable

public class DeleteRowAction extends SpreadsheetAction
Spreadsheet action for deleting a single row.
Since:
1.0
Author:
Vaadin Ltd.
See Also:
  • Constructor Details

    • DeleteRowAction

      public DeleteRowAction()
  • Method Details

    • isApplicableForSelection

      public boolean isApplicableForSelection(Spreadsheet spreadsheet, Spreadsheet.SelectionChangeEvent event)
      Description copied from class: SpreadsheetAction
      Returns true if this action is possible in the given spreadsheet for the given selection.
      Specified by:
      isApplicableForSelection in class SpreadsheetAction
      Parameters:
      spreadsheet - Target spreadsheet
      event - Selection event
      Returns:
      true if it's possible to execute this action
    • isApplicableForHeader

      public boolean isApplicableForHeader(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress headerRange)
      Description copied from class: SpreadsheetAction
      Returns true if this action is possible for the given row/column header.
      Specified by:
      isApplicableForHeader in class SpreadsheetAction
      Parameters:
      spreadsheet - Target spreadsheet
      headerRange - Target column/row header range
      Returns:
      true if it's possible to execute this action
    • executeActionOnSelection

      public void executeActionOnSelection(Spreadsheet spreadsheet, Spreadsheet.SelectionChangeEvent event)
      Description copied from class: SpreadsheetAction
      Execute this action on the given spreadsheet and selection.
      Specified by:
      executeActionOnSelection in class SpreadsheetAction
      Parameters:
      spreadsheet - Target spreadsheet
      event - Selection event
    • executeActionOnHeader

      public void executeActionOnHeader(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress headerRange)
      Description copied from class: SpreadsheetAction
      Execute this action on the given spreadsheet and row/column header.
      Specified by:
      executeActionOnHeader in class SpreadsheetAction
      Parameters:
      spreadsheet - Target spreadsheet
      headerRange - Target header range