|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uif.action.ActionSet
public final class ActionSet
Describes, holds and manages a set of Actions. Useful to group related Actions, for example to enable and disable them all at the same time.
Action
,
AbstractAction
Constructor Summary | |
---|---|
ActionSet(String name,
Action... actions)
Constructs an ActionSet with the given name and array of
Actions . |
|
ActionSet(String name,
List<Action> actions)
Constructs an ActionSet with the given name and list of
Actions . |
Method Summary | |
---|---|
void |
add(Action action)
Adds an Action to this set of Actions. |
List<Action> |
getActions()
Returns an unmodifiable list of this ActionSet's actions. |
String |
getName()
Returns this set's name. |
void |
remove(Action action)
Removes an Action from this set of Actions. |
void |
setEnabled(boolean enabled)
Enables or disables all actions in this set of actions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionSet(String name, List<Action> actions)
ActionSet
with the given name and list of
Actions
.
name
- describes this ActionSetactions
- The Actions that make this set
NullPointerException
- if the list of actions is null.public ActionSet(String name, Action... actions)
ActionSet
with the given name and array of
Actions
.
name
- describes this ActionSetactions
- The Actions that make this set
NullPointerException
- if the list of actions is null.Method Detail |
---|
public String getName()
public List<Action> getActions()
public void add(Action action)
action
- the Action to add
NullPointerException
- if the action is nullpublic void remove(Action action)
action
- the Action to remove
NullPointerException
- if the action is nullpublic void setEnabled(boolean enabled)
enabled
- true to enable all actions, false to disable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |