Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | allArguments () |
ExecCommand (@NotNull final CommandCallback commandCallback, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
void | execute (@NotNull final String args) |
String | getHelp () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
String | getCommandName () |
String | toString () |
Private Attributes | |
final CommandCallback | commandCallback |
Additional Inherited Members | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
void | drawInfo (@NotNull final String message) |
void | drawInfo (@NotNull final String message, final int color) |
void | drawInfoError (@NotNull final String message) |
Implements the "exec" command. It runs a skin command.
Definition at line 35 of file ExecCommand.java.
com.realtime.crossfire.jxclient.commands.ExecCommand.ExecCommand | ( | @NotNull final CommandCallback | commandCallback, |
@NotNull final CrossfireServerConnection | crossfireServerConnection | ||
) |
Creates a new instance.
commandCallback | the command callback to lookup commands |
crossfireServerConnection | the connection instance |
Definition at line 48 of file ExecCommand.java.
References com.realtime.crossfire.jxclient.commands.ExecCommand.commandCallback, and com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection.
boolean com.realtime.crossfire.jxclient.commands.ExecCommand.allArguments | ( | ) |
Returns whether all remaining commands should be included as arguments.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 54 of file ExecCommand.java.
void com.realtime.crossfire.jxclient.commands.ExecCommand.execute | ( | @NotNull final String | args | ) |
Executes the command with the given arguments.
args | the command arguments |
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 59 of file ExecCommand.java.
References com.realtime.crossfire.jxclient.commands.ExecCommand.commandCallback, com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfoError(), com.realtime.crossfire.jxclient.gui.commandlist.CommandList.execute(), and com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.getCommandList().
String com.realtime.crossfire.jxclient.commands.ExecCommand.getHelp | ( | ) |
Returns the help text for this command.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 77 of file ExecCommand.java.
References com.realtime.crossfire.jxclient.commands.ExecCommand.commandCallback, and com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.getCommandListNames().
|
private |
The CommandCallback to lookup commands.
Definition at line 41 of file ExecCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.ExecCommand.ExecCommand(), com.realtime.crossfire.jxclient.commands.ExecCommand.execute(), and com.realtime.crossfire.jxclient.commands.ExecCommand.getHelp().