java.lang.Object com.realtime.crossfire.jxclient.gui.commands.QuitCommand
public class QuitCommand
A GUICommand
which quite the client.
Field Summary | |
---|---|
private CommandCallback |
commandCallback
The CommandCallback instance. |
Constructor Summary | |
---|---|
QuitCommand(CommandCallback commandCallback)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
canExecute()
Returns whether this command may be executed. |
void |
execute()
Executes the command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final CommandCallback commandCallback
CommandCallback
instance.
Constructor Detail |
---|
public QuitCommand(@NotNull CommandCallback commandCallback)
commandCallback
- the command callback instanceMethod Detail |
---|
public boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.
execute
in interface GUICommand