Interface UserAction

All Superinterfaces:
it.tidalwave.util.As

public interface UserAction extends it.tidalwave.util.As
Since:
2.0-ALPHA-1
Author:
Fabrizio Giudici
  • Nested Class Summary

    Nested classes/interfaces inherited from interface it.tidalwave.util.As

    it.tidalwave.util.As.Type<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Class<UserAction>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    Returns the property describing the enabled status of this action.
    static UserAction
    of(it.tidalwave.util.Callback callback)
    Creates a new instance out of a callback.
    static UserAction
    of(it.tidalwave.util.Callback callback, Object role)
    Creates a new instance out of a callback and a role (typically a Displayable).
    static UserAction
    of(it.tidalwave.util.Callback callback, Collection<Object> roles)
    Creates a new instance out of a callback and a collection of roles.

    Methods inherited from interface it.tidalwave.util.As

    as, as, asMany, asMany, maybeAs, maybeAs
  • 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 it.tidalwave.util.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 it.tidalwave.util.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 it.tidalwave.util.Callback callback)
      Creates a new instance out of a callback.
      Parameters:
      callback - the callback
      Returns:
      the new instance
      Since:
      3.2-ALPHA-3