Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | canExecute () |
void | execute () |
ExecuteElementCommand (@NotNull final GUIItem item) | |
Private Attributes | |
final GUIItem | item |
A GUICommand which executes (i.e., simulates a left-button mouse click on) an GUIItem.
Definition at line 34 of file ExecuteElementCommand.java.
com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.ExecuteElementCommand | ( | @NotNull final GUIItem | item | ) |
Creates a new instance.
item | the item element to execute |
Definition at line 46 of file ExecuteElementCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.item.
boolean com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 51 of file ExecuteElementCommand.java.
void com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 56 of file ExecuteElementCommand.java.
References com.realtime.crossfire.jxclient.gui.item.GUIItem.button1Clicked(), and com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.item.
|
private |
The item element to execute.
Definition at line 40 of file ExecuteElementCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.execute(), and com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.ExecuteElementCommand().