Package it.tidalwave.role.ui
Interface UserAction
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<UserAction>
_UserAction_
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
actionPerformed()
BoundProperty<java.lang.Boolean>
enabled()
Returns the property describing the enabled status of this action.static UserAction
of(Callback callback)
Creates a new instance out of a callback.static UserAction
of(Callback callback, java.lang.Object role)
Creates a new instance out of a callback and a role (typically aDisplayable
.static UserAction
of(Callback callback, java.util.Collection<java.lang.Object> roles)
Creates a new instance out of a callback and a collection of roles.
-
-
-
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 callbackroles
- 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 aDisplayable
.- Parameters:
callback
- the callbackrole
- 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
-
-