Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | canExecute () |
void | execute () |
QuitCommand (@NotNull final CommandCallback commandCallback) | |
Private Attributes | |
final CommandCallback | commandCallback |
A GUICommand which quite the client.
Definition at line 33 of file QuitCommand.java.
com.realtime.crossfire.jxclient.gui.commands.QuitCommand.QuitCommand | ( | @NotNull final CommandCallback | commandCallback | ) |
Creates a new instance.
commandCallback | the command callback instance |
Definition at line 45 of file QuitCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.QuitCommand.commandCallback.
boolean com.realtime.crossfire.jxclient.gui.commands.QuitCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 50 of file QuitCommand.java.
void com.realtime.crossfire.jxclient.gui.commands.QuitCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
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().
|
private |
The CommandCallback instance.
Definition at line 39 of file QuitCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.QuitCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.QuitCommand.QuitCommand().