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

Public Member Functions

boolean canExecute ()
 
void execute ()
 
 QuitCommand (@NotNull final CommandCallback commandCallback)
 

Private Attributes

final CommandCallback commandCallback
 

Detailed Description

A GUICommand which quite the client.

Author
Andreas Kirschbaum

Definition at line 33 of file QuitCommand.java.

Constructor & Destructor Documentation

◆ QuitCommand()

com.realtime.crossfire.jxclient.gui.commands.QuitCommand.QuitCommand ( @NotNull final CommandCallback  commandCallback)

Creates a new instance.

Parameters
commandCallbackthe command callback instance

Definition at line 45 of file QuitCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.QuitCommand.commandCallback.

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.commands.QuitCommand.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 50 of file QuitCommand.java.

◆ execute()

void com.realtime.crossfire.jxclient.gui.commands.QuitCommand.execute ( )

Executes the command. Does nothing if called while canExecute() returns

false

.

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

Definition at line 55 of file QuitCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.QuitCommand.commandCallback, and com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.quitApplication().

Here is the call graph for this function:

Member Data Documentation

◆ commandCallback

final CommandCallback com.realtime.crossfire.jxclient.gui.commands.QuitCommand.commandCallback
private

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