public enum SupportedTextSelection extends java.lang.Enum<SupportedTextSelection> implements INativeEnum
Enum Constant and Description |
---|
Multiple
Supports multiple, disjoint text selections.
|
None
Does not support text selections.
|
Single
Supports a single, continuous text selection.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<SupportedTextSelection> |
fromNativeValue(int nativeValue) |
java.lang.String |
getConstantName() |
int |
getNativeValue() |
static SupportedTextSelection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SupportedTextSelection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupportedTextSelection None
public static final SupportedTextSelection Single
public static final SupportedTextSelection Multiple
public static SupportedTextSelection[] values()
for (SupportedTextSelection c : SupportedTextSelection.values()) System.out.println(c);
public static SupportedTextSelection 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 int getNativeValue()
getNativeValue
in interface INativeEnum
public java.lang.String getConstantName()
getConstantName
in interface INativeEnum
public static java.util.Optional<SupportedTextSelection> fromNativeValue(int nativeValue)