Crossfire JXClient, Trunk
R20561
|
A GUICommand which toggles the visibility of a dialog. More...
Public Member Functions | |
boolean | canExecute () |
Returns whether this command may be executed.
| |
DialogToggleCommand (@NotNull final CommandCallback commandCallback, @NotNull final String dialog) | |
Creates a new instance. More... | |
void | execute () |
Executes the command.Does nothing if called while canExecute() returns false . More... | |
Private Attributes | |
final CommandCallback | commandCallback |
The CommandCallback to use. More... | |
final String | dialog |
The dialog to toggle. More... | |
A GUICommand which toggles the visibility of a dialog.
Definition at line 32 of file DialogToggleCommand.java.
com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.DialogToggleCommand | ( | @NotNull final CommandCallback | commandCallback, |
@NotNull final String | dialog | ||
) |
Creates a new instance.
commandCallback | the command callback to use |
dialog | the dialog to toggle |
Definition at line 51 of file DialogToggleCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.commandCallback, and com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.dialog.
boolean com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 60 of file DialogToggleCommand.java.
void com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.execute | ( | ) |
Executes the command.Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 68 of file DialogToggleCommand.java.
References com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.toggleDialog().
|
private |
The CommandCallback to use.
Definition at line 38 of file DialogToggleCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.DialogToggleCommand().
|
private |
The dialog to toggle.
Definition at line 44 of file DialogToggleCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.DialogToggleCommand.DialogToggleCommand().