Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | canExecute () |
void | execute () |
ToggleCommand (@NotNull final Component target) | |
Private Attributes | |
final Runnable | executeRunnable |
final Component | target |
A GUICommand which toggles the visibility of a target GUIElement.
Definition at line 36 of file ToggleCommand.java.
com.realtime.crossfire.jxclient.gui.commands.ToggleCommand.ToggleCommand | ( | @NotNull final Component | target | ) |
Creates a new instance.
target | the gui element to toggle |
Definition at line 62 of file ToggleCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.ToggleCommand.target.
boolean com.realtime.crossfire.jxclient.gui.commands.ToggleCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 67 of file ToggleCommand.java.
void com.realtime.crossfire.jxclient.gui.commands.ToggleCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 72 of file ToggleCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.ToggleCommand.executeRunnable, and com.realtime.crossfire.jxclient.util.SwingUtilities2.invokeAndWait().
|
private |
The Runnable that implements the functionality of execute().
Definition at line 49 of file ToggleCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ToggleCommand.execute().
|
private |
The gui element to toggle.
Definition at line 42 of file ToggleCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ToggleCommand.ToggleCommand().