public class AccountCreateCommand extends java.lang.Object implements GUICommand
GUICommand
sending an account creation request.Constructor and Description |
---|
AccountCreateCommand(@NotNull CommandCallback commandCallback,
@NotNull AbstractGUIElement button,
@NotNull GuiFactory guiFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
public AccountCreateCommand(@NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull AbstractGUIElement button, @NotNull @NotNull GuiFactory guiFactory)
commandCallback
- what to inform of the requestbutton
- the element to find the Gui for the other fieldsguiFactory
- the global GUI factory instancepublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand