net.sourceforge.jsxe
Class ActionSet

java.lang.Object
  extended bynet.sourceforge.jsxe.ActionSet

public class ActionSet
extends Object

A set of actions.

Since:
jsXe 0.4 beta
Version:
$Id: ActionSet.java,v 1.4 2005/04/21 17:57:28 ian_lewis Exp $
Author:
Slava Pestov, Ian Lewis (IanLewis@member.fsf.org)

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

ActionSet

public ActionSet()
Creates a new action set.


ActionSet

public ActionSet(String label)
Creates a new action set.

Parameters:
label - The label for the action set
Method Detail

getLabel

public String getLabel()
Return the action source label.


setLabel

public void setLabel(String label)
Sets the action source label.

Parameters:
label - The label

addAction

public void addAction(String name,
                      Action action)
Adds an action to the action set.

Parameters:
name - the internal name for the action
action - The action

removeAction

public void removeAction(String name)
Removes an action from the action set.

Parameters:
name - The internal action name

removeAllActions

public void removeAllActions()
Removes all actions from the action set.


getAction

public Action getAction(String name)
Returns an action with the specified name.

Parameters:
name - The action name

getActionCount

public int getActionCount()
Returns the number of actions in the set.


getActions

public Action[] getActions()
Returns an array of all actions in this action set.


contains

public boolean contains(Action action)
Returns if this action set contains the specified action.

Parameters:
action - The action

toString

public String toString()
Returns getLabel()

See Also:
getLabel()