public class ActionConcentrator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList |
actions
The collection used to store the actions of this concentrator.
|
Constructor and Description |
---|
ActionConcentrator()
DefaultConstructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAction(javax.swing.Action a)
Adds the action to this concentrator.
|
boolean |
isEnabled()
Returns, whether all actions are disabled.
|
void |
removeAction(javax.swing.Action a)
Removes the action from this concentrator.
|
void |
setEnabled(boolean b)
Defines the state for all actions.
|
private final java.util.ArrayList actions
public void addAction(javax.swing.Action a)
a
- the action to be added.public void removeAction(javax.swing.Action a)
a
- the action to be removed.public void setEnabled(boolean b)
b
- the new state for all actions.public boolean isEnabled()