Class Action

  • All Implemented Interfaces:
    Serializable, IClusterable

    public class Action
    extends EnumeratedType
    A class for constructing singleton constants that represent a given component action that needs to be authorized. The Wicket core framework defines Component.RENDER and Component.ENABLE actions, but future versions of the framework may add more actions and user defined components can define their own actions as well.
    Since:
    1.2
    Author:
    Eelco Hillenius, Jonathan Locke
    See Also:
    Component.RENDER, Component.ENABLE, Serialized Form
    • Field Detail

      • RENDER

        public static final String RENDER
        RENDER action name (for consistent name and use in annotations).

        DO NOT use for equals on Action, like

         action.equals(Action.RENDER)
         
        as you'll compare an action with a string. Rather, do:
         action.equals(Component.RENDER)
         

        See Also:
        Constant Field Values
      • ENABLE

        public static final String ENABLE
        ENABLE action name (for consistent name and use in annotations).

        DO NOT use for equals on Action, like

         action.equals(Action.ENABLE)
         
        as you'll compare an action with a string. Rather, do:
         action.equals(Component.ENABLE)
         

        See Also:
        Constant Field Values
    • Constructor Detail

      • Action

        public Action​(String name)
        Construct.
        Parameters:
        name - The name of this action for debug purposes
    • Method Detail

      • getName

        public String getName()
        Returns:
        The name of this action