Class ShowHideCellCommentAction
- java.lang.Object
-
- com.vaadin.flow.component.spreadsheet.framework.Action
-
- com.vaadin.flow.component.spreadsheet.action.SpreadsheetAction
-
- com.vaadin.flow.component.spreadsheet.action.ShowHideCellCommentAction
-
- All Implemented Interfaces:
Serializable
public class ShowHideCellCommentAction extends SpreadsheetAction
Spreadsheet action for showing or hiding a cell comment.- Since:
- 1.0
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.spreadsheet.framework.Action
Action.Container, Action.Handler, Action.Listener, Action.Notifier, Action.ShortcutNotifier
-
-
Constructor Summary
Constructors Constructor Description ShowHideCellCommentAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeActionOnHeader(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress headerRange)
Execute this action on the given spreadsheet and row/column header.void
executeActionOnSelection(Spreadsheet spreadsheet, Spreadsheet.SelectionChangeEvent event)
Execute this action on the given spreadsheet and selection.boolean
isApplicableForHeader(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress headerRange)
Returns true if this action is possible for the given row/column header.boolean
isApplicableForSelection(Spreadsheet spreadsheet, Spreadsheet.SelectionChangeEvent event)
Returns true if this action is possible in the given spreadsheet for the given selection.-
Methods inherited from class com.vaadin.flow.component.spreadsheet.action.SpreadsheetAction
getColumnHeader, isCellLocked, isSheetProtected, isSheetProtected
-
Methods inherited from class com.vaadin.flow.component.spreadsheet.framework.Action
getCaption, getIcon, setCaption, setIcon
-
-
-
-
Method Detail
-
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 classSpreadsheetAction
- Parameters:
spreadsheet
- Target spreadsheetevent
- 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 classSpreadsheetAction
- Parameters:
spreadsheet
- Target spreadsheetheaderRange
- 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 classSpreadsheetAction
- Parameters:
spreadsheet
- Target spreadsheetevent
- 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 classSpreadsheetAction
- Parameters:
spreadsheet
- Target spreadsheetheaderRange
- Target header range
-
-