public class ListAction extends BaseAction implements Action.HasTarget
BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.BeforeActionPerformedHandler, Action.DisabledWhenScreenReadOnly, Action.ExecutableAction, Action.HasBeforeActionPerformedHandler, Action.HasOpenType, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.SecuredAction, Action.Status
Modifier and Type | Field and Description |
---|---|
protected ListComponent |
target |
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
ListAction(java.lang.String id) |
ListAction(java.lang.String id,
java.lang.String shortcut) |
Modifier and Type | Method and Description |
---|---|
ListComponent |
getTarget() |
void |
setTarget(ListComponent target) |
ListAction |
withCaption(java.lang.String caption)
Set caption using fluent API method.
|
ListAction |
withDescription(java.lang.String description)
Set description using fluent API method.
|
ListAction |
withHandler(java.util.function.Consumer<Action.ActionPerformedEvent> handler)
Set action performed event handler using fluent API method.
|
ListAction |
withIcon(java.lang.String icon)
Set icon using fluent API method.
|
ListAction |
withPrimary(boolean primary)
Set whether this action is primary using fluent API method.
|
ListAction |
withShortcut(java.lang.String shortcut)
Set shortcut using fluent API method.
|
actionPerform, addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDefaultCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setIconFromSet, setPrimary, setShortcut, setShortcutCombination
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionPerform, addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setIconFromSet, setShortcut, setShortcutCombination, setVisible
protected ListComponent target
public ListAction(java.lang.String id)
public ListAction(java.lang.String id, @Nullable java.lang.String shortcut)
public ListComponent getTarget()
getTarget
in interface Action.HasTarget
public void setTarget(ListComponent target)
setTarget
in interface Action.HasTarget
public ListAction withCaption(java.lang.String caption)
withCaption
in class BaseAction
caption
- captionpublic ListAction withDescription(java.lang.String description)
withDescription
in class BaseAction
description
- descriptionpublic ListAction withIcon(java.lang.String icon)
withIcon
in class BaseAction
icon
- iconpublic ListAction withShortcut(java.lang.String shortcut)
withShortcut
in class BaseAction
shortcut
- shortcutpublic ListAction withHandler(java.util.function.Consumer<Action.ActionPerformedEvent> handler)
withHandler
in class BaseAction
handler
- action performed handlerpublic ListAction withPrimary(boolean primary)
withPrimary
in class BaseAction
primary
- primary