public enum UiMode extends java.lang.Enum<UiMode> implements ResourceEnum
This is used in the resource folder names.
Enum Constant and Description |
---|
APPLIANCE |
CAR |
DESK |
NORMAL |
TELEVISION |
WATCH |
Modifier and Type | Method and Description |
---|---|
static UiMode |
getByIndex(int index) |
static UiMode |
getEnum(java.lang.String value)
Returns the enum for matching the provided qualifier value.
|
static int |
getIndex(UiMode value) |
java.lang.String |
getLongDisplayValue()
Returns a long string for display value.
|
java.lang.String |
getResourceValue()
Returns the resource string.
|
java.lang.String |
getShortDisplayValue()
Returns a short string for display value.
|
boolean |
isFakeValue()
Whether the value is neither used for device nor resources.
|
boolean |
isValidValueForDevice()
Whether the value actually used on device.
|
int |
since() |
static UiMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UiMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UiMode NORMAL
public static final UiMode CAR
public static final UiMode DESK
public static final UiMode TELEVISION
public static final UiMode APPLIANCE
public static final UiMode WATCH
public static UiMode[] values()
for (UiMode c : UiMode.values()) System.out.println(c);
public static UiMode 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 nullpublic static UiMode getEnum(java.lang.String value)
value
- The qualifier value.public java.lang.String getResourceValue()
ResourceEnum
getResourceValue
in interface ResourceEnum
public int since()
public java.lang.String getShortDisplayValue()
ResourceEnum
For instance "exposed", which can be the value for the keyboard state or the navigation state, would be valid since something else in the UI is expected to show if this is about the keyboard or the navigation state.
getShortDisplayValue
in interface ResourceEnum
ResourceEnum.getLongDisplayValue()
public java.lang.String getLongDisplayValue()
ResourceEnum
For instance "Exposed keyboard", and "Export navigation", as "exposed" would not be enough to know what qualifier the value is about.
getLongDisplayValue
in interface ResourceEnum
ResourceEnum.getShortDisplayValue()
public static int getIndex(UiMode value)
public static UiMode getByIndex(int index)
public boolean isFakeValue()
ResourceEnum
isFakeValue
in interface ResourceEnum
public boolean isValidValueForDevice()
ResourceEnum
isValidValueForDevice
in interface ResourceEnum