public static enum Options.Type extends Enum<Options.Type>
checkbox
, radio
, drop-down
, multi-drop-down
.Enum Constant and Description |
---|
CHECKBOX |
DROP_DOWN |
MULTI_DROP_DOWN |
RADIO |
Modifier and Type | Method and Description |
---|---|
static Options.Type |
fromString(String value)
Given a
String value , this method returns the enum's value that corresponds to the provided string
representation. |
String |
getValue()
Returns the string value of this enum constant.
|
static Options.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Options.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Options.Type CHECKBOX
public static final Options.Type RADIO
public static final Options.Type DROP_DOWN
public static final Options.Type MULTI_DROP_DOWN
public static Options.Type[] values()
for (Options.Type c : Options.Type.values()) System.out.println(c);
public static Options.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Options.Type fromString(String value)
String
value
, this method returns the enum's value that corresponds to the provided string
representation. If no representation is found, CHECKBOX
will be returned.value
- the string representation for which an enum value should be returnedCHECKBOX
public String getValue()
Copyright © 2010 - 2020 Adobe. All Rights Reserved