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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enabled()
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
Creates a new instance out of a callback and a role (typically aDisplayable
).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
-
_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
-