java.lang.Object com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand
public class ExecuteElementCommand
A GUICommand
which executes (i.e., simulates a left-button mouse
click on) an GUIItem
.
Field Summary | |
---|---|
private GUIItem |
item
The item element to execute. |
Constructor Summary | |
---|---|
ExecuteElementCommand(GUIItem item)
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 GUIItem item
Constructor Detail |
---|
public ExecuteElementCommand(@NotNull GUIItem item)
item
- the item element to executeMethod Detail |
---|
public boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.
execute
in interface GUICommand