22 package com.realtime.crossfire.jxclient.gui.commands;
27 import org.jetbrains.annotations.NotNull;
A GUICommand which connects to a Crossfire server.
Maintains the current GuiState.
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .
String getText()
Returns the entered text.
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
void connect(@NotNull final String serverInfo)
Connects to a Crossfire server.
final GuiStateManager guiStateManager
The GuiStateManager instance.
Abstract base class for text input fields.
ConnectCommand(@NotNull final GuiStateManager guiStateManager, @NotNull final GUIText hostNameInputField)
Creates a new instance.
final GUIText hostNameInputField
The host name input field.