Crossfire JXClient, Trunk
R20561
|
Implements the "bind" command. More...
Public Member Functions | |||
boolean | allArguments () | ||
Returns whether all remaining commands should be included as arguments.
| |||
BindCommand (@NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final CommandCallback commandCallback, @NotNull final GUICommandFactory guiCommandFactory) | |||
Creates a new instance. More... | |||
void | execute (@NotNull final String args) | ||
Executes the command with the given arguments.
| |||
![]() | |||
String | getCommandName () | ||
Returns the name of the command.
| |||
String | toString () | ||
Private Attributes | |
final CommandCallback | commandCallback |
The CommandCallback to use. More... | |
final GUICommandFactory | guiCommandFactory |
The GUICommandFactory for creating commands. More... | |
Additional Inherited Members | |
![]() | |
AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
Creates a new instance. More... | |
void | drawInfo (@NotNull final String message) |
Displays a regular output message. More... | |
void | drawInfo (@NotNull final String message, final int color) |
Displays a message. More... | |
void | drawInfoError (@NotNull final String message) |
Displays an error message. More... | |
Implements the "bind" command.
It associates a key with a command.
Definition at line 36 of file BindCommand.java.
com.realtime.crossfire.jxclient.commands.BindCommand.BindCommand | ( | @NotNull final CrossfireServerConnection | crossfireServerConnection, |
@NotNull final CommandCallback | commandCallback, | ||
@NotNull final GUICommandFactory | guiCommandFactory | ||
) |
Creates a new instance.
crossfireServerConnection | the connection instance |
commandCallback | the command callback to use |
guiCommandFactory | the gui command factory for creating commands |
Definition at line 56 of file BindCommand.java.
References com.realtime.crossfire.jxclient.commands.BindCommand.commandCallback, and com.realtime.crossfire.jxclient.commands.BindCommand.guiCommandFactory.
boolean com.realtime.crossfire.jxclient.commands.BindCommand.allArguments | ( | ) |
Returns whether all remaining commands should be included as arguments.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 66 of file BindCommand.java.
void com.realtime.crossfire.jxclient.commands.BindCommand.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 74 of file BindCommand.java.
References com.realtime.crossfire.jxclient.gui.commandlist.CommandList.add(), com.realtime.crossfire.jxclient.gui.commandlist.CommandListType.AND, com.realtime.crossfire.jxclient.gui.commandlist.GUICommandFactory.createCommand(), com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.createKeyBinding(), com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfoError(), and com.realtime.crossfire.jxclient.util.StringUtils.trimLeading().
|
private |
The CommandCallback to use.
Definition at line 42 of file BindCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.BindCommand.BindCommand().
|
private |
The GUICommandFactory for creating commands.
Definition at line 48 of file BindCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.BindCommand.BindCommand().