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