ActionListener, ItemListener, Serializable, Cloneable, EventListener, Actionpublic class CompositeAction extends AbstractActionExt
The action ids are represented by the value of the Action.ACTION_COMMAND_KEY
and must be managed by the ActionManager. When this action is
invoked, then the actions are retrieved from the ActionManager in list order
and invoked.
ActionManager,
Serialized FormchangeSupport, enabledGROUP, IS_STATE, LARGE_ICONACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor | Description |
|---|---|
CompositeAction() |
|
CompositeAction(String name) |
|
CompositeAction(String name,
String command) |
|
CompositeAction(String name,
String command,
Icon icon) |
|
CompositeAction(String name,
Icon icon) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
actionPerformed(ActionEvent evt) |
Callback for composite actions.
|
void |
addAction(String id) |
Add an action id to the action list.
|
List<String> |
getActionIDs() |
Returns a list of action ids which indicates that this is a composite
action.
|
void |
itemStateChanged(ItemEvent evt) |
Callback for toggle actions.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnableddispose, getAccelerator, getActionCommand, getGroup, getLargeIcon, getLongDescription, getMnemonic, getName, getShortDescription, getSmallIcon, isSelected, isStateAction, setAccelerator, setActionCommand, setGroup, setLargeIcon, setLongDescription, setMnemonic, setMnemonic, setName, setSelected, setShortDescription, setSmallIcon, setStateAction, setStateAction, toStringpublic CompositeAction()
public CompositeAction(String name)
public CompositeAction(String name, String command)
name - display name of the actioncommand - the value of the action command keypublic void addAction(String id)
public List<String> getActionIDs()
public void actionPerformed(ActionEvent evt)
public void itemStateChanged(ItemEvent evt)
itemStateChanged in interface ItemListeneritemStateChanged in class AbstractActionExtevt - the ItemEvent fired by a ItemSelectable on changing the selected
state.Copyright © 2018. All rights reserved.