All Packages Class Hierarchy This Package Previous Next Index
Class bvyy.command.CommandSet
java.lang.Object
|
+----java.util.EventObject
|
+----bvyy.util.GeneralEvent
|
+----bvyy.command.Command
|
+----bvyy.command.CommandSet
- public class CommandSet
- extends Command
The command set allows for sequences of commands (order is very important
as is has semantic meaning) and allows command to contain commands.
- Version:
- 0.0.1 27 October 1998
- Author:
- (c)1998 Brian Voon Yee Yap
-
CommandSet()
- Creates an empty command set.
-
CommandSet(String)
- Creates an empty command set with a description of S.
-
getCommandList()
- Returns the current command list.
-
setCommandList(Vector)
- Allows replacement of the current command list with a new command list.
CommandSet
public CommandSet()
- Creates an empty command set.
CommandSet
public CommandSet(String s)
- Creates an empty command set with a description of S.
- Parameters:
- s - the event description.
setCommandList
public void setCommandList(Vector newCommandList)
- Allows replacement of the current command list with a new command list.
All current commands are lost.
Note: The command set comes with it's own command list so it will not
normally be necessary to call this function.
It a null command list is supplied it will be ignored.
- Parameters:
- newCommandList - the list that replaces the current list.
getCommandList
public Vector getCommandList()
- Returns the current command list. The command list is a vector and this
allows modification this list using the normal vector functions.
For example: comandSet.getCommandList.addElement(CommandX);
- See Also:
- vector
All Packages Class Hierarchy This Package Previous Next Index
|