Interface UserAction

  • All Superinterfaces:
    As

    public interface UserAction
    extends As
    Author:
    Fabrizio Giudici
    • Field Detail

      • _UserAction_

        static final java.lang.Class<UserAction> _UserAction_
    • Method Detail

      • actionPerformed

        void actionPerformed()
      • enabled

        @Nonnull
        BoundProperty<java.lang.Boolean> enabled()
        Returns the property describing the enabled status of this action.
        Returns:
        the enabled property
      • of

        @Nonnull
        static UserAction of​(@Nonnull
                             Callback callback,
                             @Nonnull
                             java.util.Collection<java.lang.Object> roles)
        Creates a new instance out of a callback and a collection of roles.
        Parameters:
        callback - the callback
        roles - the roles (or role factories)
        Returns:
        the new instance
        Since:
        3.2-ALPHA-1 (replaces new UserActionSupport(), 3.2-ALPHA-3 (refactored}
      • of

        @Nonnull
        static UserAction of​(@Nonnull
                             Callback callback,
                             @Nonnull
                             java.lang.Object role)
        Creates a new instance out of a callback and a role (typically a Displayable.
        Parameters:
        callback - the callback
        role - the role (or role factory)
        Returns:
        the new instance
        Since:
        3.2-ALPHA-3
      • of

        @Nonnull
        static UserAction of​(@Nonnull
                             Callback callback)
        Creates a new instance out of a callback.
        Parameters:
        callback - the callback
        Returns:
        the new instance
        Since:
        3.2-ALPHA-3