Class EditCellCommentAction
java.lang.Object
com.vaadin.flow.component.spreadsheet.framework.Action
com.vaadin.flow.component.spreadsheet.action.SpreadsheetAction
com.vaadin.flow.component.spreadsheet.action.EditCellCommentAction
- All Implemented Interfaces:
Serializable
Spreadsheet action for inserting or deleting a comment to a cell.
- Since:
- 1.0
- Author:
- Vaadin Ltd.
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteActionOnHeader(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress headerRange) Execute this action on the given spreadsheet and row/column header.voidexecuteActionOnSelection(Spreadsheet spreadsheet, Spreadsheet.SelectionChangeEvent event) Execute this action on the given spreadsheet and selection.booleanisApplicableForHeader(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress headerRange) Returns true if this action is possible for the given row/column header.booleanisApplicableForSelection(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, isSheetProtectedMethods inherited from class com.vaadin.flow.component.spreadsheet.framework.Action
getCaption, getIcon, setCaption
-
Constructor Details
-
EditCellCommentAction
public EditCellCommentAction()
-
-
Method Details
-
isApplicableForSelection
public boolean isApplicableForSelection(Spreadsheet spreadsheet, Spreadsheet.SelectionChangeEvent event) Description copied from class:SpreadsheetActionReturns true if this action is possible in the given spreadsheet for the given selection.- Specified by:
isApplicableForSelectionin 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:SpreadsheetActionReturns true if this action is possible for the given row/column header.- Specified by:
isApplicableForHeaderin 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:SpreadsheetActionExecute this action on the given spreadsheet and selection.- Specified by:
executeActionOnSelectionin classSpreadsheetAction- Parameters:
spreadsheet- Target spreadsheetevent- Selection event
-
executeActionOnHeader
public void executeActionOnHeader(Spreadsheet spreadsheet, org.apache.poi.ss.util.CellRangeAddress headerRange) Description copied from class:SpreadsheetActionExecute this action on the given spreadsheet and row/column header.- Specified by:
executeActionOnHeaderin classSpreadsheetAction- Parameters:
spreadsheet- Target spreadsheetheaderRange- Target header range
-