org.jfree.ui.action
Class ActionConcentrator
java.lang.Objectorg.jfree.ui.action.ActionConcentrator
This class is used to collect actions to be enabled or disabled
by a sinle call.
void | addAction(Action a)- Adds the action to this concentrator.
|
boolean | isEnabled()- Returns, whether all actions are disabled.
|
void | removeAction(Action a)- Removes the action from this concentrator.
|
void | setEnabled(boolean b)- Defines the state for all actions.
|
addAction
public void addAction(Action a)
Adds the action to this concentrator.
a - the action to be added.
isEnabled
public boolean isEnabled()
Returns, whether all actions are disabled.
If one action is enabled, then this method will return
true.
- true, if at least one action is enabled, false
otherwise.
removeAction
public void removeAction(Action a)
Removes the action from this concentrator.
a - the action to be removed.
setEnabled
public void setEnabled(boolean b)
Defines the state for all actions.
b - the new state for all actions.