Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | canExecute () |
void | execute () |
SelectCommand (@NotNull final GUISelectable element, final boolean selected) | |
Private Attributes | |
final GUISelectable | element |
final boolean | selected |
A GUICommand for selecting or deselecting a GUIElement.
Definition at line 34 of file SelectCommand.java.
com.realtime.crossfire.jxclient.gui.commands.SelectCommand.SelectCommand | ( | @NotNull final GUISelectable | element, |
final boolean | selected | ||
) |
Creates a new instance.
element | the element to affect |
selected | whether to select the element |
Definition at line 52 of file SelectCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.SelectCommand.element, and com.realtime.crossfire.jxclient.gui.commands.SelectCommand.selected.
boolean com.realtime.crossfire.jxclient.gui.commands.SelectCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 58 of file SelectCommand.java.
void com.realtime.crossfire.jxclient.gui.commands.SelectCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 63 of file SelectCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.SelectCommand.element, com.realtime.crossfire.jxclient.gui.button.GUISelectable.select(), and com.realtime.crossfire.jxclient.gui.commands.SelectCommand.selected.
|
private |
The GUISelectable to affect.
Definition at line 40 of file SelectCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.SelectCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.SelectCommand.SelectCommand().
|
private |
Whether to select the element.
Definition at line 45 of file SelectCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.SelectCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.SelectCommand.SelectCommand().