com.vaadin.flow.component.spreadsheet.action.
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:
public class EditCellCommentAction extends SpreadsheetAction
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 Constructor Description EditCellCommentAction()
-
Method Summary
All 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 eventReturns:
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 rangeReturns:
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
-
-