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

A GUICommand sending a request to link a character to an account. More...

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

Public Member Functions

 AccountLinkCharacterCommand (@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 request to link a character to an account.

Author
Nicolas Weeger

Definition at line 35 of file AccountLinkCharacterCommand.java.

Constructor & Destructor Documentation

◆ AccountLinkCharacterCommand()

com.realtime.crossfire.jxclient.gui.commands.AccountLinkCharacterCommand.AccountLinkCharacterCommand ( @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 54 of file AccountLinkCharacterCommand.java.

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

Member Function Documentation

◆ canExecute()

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

◆ execute()

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

Member Data Documentation

◆ commandCallback

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

◆ element

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

The Component to find information for account creation.

Definition at line 47 of file AccountLinkCharacterCommand.java.


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