public class DialogCloseCommand extends java.lang.Object implements GUICommand
GUICommand
which closes a Gui
.Constructor and Description |
---|
DialogCloseCommand(@NotNull CommandCallback commandCallback,
@NotNull java.lang.String dialog)
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 DialogCloseCommand(@NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull java.lang.String dialog)
commandCallback
- the command callback to usedialog
- the dialog to closepublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand