public class AccountLoginCommand extends java.lang.Object implements GUICommand
GUICommand
sending an account login request to the server.Constructor and Description |
---|
AccountLoginCommand(@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 AccountLoginCommand(@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