java.lang.Object com.realtime.crossfire.jxclient.gui.commands.AccountLinkCharacterCommand
public class AccountLinkCharacterCommand
A GUICommand
sending a request to link a character to an account.
Field Summary | |
---|---|
private CommandCallback |
commandCallback
The CommandCallback to use. |
private GUIElement |
element
The GUIElement to find information for account creation. |
Constructor Summary | |
---|---|
AccountLinkCharacterCommand(CommandCallback commandCallback,
GUIElement button)
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 CommandCallback commandCallback
CommandCallback
to use.
@NotNull private final GUIElement element
GUIElement
to find information for account creation.
Constructor Detail |
---|
public AccountLinkCharacterCommand(@NotNull CommandCallback commandCallback, @NotNull GUIElement button)
commandCallback
- what to inform of the request.button
- element to find the Gui for the other fields.Method Detail |
---|
public boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.
execute
in interface GUICommand