21 package com.realtime.crossfire.jxclient.gui.commands;
29 import java.awt.Component;
30 import org.jetbrains.annotations.NotNull;
79 if (charactersList == null) {
84 if (current == null) {
static Gui getGui(@NotNull final Component element)
Returns the Gui an element is part of.
CharacterInformation getCurrentCharacter()
Returns the currently selected character in the list.
Combines a list of GUIElements to for a gui.
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .
void accountPlayCharacter(@NotNull String name)
Plays a character from the current account.
final CommandCallback commandCallback
The CommandCallback to use.
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
Utility class for Gui related functions.
Interface that defines callback functions needed by commands.
A GUIList display characters of an account.
AccountPlayCharacterCommand(@NotNull final CommandCallback commandCallback, @NotNull final Component button)
Creates a new instance.
final Component element
The Component to find information for account creation.
A GUICommand sending a play character request to the server.