Enum Class MHQTabType

java.lang.Object
java.lang.Enum<MHQTabType>
mekhq.gui.enums.MHQTabType
All Implemented Interfaces:
Serializable, Comparable<MHQTabType>, Constable

public enum MHQTabType extends Enum<MHQTabType>
Identifies the standard tabs and provides a creation method. The mnemonics used in this are included in the list at CampaignGUI.initMenu(), and they MUST be unique on that list. The order in which the tabs appear on onthe CampaignGUI is determined by the order in which they are declared here.
  • Enum Constant Details

    • COMMAND_CENTER

      public static final MHQTabType COMMAND_CENTER
    • INTERSTELLAR_MAP

      public static final MHQTabType INTERSTELLAR_MAP
    • TOE

      public static final MHQTabType TOE
    • BRIEFING_ROOM

      public static final MHQTabType BRIEFING_ROOM
    • STRAT_CON

      public static final MHQTabType STRAT_CON
    • PERSONNEL

      public static final MHQTabType PERSONNEL
    • HANGAR

      public static final MHQTabType HANGAR
    • REPAIR_BAY

      public static final MHQTabType REPAIR_BAY
    • WAREHOUSE

      public static final MHQTabType WAREHOUSE
    • INFIRMARY

      public static final MHQTabType INFIRMARY
    • FINANCES

      public static final MHQTabType FINANCES
    • MEK_LAB

      public static final MHQTabType MEK_LAB
  • Method Details

    • values

      public static MHQTabType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MHQTabType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMnemonic

      public int getMnemonic()
    • isCommandCenter

      public boolean isCommandCenter()
    • isTOE

      public boolean isTOE()
    • isBriefingRoom

      public boolean isBriefingRoom()
    • isInterstellarMap

      public boolean isInterstellarMap()
    • isPersonnel

      public boolean isPersonnel()
    • isHangar

      public boolean isHangar()
    • isWarehouse

      public boolean isWarehouse()
    • isRepairBay

      public boolean isRepairBay()
    • isInfirmary

      public boolean isInfirmary()
    • isFinances

      public boolean isFinances()
    • isMekLab

      public boolean isMekLab()
    • isStratCon

      public boolean isStratCon()
    • createTab

      @Nullable public CampaignGuiTab createTab(CampaignGUI gui)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<MHQTabType>
    • parseFromString

      public static MHQTabType parseFromString(String source)