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

Public Member Functions

boolean canExecute ()
 
void execute ()
 
 SelectCommand (@NotNull final GUISelectable element, final boolean selected)
 

Private Attributes

final GUISelectable element
 
final boolean selected
 

Detailed Description

A GUICommand for selecting or deselecting a GUIElement.

Author
Andreas Kirschbaum

Definition at line 34 of file SelectCommand.java.

Constructor & Destructor Documentation

◆ SelectCommand()

com.realtime.crossfire.jxclient.gui.commands.SelectCommand.SelectCommand ( @NotNull final GUISelectable  element,
final boolean  selected 
)

Creates a new instance.

Parameters
elementthe element to affect
selectedwhether 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.

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.commands.SelectCommand.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 58 of file SelectCommand.java.

◆ execute()

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

Member Data Documentation

◆ element

final GUISelectable com.realtime.crossfire.jxclient.gui.commands.SelectCommand.element
private

◆ selected

final boolean com.realtime.crossfire.jxclient.gui.commands.SelectCommand.selected
private

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