Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand:
Collaboration graph

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
 

Detailed Description

A GUICommand which executes a Crossfire command.

Author
Andreas Kirschbaum

Definition at line 34 of file ExecuteCommandCommand.java.

Constructor & Destructor Documentation

◆ ExecuteCommandCommand()

com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.ExecuteCommandCommand ( @NotNull final CommandExecutor  commandExecutor,
@NotNull final String  command,
@NotNull final Macros  macros 
)

Creates a new instance.

Parameters
commandExecutorthe command executor for executing the command
commandthe command to execute
macrosthe 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.

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.canExecute ( )

Returns whether this command may be executed.

Returns
whether this command may be executed

Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.

Definition at line 67 of file ExecuteCommandCommand.java.

◆ execute()

void com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.execute ( )

◆ getCommandString()

String com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.getCommandString ( )

Returns the command as a string.

Returns
the command

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().

Here is the caller graph for this function:

Member Data Documentation

◆ command

final String com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.command
private

◆ commandExecutor

final CommandExecutor com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.commandExecutor
private

◆ macros

final Macros com.realtime.crossfire.jxclient.gui.textinput.ExecuteCommandCommand.macros
private

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