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