Enum InterfaceComponent.Type
- java.lang.Object
-
- java.lang.Enum<InterfaceComponent.Type>
-
- org.rspeer.game.adapter.component.InterfaceComponent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<InterfaceComponent.Type>
- Enclosing class:
- InterfaceComponent
public static enum InterfaceComponent.Type extends Enum<InterfaceComponent.Type>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InterfaceComponent.Type
valueOf(int id)
Returns the enum constant of this type with the specified name.static InterfaceComponent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static InterfaceComponent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LAYER
public static final InterfaceComponent.Type LAYER
-
UNKNOWN
public static final InterfaceComponent.Type UNKNOWN
-
TABLE
public static final InterfaceComponent.Type TABLE
-
BOX
public static final InterfaceComponent.Type BOX
-
LABEL
public static final InterfaceComponent.Type LABEL
-
SPRITE
public static final InterfaceComponent.Type SPRITE
-
MODEL
public static final InterfaceComponent.Type MODEL
-
MEDIA
public static final InterfaceComponent.Type MEDIA
-
TOOLTIP
public static final InterfaceComponent.Type TOOLTIP
-
DIVIDER
public static final InterfaceComponent.Type DIVIDER
-
UNDEFINED
public static final InterfaceComponent.Type UNDEFINED
-
-
Method Detail
-
values
public static InterfaceComponent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InterfaceComponent.Type c : InterfaceComponent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InterfaceComponent.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
public static InterfaceComponent.Type valueOf(int id)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
id
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-