Enum Class ComponentType
- All Implemented Interfaces:
Serializable, Comparable<ComponentType>, Constable
Stable, build-independent semantic category of an interface component.
The raw Component.type() byte is the game's
jag::Component::getComponentType() return, which drifts between game
builds (LAYER was 14 in one build, 19 in another). The producer classifies
that raw byte into one of these stable codes (its WireCategory enum)
and ships it as Component.category(); this enum mirrors those codes
one-for-one. Query on this — never on the raw byte.
The numeric code() values are a wire contract shared with the
producer's game/Interfaces.h: they never change, only append.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintcode()The stable wire code the producer emits for this category.static ComponentTypefromCode(int code) Resolves a wire code to its category, orUNKNOWNfor an unrecognized code (e.g.static ComponentTypeReturns the enum constant of this class with the specified name.static ComponentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNKNOWN
-
LAYER
-
BOX
-
TEXT
-
SPRITE
-
MODEL
-
BUTTON
-
DIVIDER
-
LIST
-
INPUT
-
COMBO
-
MEDIA
-
TOOLTIP
-
CRM_VIEW
-
TABLE
-
CUTSCENE
-
-
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
-
code
public int code()The stable wire code the producer emits for this category. -
fromCode
Resolves a wire code to its category, orUNKNOWNfor an unrecognized code (e.g. a newer producer that added a category this consumer doesn't know yet).
-