Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | canExecute () |
void | execute () |
ExecuteCommandCommand (@NotNull final CommandExecutor commandExecutor, @NotNull final String command, @NotNull final Macros macros) | |
String | getCommandString () |
Private Attributes | |
final String | command |
final CommandExecutor | commandExecutor |
final Macros | macros |
A GUICommand which executes a Crossfire command.
Definition at line 34 of file ExecuteCommandCommand.java.
com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.ExecuteCommandCommand | ( | @NotNull final CommandExecutor | commandExecutor, |
@NotNull final String | command, | ||
@NotNull final Macros | macros | ||
) |
Creates a new instance.
commandExecutor | the command executor for executing the command |
command | the command to execute |
macros | the macros instance to use |
Definition at line 60 of file ExecuteCommandCommand.java.
References com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.command, com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.commandExecutor, and com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.macros.
boolean com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 67 of file ExecuteCommandCommand.java.
void com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 72 of file ExecuteCommandCommand.java.
References com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.command, com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.commandExecutor, com.realtime.crossfire.jxclient.gui.textinput.CommandExecutor.executeCommand(), com.realtime.crossfire.jxclient.settings.Macros.expandMacros(), and com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.macros.
String com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.getCommandString | ( | ) |
Returns the command as a string.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand2.
Definition at line 78 of file ExecuteCommandCommand.java.
References com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.command.
Referenced by com.realtime.crossfire.jxclient.gui.button.GUITextButton.getTooltip().
|
private |
The command to execute.
Definition at line 46 of file ExecuteCommandCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.execute(), com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.ExecuteCommandCommand(), and com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.getCommandString().
|
private |
The CommandExecutor for executing the command.
Definition at line 40 of file ExecuteCommandCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.execute(), and com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.ExecuteCommandCommand().
|
private |
The Macros instance to use.
Definition at line 52 of file ExecuteCommandCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.execute(), and com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.ExecuteCommandCommand().