java.lang.Object
com.vaadin.flow.component.spreadsheet.framework.Action
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SpreadsheetAction

public class Action extends Object implements Serializable
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 Classes
    Modifier and Type
    Class
    Description
    static interface 
    Interface implemented by all components where actions can be registered.
    static interface 
    Interface implemented by classes who wish to handle actions.
    static interface 
    An Action that implements this interface can be added to an Action.Notifier (or NotifierProxy) via the addAction() -method, which in many cases is easier than implementing the Action.Handler interface.
    static interface 
    Action.Containers implementing this support an easier way of adding single Actions than the more involved Action.Handler.
    static interface 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Action(String caption)
    Constructs a new action with the given caption.
    Action(String caption, com.vaadin.flow.component.icon.Icon icon)
    Constructs a new action with the given caption string and icon.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the action's caption.
    com.vaadin.flow.component.icon.Icon
    Returns the action's icon.
    void
    setCaption(String caption)
    Sets the caption.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Action

      public Action(String caption)
      Constructs a new action with the given caption.
      Parameters:
      caption - the caption for the new action.
    • Action

      public Action(String caption, com.vaadin.flow.component.icon.Icon icon)
      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

      public String getCaption()
      Returns the action's caption.
      Returns:
      the action's caption as a String.
    • getIcon

      public com.vaadin.flow.component.icon.Icon getIcon()
      Returns the action's icon.
      Returns:
      the action's Icon.
    • setCaption

      public void setCaption(String caption)
      Sets the caption.
      Parameters:
      caption - the caption to set.