Package net.sf.basedb.core.plugin
Enum Class GuiContext.Type
- All Implemented Interfaces:
Serializable
,Comparable<GuiContext.Type>
,Constable
- Enclosing class:
- GuiContext
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private static final Map<Integer,
GuiContext.Type> Maps the integer that is stored in the database. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GuiContext.Type
fromValue
(int value) Get theGuiContext.Type
object when you know the integer code.int
getValue()
Get the integer value that is used when storing aGuiContext.Type
to the database.static GuiContext.Type
Returns the enum constant of this class with the specified name.static GuiContext.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ITEM
-
LIST
-
-
Field Details
-
valueMapping
Maps the integer that is stored in the database. -
value
private final int value
-
-
Constructor Details
-
Type
private Type(int value)
-
-
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
-
fromValue
Get theGuiContext.Type
object when you know the integer code.- Parameters:
value
- The integer value.- Returns:
- The type object or null if the value is unknown
-
getValue
public int getValue()Get the integer value that is used when storing aGuiContext.Type
to the database.- Returns:
- The intger value of this type
-