All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
addActionListener(ActionListener l)
Adds an action listener to this action.
|
void |
addAfterActionCallback(ActionNode.AfterActionCallback callback) |
void |
addDecorator(ComponentDecorator decorator) |
static boolean |
asActionNode(ActionEvent evt,
SuccessCallback<ActionNode> callback)
If the provided event is an ActionNode, then it will be passed as an argument to the callback.
|
static boolean |
asActionNodeEvent(ActionEvent evt,
ActionNode action,
SuccessCallback<ActionNode.ActionNodeEvent> callback) |
static boolean |
asActionNodeEvent(ActionEvent evt,
SuccessCallback<ActionNode.ActionNodeEvent> callback) |
static ActionNode.Builder |
builder() |
boolean |
canProxy()
Returns true if this node can be proxied.
|
boolean |
containsActionTag(Tag tag) |
Command |
createCommand(Entity entity,
Component source)
Creates a command from the action using the given entity and source componentas a context.
|
Node |
createProxy(Node parent)
Creates a proxy node for the current ActionNode.
|
Component |
createView(Entity entity)
Creates a view for the action using the current view factory.
|
void |
decorateComponent(Component cmp)
Decorates the given component using the registered component decorators.
|
Attribute |
findAttribute(Class type)
Returns an attribute of the given type for this node.
|
ActionEvent |
fireEvent(Entity entity,
Component source)
Fires an event with the given entity and source for the context
|
ActionEvent |
fireEvent(Entity entity,
Component source,
Map extraData)
Fires an event with the given entity, source, and extra data as the context.
|
ActionEvent |
fireEvent(EventContext context)
Fires an event with the given event context.
|
static ActionNode |
getActionNode(ActionEvent evt) |
static ActionNode.ActionNodeEvent |
getActionNodeEvent(ActionEvent evt) |
static ActionNode.ActionNodeEvent |
getActionNodeEvent(ActionEvent evt,
ActionNode action) |
ActionStyle |
getActionStyle()
Checks the action style.
|
Tag |
getActionTag() |
Badge |
getBadge()
Gets the badge attribute.
|
BadgeUIID |
getBadgeUIID()
Gets the badge UIID attribute.
|
ActionNode.Category |
getCategory()
Gets the category of the action.
|
ComponentDecorators |
getComponentDecorators()
Gets the component decorators for this action.
|
Condition |
getCondition()
Gets the condition attribute.
|
Property.Description |
getDescription()
Gets a description for the action.
|
ActionNode |
getDisabled()
Gets the disabled action node.
|
ActionNode.EnabledCondition |
getEnabledCondition()
Gets the enabled condition attribute.
|
EventFactoryNode |
getEventFactory()
Gets the event factory used for creating action events.
|
ImageIcon |
getImageIcon()
Gets the image icon for the action.
|
Property.Label |
getLabel()
Gets the action label.
|
String |
getLabelText()
Gets the label text for this action.
|
String |
getLabelText(Entity context)
Gets the label text for this action with the given entity used as the context.
|
MaterialIcon |
getMaterialIcon()
Gets the material icon for the action.
|
ActionNode |
getPressed()
Gets the pressed action node.
|
ActionNode |
getSelected()
Gets the selected action node.
|
SelectedCondition |
getSelectedCondition()
Gets the selected condition attribute.
|
TextIcon |
getTextIcon()
Gets the text icon for the action.
|
ActionNode |
getUnselected()
Gets the unselected action node.
|
ActionViewFactory |
getViewFactory()
Gets the registered view factory for the action.
|
boolean |
isEnabled(Entity entity)
Checks if the action is enabled for the given entity context.
|
boolean |
isIconStyle()
Checks if this action uses the icon style.
|
boolean |
isSelected(Entity entity)
Checks if the action is selected for the given entity context.
|
boolean |
isTextStyle()
Checks if this action uses the text style.
|
static ActionNode.Builder |
mutator(ActionNode node) |
void |
setActionTag(Tag tag) |