Package megamek.client.ui.clientGUI
Interface IClientGUI
- All Known Implementing Classes:
AbstractClientGUI
,ClientGUI
,CommanderGUI
,SBFClientGUI
public interface IClientGUI
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
die()
Performs shut down for threads and sockets and other things that can be disposed.getFrame()
void
Registers this ClientGUI as a listener wherever it's needed.default boolean
void
setChatBoxActive
(boolean active) boolean
Returns true if a dialog is visible on top of the ClientGUI.
-
Method Details
-
getFrame
JFrame getFrame()- Returns:
- The JFrame this client is displayed in.
-
shouldIgnoreHotKeys
boolean shouldIgnoreHotKeys()Returns true if a dialog is visible on top of the ClientGUI. For example, the MegaMekController should ignore hotkeys if there is a dialog, like the CommonSettingsDialog, open.- Returns:
- True when hotkey events should not be forwarded to this ClientGUI
-
initialize
void initialize()Registers this ClientGUI as a listener wherever it's needed. It is generally considered bad practice to do this in the constructor. -
die
void die()Performs shut down for threads and sockets and other things that can be disposed. -
getClient
IClient getClient() -
turnTimerComponent
JComponent turnTimerComponent() -
isChatBoxActive
default boolean isChatBoxActive() -
setChatBoxActive
void setChatBoxActive(boolean active) -
clearChatBox
void clearChatBox()
-