Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand:
Collaboration graph

Public Member Functions

boolean canExecute ()
 
void execute ()
 
 ExecuteElementCommand (@NotNull final GUIItem item)
 

Private Attributes

final GUIItem item
 

Detailed Description

A GUICommand which executes (i.e., simulates a left-button mouse click on) an GUIItem.

Author
Andreas Kirschbaum

Definition at line 34 of file ExecuteElementCommand.java.

Constructor & Destructor Documentation

◆ ExecuteElementCommand()

com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.ExecuteElementCommand ( @NotNull final GUIItem  item)

Creates a new instance.

Parameters
itemthe item element to execute

Definition at line 46 of file ExecuteElementCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.item.

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.canExecute ( )

Returns whether this command may be executed.

Returns
whether this command may be executed

Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.

Definition at line 51 of file ExecuteElementCommand.java.

◆ execute()

void com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.execute ( )

Executes the command. Does nothing if called while canExecute() returns

false

.

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.

Here is the call graph for this function:

Member Data Documentation

◆ item

final GUIItem com.realtime.crossfire.jxclient.gui.commands.ExecuteElementCommand.item
private

The documentation for this class was generated from the following file: