 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.commands;
32 import org.jetbrains.annotations.NotNull;
83 if (charactersList ==
null) {
88 if (current ==
null) {
Combines a list of GUIElements to for a gui.
Gui getGui(@NotNull final AbstractGUIElement element)
Returns the Gui an element is part of.
final CommandCallback commandCallback
The CommandCallback to use.
Abstract base class for GUI elements to be shown in Guis.
A GUIList display characters of an account.
CharacterInformation getCurrentCharacter()
Returns the currently selected character in the list.
A GUICommand sending a play character request to the server.
void execute()
Executes the command.
AccountPlayCharacterCommand(@NotNull final CommandCallback commandCallback, @NotNull final AbstractGUIElement button, @NotNull final GuiFactory guiFactory)
Creates a new instance.
Factory for creating Gui instances.
void accountPlayCharacter(@NotNull String name)
Plays a character from the current account.
Interface that defines callback functions needed by commands.
final GuiFactory guiFactory
The global GuiFactory instance.
boolean canExecute()
Returns whether this command may be executed.
public< T extends GUIElement > T getFirstElement(@NotNull final Class< T > class_)
Returns the first gui element of this gui belonging to the given class.
final AbstractGUIElement element
The AbstractGUIElement to find information for account creation.