| java.lang.Object org.jfree.ui.action.ActionConcentrator
ActionConcentrator | public class ActionConcentrator (Code) | | This class is used to collect actions to be enabled or disabled
by a sinle call.
author: Thomas Morgner |
Method Summary | |
public void | addAction(Action a) Adds the action to this concentrator. | public boolean | isEnabled() Returns, whether all actions are disabled. | public void | removeAction(Action a) Removes the action from this concentrator. | public void | setEnabled(boolean b) Defines the state for all actions. |
ActionConcentrator | public ActionConcentrator()(Code) | | DefaultConstructor.
|
addAction | public void addAction(Action a)(Code) | | Adds the action to this concentrator.
Parameters: a - the action to be added. |
isEnabled | public boolean isEnabled()(Code) | | 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, falseotherwise. |
removeAction | public void removeAction(Action a)(Code) | | Removes the action from this concentrator.
Parameters: a - the action to be removed. |
setEnabled | public void setEnabled(boolean b)(Code) | | Defines the state for all actions.
Parameters: b - the new state for all actions. |
|
|