Package megamek.client.ui.clientGUI
Interface IClientGUI
- All Known Implementing Classes:
- AbstractClientGUI,- ClientGUI,- CommanderGUI,- SBFClientGUI
public interface IClientGUI
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoiddie()Performs shut down for threads and sockets and other things that can be disposed.getFrame()voidRegisters this ClientGUI as a listener wherever it's needed.default booleanvoidsetChatBoxActive(boolean active) booleanReturns true if a dialog is visible on top of the ClientGUI.
- 
Method Details- 
getFrameJFrame getFrame()- Returns:
- The JFrame this client is displayed in.
 
- 
shouldIgnoreHotKeysboolean 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
 
- 
initializevoid initialize()Registers this ClientGUI as a listener wherever it's needed. It is generally considered bad practice to do this in the constructor.
- 
dievoid die()Performs shut down for threads and sockets and other things that can be disposed.
- 
getClientIClient getClient()
- 
turnTimerComponentJComponent turnTimerComponent()
- 
isChatBoxActivedefault boolean isChatBoxActive()
- 
setChatBoxActivevoid setChatBoxActive(boolean active) 
- 
clearChatBoxvoid clearChatBox()
 
-