public class QuitCommand extends java.lang.Object implements GUICommand
GUICommand
which quite the client.Constructor and Description |
---|
QuitCommand(@NotNull CommandCallback commandCallback)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
public QuitCommand(@NotNull @NotNull CommandCallback commandCallback)
commandCallback
- the command callback instancepublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand