22 package com.realtime.crossfire.jxclient.gui.commands;
26 import org.jetbrains.annotations.NotNull;
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
Maintains the current GuiState.
DisconnectCommand(@NotNull final GuiStateManager guiStateManager)
Creates a new instance.
void disconnect()
Disconnects from the Crossfire server.
final GuiStateManager guiStateManager
The GuiStateManager instance.
A GUICommand which disconnects from the Crossfire server.
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .