public static enum Setting.DataType extends java.lang.Enum<Setting.DataType>
Enum Constant and Description |
---|
BOOLEAN
Denotes a boolean setting value.
|
NUMBER
Denotes a numerical settings value.
|
SELECTION
Denotes a setting value where multiple values may be selected The
Setting.getSelection() method must be re-implemented in a meaningful way. |
SEPARATOR
Denotes a separator for settings, visually separating different setting sections.
|
STRING
Denotes a string setting value.
|
Modifier and Type | Method and Description |
---|---|
static Setting.DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Setting.DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Setting.DataType NUMBER
Setting.getSelection()
must be implemented meaningfully.public static final Setting.DataType STRING
Setting.getSelection()
must be implemented meaningfully.public static final Setting.DataType BOOLEAN
Setting.getSelection()
must be implemented meaningfully.public static final Setting.DataType SELECTION
Setting.getSelection()
method must be re-implemented in a meaningful way.
The Setting.getCurrentValue()
must be one of those values to correctly set the initially displayed value.public static final Setting.DataType SEPARATOR
Setting.getName()
must be implemented meaningfully.
The Setting.apply(Object)
might get called, however it should just do nothing.public static Setting.DataType[] values()
for (Setting.DataType c : Setting.DataType.values()) System.out.println(c);
public static Setting.DataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null