Interface IClientGUI

All Known Implementing Classes:
AbstractClientGUI, ClientGUI, CommanderGUI, SBFClientGUI

public interface IClientGUI
  • 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()