Class AbstractAction

    • Field Detail

      • id

        protected String id
        A unique identifier for the action within the module .
      • displayName

        protected String displayName
        The label to be used in menus or buttons.
      • description

        protected String description
        A short description of what the action does, mainly to be used as tool text tip.
      • icon

        protected com.vaadin.flow.component.icon.Icon icon
        An icon to represent the action.
      • order

        protected int order
        This number will be used to position the action in menus (0 is the highest priority/importance). The default value is 1000.
    • Constructor Detail

      • AbstractAction

        public AbstractAction()
    • Method Detail

      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getDisplayName

        public String getDisplayName()
      • setDisplayName

        public void setDisplayName​(String displayName)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getOrder

        public int getOrder()
      • setOrder

        public void setOrder​(int order)
      • getIcon

        public com.vaadin.flow.component.icon.Icon getIcon()
      • setIcon

        public void setIcon​(com.vaadin.flow.component.icon.Icon icon)
      • getRequiredAccessLevel

        public abstract int getRequiredAccessLevel()
        Returns the privilege needed to execute the current action. This access level should be matched with the permissions granted to the user and the renderer must decide if it will gray-out the action or simply not show it.
        Returns:
        The access level needed to execute this action. See Privilege.ACCESS_LEVEL_XXX for possible values.
      • requiresConfirmation

        public abstract boolean requiresConfirmation()
        Does this action requires confirmation before executing it? This is typically true for actions that will delete or otherwise dispose of some resources. The consumer of the action might ignore this flag and simply execute the action.
        Returns: