public interface ActionDefinition extends java.lang.Comparable, EntityDefinition
| Modifier and Type | Method and Description |
|---|---|
KeyStroke |
getAccelerator()
Returns key stroke used to initiate the action in any UI.
|
java.util.List<ResourceMask> |
getDropSources()
Returns the drop source context masks.
|
GroupIdentifier |
getExecutionGroup()
Some category of actions may be applied to groups of objects.
|
java.util.concurrent.locks.ReentrantLock |
getExecutionLock()
Returns the execution lock
|
Permissions |
getPermissions()
Returns permissions required to execute action.
|
Action |
instantiate()
Creates and return an instance of the action
|
boolean |
isConcurrent()
If false, parallel execution of several action instances is not allowed
|
boolean |
isDefault()
Returns true if action is a default action in context.
|
boolean |
isEnabled()
Returns true if action execution is allowed.
|
boolean |
isHeadless()
Returns true if action supports non-interactive execution.
|
boolean |
isHidden()
Returns true if action is hidden.
|
void |
setDefault(boolean b)
Sets default flag for the action.
|
void |
setEnabled(boolean enabled)
Enables/disables action.
|
getDescription, getEntityType, getGroup, getHelp, getIconId, getIndex, getName, getOwner, toDetailedStringboolean isEnabled()
void setEnabled(boolean enabled)
boolean isDefault()
void setDefault(boolean b)
boolean isHeadless()
boolean isHidden()
KeyStroke getAccelerator()
java.util.List<ResourceMask> getDropSources()
Permissions getPermissions()
GroupIdentifier getExecutionGroup()
Action instantiate()
boolean isConcurrent()
java.util.concurrent.locks.ReentrantLock getExecutionLock()