Interface UserAction

All Superinterfaces:
As

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

  • Method Details

    • actionPerformed

      void actionPerformed()
    • enabled

      @Nonnull BoundProperty<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 Collection<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 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