Class AccountCreateCharacterCommand
- java.lang.Object
-
- com.realtime.crossfire.jxclient.gui.commands.AccountCreateCharacterCommand
-
- All Implemented Interfaces:
GUICommand
public class AccountCreateCharacterCommand extends java.lang.Object implements GUICommand
AGUICommandsending a character creation request.
-
-
Constructor Summary
Constructors Constructor Description AccountCreateCharacterCommand(@NotNull CommandCallback commandCallback, @NotNull AbstractGUIElement button, @NotNull GuiFactory guiFactory, @NotNull NewCharModel newCharModel)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute()Returns whether this command may be executed.voidexecute()Executes the command.
-
-
-
Constructor Detail
-
AccountCreateCharacterCommand
public AccountCreateCharacterCommand(@NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull AbstractGUIElement button, @NotNull @NotNull GuiFactory guiFactory, @NotNull @NotNull NewCharModel newCharModel)Creates a new instance.- Parameters:
commandCallback- what to inform of various changesbutton- the item to link to to find the Gui from which to get informationguiFactory- the global GUI factory instancenewCharModel- the global new char model instance
-
-
Method Detail
-
canExecute
public boolean canExecute()
Description copied from interface:GUICommandReturns whether this command may be executed.- Specified by:
canExecutein interfaceGUICommand- Returns:
- whether this command may be executed
-
execute
public void execute()
Description copied from interface:GUICommandExecutes the command. Does nothing if called whileGUICommand.canExecute()returnsfalse.- Specified by:
executein interfaceGUICommand
-
-