java.lang.Objectcom.realtime.crossfire.jxclient.gui.commands.CommandList
public class CommandList
A list of GUICommand instances.
| Field Summary | |
|---|---|
private java.util.Collection<GUICommand> |
commandList
The list of GUICommands in execution order. |
private CommandListType |
commandListType
The command list type. |
| Constructor Summary | |
|---|---|
CommandList(CommandListType commandListType)
Creates a new instance as an empty command list. |
|
| Method Summary | |
|---|---|
void |
add(GUICommand guiCommand)
Adds a command to the end of this command list. |
private boolean |
canExecute()
Returns whether execution is possible. |
void |
execute()
Execute the command list by calling GUICommand.execute() for each
command in order. |
java.lang.String |
getCommandString()
Returns the commands as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final java.util.Collection<GUICommand> commandList
GUICommands in execution order.
@NotNull private final CommandListType commandListType
| Constructor Detail |
|---|
public CommandList(@NotNull
CommandListType commandListType)
commandListType - the command list type| Method Detail |
|---|
public void add(@NotNull
GUICommand guiCommand)
guiCommand - the command to addprivate boolean canExecute()
public void execute()
GUICommand.execute() for each
command in order.
@NotNull public java.lang.String getCommandString()