|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
com.ehsbe.commons.action.AbstractActionExt
com.ehsbe.commons.action.ManagedAction
com.ehsbe.commons.action.CompositeAction
public class CompositeAction
A class that represents an action which will fire a sequence of actions.
| Field Summary |
|---|
| Fields inherited from class com.ehsbe.commons.action.ManagedAction |
|---|
actionListeners, itemListeners |
| Fields inherited from class com.ehsbe.commons.action.AbstractActionExt |
|---|
GROUP, IS_STATE, LARGE_ICON_P_KEY, SELECT_PROPERTY_NAME, SMALL_ICON_P_KEY |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
CompositeAction()
Default constructor. |
|
CompositeAction(String name)
Create a action with the given name. |
|
CompositeAction(String name,
Icon icon)
Create a action with the given name and icon. |
|
CompositeAction(String name,
String command)
Constructs an Action with the label and command |
|
CompositeAction(String name,
String command,
Icon icon)
Constructs an action with the given name, icon and command key. |
|
| Method Summary | |
|---|---|
void |
addAction(Action action)
Add an action to the action list. |
Set<Action> |
getActions()
Get a list of actions which indicates that this is a composite action. |
void |
removeAction(Action action)
Remove the given action from the internal list of actions, where to dispatch events. |
| Methods inherited from class com.ehsbe.commons.action.ManagedAction |
|---|
actionPerformed, addActionListener, addItemListener, clone, itemStateChanged, removeActionListener, removeItemListener |
| Methods inherited from class com.ehsbe.commons.action.AbstractActionExt |
|---|
dispose, getAccelerator, getActionCommand, getGroup, getLargeIcon, getLargePressedIcon, getLongDescription, getMnemonic, getName, getShortDescription, getSmallIcon, getSmallPressedIcon, isSelected, isStateAction, setAccelerator, setActionCommand, setGroup, setLargeIcon, setLargePressedIcon, setLongDescription, setMnemonic, setMnemonic, setName, setSelected, setShortDescription, setSmallIcon, setSmallPressedIcon, setStateAction, setStateAction, toString |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeAction()
public CompositeAction(String name)
name - action's nameAbstractAction.AbstractAction(String)
public CompositeAction(String name,
String command)
name - name of the action usually used as a labelcommand - command key of the action
public CompositeAction(String name,
Icon icon)
name - action's nameicon - small icon to setAbstractAction.AbstractAction(String, Icon)
public CompositeAction(String name,
String command,
Icon icon)
name - display name of the actioncommand - the value of the action command keyicon - icon to display| Method Detail |
|---|
public void addAction(Action action)
action - action to addManagedAction.addActionListener(ActionListener),
ManagedAction.addItemListener(ItemListener)public void removeAction(Action action)
action - action to remove.ManagedAction.removeActionListener(ActionListener),
ManagedAction.removeItemListener(ItemListener)public Set<Action> getActions()
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||