Crossfire JXClient, Trunk
|
Public Member Functions | |
AccountCreateCharacterCommand (@NotNull final CommandCallback commandCallback, @NotNull final AbstractGUIElement button, @NotNull final GuiFactory guiFactory, @NotNull final NewCharModel newCharModel) | |
boolean | canExecute () |
void | execute () |
Private Attributes | |
final CommandCallback | commandCallback |
final AbstractGUIElement | element |
final GuiFactory | guiFactory |
final NewCharModel | newCharModel |
A GUICommand sending a character creation request.
Definition at line 43 of file AccountCreateCharacterCommand.java.
com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.AccountCreateCharacterCommand | ( | @NotNull final CommandCallback | commandCallback, |
@NotNull final AbstractGUIElement | button, | ||
@NotNull final GuiFactory | guiFactory, | ||
@NotNull final NewCharModel | newCharModel | ||
) |
Creates a new instance.
commandCallback | what to inform of various changes |
button | the item to link to to find the Gui from which to get information |
guiFactory | the global GUI factory instance |
newCharModel | the global new char model instance |
Definition at line 77 of file AccountCreateCharacterCommand.java.
References com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.commandCallback, com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.element, com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.guiFactory, and com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.newCharModel.
boolean com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.canExecute | ( | ) |
Returns whether this command may be executed.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 85 of file AccountCreateCharacterCommand.java.
void com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.execute | ( | ) |
Executes the command. Does nothing if called while canExecute() returns
.
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.
Definition at line 90 of file AccountCreateCharacterCommand.java.
References com.realtime.crossfire.jxclient.gui.textinput.CommandCallback.accountCreateCharacter(), com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.commandCallback, com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.element, com.realtime.crossfire.jxclient.character.Choice.getChoiceName(), com.realtime.crossfire.jxclient.character.Choice.getChoices(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getClass_(), com.realtime.crossfire.jxclient.gui.gui.Gui.getFirstElement(), com.realtime.crossfire.jxclient.skin.skin.GuiFactory.getGui(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getOption(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getOptionIndex(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getRace(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getStartingMap(), com.realtime.crossfire.jxclient.gui.textinput.GUIText.getText(), com.realtime.crossfire.jxclient.gui.label.NewCharModel.getValue(), com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.guiFactory, com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.newCharModel, and com.realtime.crossfire.jxclient.gui.gui.ActivatableGUIElement.setActive().
|
private |
The CommandCallback to use.
Definition at line 49 of file AccountCreateCharacterCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.AccountCreateCharacterCommand(), and com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.execute().
|
private |
The AbstractGUIElement to find the Gui containing the fields.
Definition at line 55 of file AccountCreateCharacterCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.AccountCreateCharacterCommand(), and com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.execute().
|
private |
The global GuiFactory instance.
Definition at line 61 of file AccountCreateCharacterCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.AccountCreateCharacterCommand(), and com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.execute().
|
private |
The global NewCharModel instance.
Definition at line 67 of file AccountCreateCharacterCommand.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.AccountCreateCharacterCommand(), and com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand.execute().