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