Package rma.swing.action
Class ActionGroup
java.lang.Object
javax.swing.AbstractAction
rma.swing.action.ActionGroup
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- See Also:
-
Field Summary
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Appends an action to the end of the list.getAction
(int i) Returns the action at the specified location in the list.int
Returns the number of actions in the group.void
remove all the Actions in this ActionGroupMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
ActionGroup
public ActionGroup() -
ActionGroup
-
-
Method Details
-
actionPerformed
-
addAction
Appends an action to the end of the list. -
getActionCount
public int getActionCount()Returns the number of actions in the group. -
getAction
Returns the action at the specified location in the list. If the index is less than 0 or greater than the size of the list or if the action does not exist at that position then null is returned. -
removeAllActions
public void removeAllActions()remove all the Actions in this ActionGroup
-