Package it.tidalwave.ui.core.role
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidenabled()Returns the property describing the enabled status of this action.static UserActionof(it.tidalwave.util.Callback callback) Creates a new instance out of a callback.static UserActionCreates a new instance out of a callback and a role (typically aDisplayable).static UserActionof(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
-
_UserAction_
-
-
Method Details
-
actionPerformed
void actionPerformed() -
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 callbackroles- the roles (or role factories)- Returns:
- the new instance
- Since:
- 3.2-ALPHA-1 (replaces
new UserActionSupport(), 3.2-ALPHA-3 (refactored)
-
of
Creates a new instance out of a callback and a role (typically aDisplayable).- Parameters:
callback- the callbackrole- the role (or role factory)- Returns:
- the new instance
- Since:
- 3.2-ALPHA-3
-
of
Creates a new instance out of a callback.- Parameters:
callback- the callback- Returns:
- the new instance
- Since:
- 3.2-ALPHA-3
-