java.lang.Object com.realtime.crossfire.jxclient.gui.commands.ConnectCommand
public class ConnectCommand
A GUICommand
which connects to a Crossfire server.
Field Summary | |
---|---|
private GuiStateManager |
guiStateManager
The GuiStateManager instance. |
private GUIText |
hostNameInputField
The host name input field. |
Constructor Summary | |
---|---|
ConnectCommand(GuiStateManager guiStateManager,
GUIText hostNameInputField)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
canExecute()
Returns whether this command may be executed. |
void |
execute()
Executes the command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final GuiStateManager guiStateManager
GuiStateManager
instance.
@NotNull private final GUIText hostNameInputField
Constructor Detail |
---|
public ConnectCommand(@NotNull GuiStateManager guiStateManager, @NotNull GUIText hostNameInputField)
guiStateManager
- the gui state manager instancehostNameInputField
- the host name input fieldMethod Detail |
---|
public boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.
execute
in interface GUICommand