java.lang.Objectcom.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand
public class DialogToggleCommand
A GUICommand which toggles the visibility of a dialog.
| Field Summary | |
|---|---|
private CommandCallback |
commandCallback
The CommandCallback to use. |
private Gui |
dialog
The dialog to toggle. |
| Constructor Summary | |
|---|---|
DialogToggleCommand(CommandCallback commandCallback,
Gui dialog)
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 to use.
@NotNull private final Gui dialog
| Constructor Detail |
|---|
public DialogToggleCommand(@NotNull
CommandCallback commandCallback,
@NotNull
Gui dialog)
commandCallback - the command callback to usedialog - the dialog to toggle| Method Detail |
|---|
public boolean canExecute()
canExecute in interface GUICommandpublic void execute()
GUICommand.canExecute()
returns false.
execute in interface GUICommand