public class ConnectCommand extends java.lang.Object implements GUICommand
GUICommand which connects to a Crossfire server.| Constructor and Description |
|---|
ConnectCommand(@NotNull GuiStateManager guiStateManager,
@NotNull GUIText hostNameInputField)
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 ConnectCommand(@NotNull
@NotNull GuiStateManager guiStateManager,
@NotNull
@NotNull GUIText hostNameInputField)
guiStateManager - the gui state manager instancehostNameInputField - the host name input fieldpublic boolean canExecute()
GUICommandcanExecute in interface GUICommandpublic void execute()
GUICommandGUICommand.canExecute()
returns false.execute in interface GUICommand