Crossfire JXClient, Trunk
|
Public Member Functions | |
void | add (@NotNull final GUICommand guiCommand) |
CommandList (@NotNull final CommandListType commandListType) | |
boolean | containsCommand (@NotNull final Class<? extends GUICommand > command) |
void | execute () |
String | getCommandString () |
GUICommand | getSingleCommand () |
Private Member Functions | |
boolean | canExecute () |
Private Attributes | |
final List< GUICommand > | commandList = new ArrayList<>() |
final CommandListType | commandListType |
A list of GUICommand instances.
Definition at line 34 of file CommandList.java.
com.realtime.crossfire.jxclient.gui.commandlist.CommandList.CommandList | ( | @NotNull final CommandListType | commandListType | ) |
Creates a new instance as an empty command list.
commandListType | the command list type |
Definition at line 52 of file CommandList.java.
References com.realtime.crossfire.jxclient.gui.commandlist.CommandList.commandListType.
void com.realtime.crossfire.jxclient.gui.commandlist.CommandList.add | ( | @NotNull final GUICommand | guiCommand | ) |
Adds a command to the end of this command list.
guiCommand | the command to add |
Definition at line 60 of file CommandList.java.
References com.realtime.crossfire.jxclient.gui.commandlist.CommandList.commandList.
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.addCommand(), com.realtime.crossfire.jxclient.commands.BindCommand.execute(), and com.realtime.crossfire.jxclient.gui.keybindings.KeyBindings.parseKeyBinding().
|
private |
Returns whether execution is possible.
Definition at line 68 of file CommandList.java.
References com.realtime.crossfire.jxclient.gui.commandlist.CommandList.commandList, and com.realtime.crossfire.jxclient.gui.commandlist.CommandList.commandListType.
Referenced by com.realtime.crossfire.jxclient.gui.commandlist.CommandList.execute().
boolean com.realtime.crossfire.jxclient.gui.commandlist.CommandList.containsCommand | ( | @NotNull final Class<? extends GUICommand > | command | ) |
Returns whether this command list contains a command of the given type.
command | the command type |
Definition at line 135 of file CommandList.java.
References com.realtime.crossfire.jxclient.gui.commandlist.CommandList.commandList.
Referenced by com.realtime.crossfire.jxclient.gui.button.AbstractButton.AbstractButton(), and com.realtime.crossfire.jxclient.gui.button.AbstractButton.dispose().
void com.realtime.crossfire.jxclient.gui.commandlist.CommandList.execute | ( | ) |
Execute the command list by calling GUICommand#execute() for each command in order.
Definition at line 99 of file CommandList.java.
References com.realtime.crossfire.jxclient.gui.commandlist.CommandList.canExecute(), com.realtime.crossfire.jxclient.gui.commandlist.CommandList.commandList, and com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.execute().
Referenced by com.realtime.crossfire.jxclient.skin.skin.DefaultJXCSkin.attach(), com.realtime.crossfire.jxclient.commands.ExecCommand.execute(), com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.execute(), com.realtime.crossfire.jxclient.gui.textinput.GUITextField.execute(), com.realtime.crossfire.jxclient.gui.button.AbstractButton.execute(), com.realtime.crossfire.jxclient.gui.gauge.GUIGauge.mouseClicked(), com.realtime.crossfire.jxclient.gui.gauge.GUIDupGauge.mouseClicked(), and com.realtime.crossfire.jxclient.gui.list.GUIList< GUICharacter >.mouseClicked().
String com.realtime.crossfire.jxclient.gui.commandlist.CommandList.getCommandString | ( | ) |
Returns the commands as a string.
Definition at line 112 of file CommandList.java.
References com.realtime.crossfire.jxclient.gui.commandlist.CommandList.commandList.
Referenced by com.realtime.crossfire.jxclient.gui.keybindings.KeyBinding.getCommandString().
GUICommand com.realtime.crossfire.jxclient.gui.commandlist.CommandList.getSingleCommand | ( | ) |
Returns the single command of this command list.
Definition at line 150 of file CommandList.java.
References com.realtime.crossfire.jxclient.gui.commandlist.CommandList.commandList.
Referenced by com.realtime.crossfire.jxclient.gui.button.GUITextButton.GUITextButton().
|
private |
The list of GUICommands in execution order.
Definition at line 46 of file CommandList.java.
Referenced by com.realtime.crossfire.jxclient.gui.commandlist.CommandList.add(), com.realtime.crossfire.jxclient.gui.commandlist.CommandList.canExecute(), com.realtime.crossfire.jxclient.gui.commandlist.CommandList.containsCommand(), com.realtime.crossfire.jxclient.gui.commandlist.CommandList.execute(), com.realtime.crossfire.jxclient.gui.commandlist.CommandList.getCommandString(), and com.realtime.crossfire.jxclient.gui.commandlist.CommandList.getSingleCommand().
|
private |
The command list type.
Definition at line 40 of file CommandList.java.
Referenced by com.realtime.crossfire.jxclient.gui.commandlist.CommandList.canExecute(), and com.realtime.crossfire.jxclient.gui.commandlist.CommandList.CommandList().