|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jsxe.ActionSet
A set of actions.
Constructor Summary | |
ActionSet()
Creates a new action set. |
|
ActionSet(String label)
Creates a new action set. |
Method Summary | |
void |
addAction(String name,
Action action)
Adds an action to the action set. |
boolean |
contains(Action action)
Returns if this action set contains the specified action. |
Action |
getAction(String name)
Returns an action with the specified name. |
int |
getActionCount()
Returns the number of actions in the set. |
Action[] |
getActions()
Returns an array of all actions in this action set. |
String |
getLabel()
Return the action source label. |
void |
removeAction(String name)
Removes an action from the action set. |
void |
removeAllActions()
Removes all actions from the action set. |
void |
setLabel(String label)
Sets the action source label. |
String |
toString()
Returns getLabel() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ActionSet()
public ActionSet(String label)
label
- The label for the action setMethod Detail |
public String getLabel()
public void setLabel(String label)
label
- The labelpublic void addAction(String name, Action action)
name
- the internal name for the actionaction
- The actionpublic void removeAction(String name)
name
- The internal action namepublic void removeAllActions()
public Action getAction(String name)
name
- The action namepublic int getActionCount()
public Action[] getActions()
public boolean contains(Action action)
action
- The actionpublic String toString()
getLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |