primary
protected boolean primary
Action
, Action.HasPrimaryState
AbstractPresentationAction
, AbstractPrintFormAction
, BaseAction
, InputDialogAction
, PropertyFilterImpl.OperationChangeAction
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
protected String
protected String
protected boolean
protected EventHub
protected String
protected String
protected List<ActionOwner>
protected boolean
protected KeyCombination
protected boolean
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
protected
protected
AbstractAction(String id)
protected
AbstractAction(String id,
Action.Status status)
protected
AbstractAction(String id,
String shortcut)
void
addOwner(ActionOwner actionOwner)
void
addPropertyChangeListener(Consumer<PropertyChangeEvent> listener)
protected void
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
protected EventHub
getIcon()
getId()
getOwner()
protected boolean
hasSubscriptions(Class<?> eventClass)
boolean
boolean
boolean
void
void
removeOwner(ActionOwner actionOwner)
void
void
setCaption(String caption)
void
setDescription(String description)
void
setEnabled(boolean enabled)
void
void
setPrimary(boolean primary)
void
setShortcut(String shortcut)
void
setShortcutCombination(KeyCombination shortcut)
void
setVisible(boolean visible)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionPerform
getCaption
in interface Action
setCaption
in interface Action
getDescription
in interface Action
setDescription
in interface Action
getShortcutCombination
in interface Action
setShortcutCombination
in interface Action
Action
setShortcut
in interface Action
shortcut
- string of type "Modifiers-Key", e.g. "Alt-N". Case-insensitive.setEnabled
in interface Action
setVisible
in interface Action
Action
Action
removeOwner
in interface Action
actionOwner
- owner componentAction
addPropertyChangeListener
in interface Action
listener
- a listener objectAction
removePropertyChangeListener
in interface Action
listener
- a listener objectAction
For example, this method is called by visual components holding actions when they are bound to data. At this moment the action can find out what entity it is connected to and change its state according to the user permissions.
refreshState
in interface Action
isPrimary
in interface Action.HasPrimaryState
Action.HasPrimaryState
setPrimary
in interface Action.HasPrimaryState
primary
- primary