Class Action
java.lang.Object
com.vaadin.flow.component.spreadsheet.framework.Action
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SpreadsheetAction
Implements the action framework. This class contains subinterfaces for action
handling and listing, and for action handler registrations and
unregistration.
- Since:
- 3.0
- Author:
- Vaadin Ltd.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface implemented by all components where actions can be registered.static interfaceInterface implemented by classes who wish to handle actions.static interfaceAn Action that implements this interface can be added to an Action.Notifier (or NotifierProxy) via theaddAction()-method, which in many cases is easier than implementing the Action.Handler interface.static interfaceAction.Containers implementing this support an easier way of adding single Actions than the more involved Action.Handler.static interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the action's caption.getIcon()Returns the action's icon.voidsetCaption(String caption) Sets the caption.
-
Constructor Details
-
Action
Constructs a new action with the given caption.- Parameters:
caption- the caption for the new action.
-
Action
Constructs a new action with the given caption string and icon.- Parameters:
caption- the caption for the new action.icon- the icon for the new action.
-
-
Method Details
-
getCaption
Returns the action's caption.- Returns:
- the action's caption as a
String.
-
getIcon
Returns the action's icon.- Returns:
- the action's Icon.
-
setCaption
Sets the caption.- Parameters:
caption- the caption to set.
-