Package mekhq.gui.enums
Enum Class MHQTabType
- All Implemented Interfaces:
Serializable
,Comparable<MHQTabType>
,Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptioncreateTab
(CampaignGUI gui) int
boolean
boolean
boolean
boolean
isHangar()
boolean
boolean
boolean
isMekLab()
boolean
boolean
boolean
boolean
isTOE()
boolean
static MHQTabType
parseFromString
(String source) toString()
static MHQTabType
Returns the enum constant of this class with the specified name.static MHQTabType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMAND_CENTER
-
INTERSTELLAR_MAP
-
TOE
-
BRIEFING_ROOM
-
STRAT_CON
-
PERSONNEL
-
HANGAR
-
REPAIR_BAY
-
WAREHOUSE
-
INFIRMARY
-
FINANCES
-
MEK_LAB
-
-
Method Details
-
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
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 nameNullPointerException
- 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
-
toString
- Overrides:
toString
in classEnum<MHQTabType>
-
parseFromString
-