 |
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.
Combines a list of GUIElements to for a gui.
final GuiFactory guiFactory
The global GuiFactory instance.
Gui getGui(@NotNull final AbstractGUIElement element)
Returns the Gui an element is part of.
void execute()
Executes the command.
boolean canExecute()
Returns whether this command may be executed.
Abstract base class for GUI elements to be shown in Guis.
final CommandCallback commandCallback
The CommandCallback to use.
void accountLogin(@NotNull String login, @NotNull String password)
Login to an account.
AccountLoginCommand(@NotNull final CommandCallback commandCallback, @NotNull final AbstractGUIElement button, @NotNull final GuiFactory guiFactory)
Creates a new instance.
Factory for creating Gui instances.
final AbstractGUIElement element
The AbstractGUIElement to find information for account creation.
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.
A GUICommand sending an account login request to the server.