Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand Class Reference

A GUICommand sending a play character request to the server. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand:
+ Collaboration diagram for com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand:

Public Member Functions

 AccountPlayCharacterCommand (@NotNull final CommandCallback commandCallback, @NotNull final Component button)
 Creates a new instance. More...
 
boolean canExecute ()
 Returns whether this command may be executed.
Returns
whether this command may be executed
More...
 
void execute ()
 Executes the command.Does nothing if called while canExecute() returns

false

. More...

 

Private Attributes

final CommandCallback commandCallback
 The CommandCallback to use. More...
 
final Component element
 The Component to find information for account creation. More...
 

Detailed Description

A GUICommand sending a play character request to the server.

Author
Nicolas Weeger

Definition at line 36 of file AccountPlayCharacterCommand.java.

Constructor & Destructor Documentation

◆ AccountPlayCharacterCommand()

com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand.AccountPlayCharacterCommand ( @NotNull final CommandCallback  commandCallback,
@NotNull final Component  button 
)

Creates a new instance.

Parameters
commandCallbackwhat to inform of the request
buttonthe element to find the Gui for the other fields

Definition at line 55 of file AccountPlayCharacterCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand.commandCallback.

Member Function Documentation

◆ canExecute()

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

◆ execute()

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

Member Data Documentation

◆ commandCallback

final CommandCallback com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand.commandCallback
private

◆ element

final Component com.realtime.crossfire.jxclient.gui.commands.AccountPlayCharacterCommand.element
private

The Component to find information for account creation.

Definition at line 48 of file AccountPlayCharacterCommand.java.


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