 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.commands;
31 import org.jetbrains.annotations.NotNull;
84 if (loginField ==
null || passwordField ==
null) {
88 final String login = loginField.
getText();
89 final String password = passwordField.
getText();
Abstract base class for text input fields.
final CommandCallback commandCallback
The CommandCallback to use.
Combines a list of GUIElements to for a gui.
Gui getGui(@NotNull final AbstractGUIElement element)
Returns the Gui an element is part of.
AccountLinkCharacterCommand(@NotNull final CommandCallback commandCallback, @NotNull final AbstractGUIElement button, @NotNull final GuiFactory guiFactory)
Creates a new instance.
Abstract base class for GUI elements to be shown in Guis.
final GuiFactory guiFactory
The global GuiFactory instance.
A GUICommand sending a request to link a character to an account.
final AbstractGUIElement element
The AbstractGUIElement to find information for account creation.
void execute()
Executes the command.
void accountLink(int force, @NotNull String login, @NotNull String password)
Links a character to the current account.
Factory for creating Gui instances.
Interface that defines callback functions needed by commands.
public< T extends GUIElement > T getFirstElement(@NotNull final Class< T > class_)
Returns the first gui element of this gui belonging to the given class.
String getText()
Returns the entered text.
boolean canExecute()
Returns whether this command may be executed.