Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.commands.BindCommand Class Reference

Implements the "bind" command. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.commands.BindCommand:
+ Collaboration diagram for com.realtime.crossfire.jxclient.commands.BindCommand:

Public Member Functions

boolean allArguments ()
 Returns whether all remaining commands should be included as arguments.
Returns
whether all remaining commands should be included as arguments
More...
 
 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.
Parameters
argsthe command arguments
More...
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand
String getCommandName ()
 Returns the name of the command.
Returns
the name
More...
 
String toString ()
 

Private Attributes

final CommandCallback commandCallback
 The CommandCallback to use. More...
 
final GUICommandFactory guiCommandFactory
 The GUICommandFactory for creating commands. More...
 

Additional Inherited Members

- Protected Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand
 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...
 

Detailed Description

Implements the "bind" command.

It associates a key with a command.

Author
Andreas Kirschbaum

Definition at line 36 of file BindCommand.java.

Constructor & Destructor Documentation

◆ BindCommand()

com.realtime.crossfire.jxclient.commands.BindCommand.BindCommand ( @NotNull final CrossfireServerConnection  crossfireServerConnection,
@NotNull final CommandCallback  commandCallback,
@NotNull final GUICommandFactory  guiCommandFactory 
)

Creates a new instance.

Parameters
crossfireServerConnectionthe connection instance
commandCallbackthe command callback to use
guiCommandFactorythe 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.

Member Function Documentation

◆ allArguments()

boolean com.realtime.crossfire.jxclient.commands.BindCommand.allArguments ( )

Returns whether all remaining commands should be included as arguments.

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.

◆ execute()

Member Data Documentation

◆ commandCallback

final CommandCallback com.realtime.crossfire.jxclient.commands.BindCommand.commandCallback
private

◆ guiCommandFactory

final GUICommandFactory com.realtime.crossfire.jxclient.commands.BindCommand.guiCommandFactory
private

The GUICommandFactory for creating commands.

Definition at line 48 of file BindCommand.java.

Referenced by com.realtime.crossfire.jxclient.commands.BindCommand.BindCommand().


The documentation for this class was generated from the following file: