void setConnected(final boolean connected)
Records whether a server connection is active.
final GuiManager guiManager
The GuiManager instance.
final Object semaphoreConnected
The synchronization object for accesses to connected.
final ClientSocketListener clientSocketListener
The ClientSocketListener used to detect connection state changes.
void keyReleased()
A key (but not ESC) has been released.
void escPressed()
The ESC key has been pressed.
boolean isConnected()
Returns whether a server connection is active.
final GuiStateManager guiStateManager
The GuiStateManager instance.
void terminate()
Terminates the application.
Allows to exit the application.
A KeyHandlerListener which updates the state of a GuiManager.
boolean connected
Whether a server connection is active.
DefaultKeyHandler(@NotNull final Exiter exiter, @NotNull final GuiManager guiManager, @NotNull final ServerConnection server, @NotNull final GuiStateManager guiStateManager)
Creates a new instance.