Serializable, Comparable<FormState>public enum FormState extends Enum<FormState>
SystemCapability.Aafwk#ABILITY| 枚举常量 | 说明 |
|---|---|
DEFAULT |
Indicates that the form is in the default state.
|
READY |
Indicates that the form is ready.
|
UNKNOWN |
Indicates that the form status is unknown due to an internal error.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getValue() |
Obtains the int value of the form state represented by the
FormState enum constant. |
static FormState |
intToEnum(int state) |
Converts the given int value into its corresponding enum constant representing the form state.
|
static FormState |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static FormState[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (FormState c : FormState.values()) System.out.println(c); |
public static final FormState UNKNOWN
public static final FormState DEFAULT
public static final FormState READY
public static FormState[] values()
for (FormState c : FormState.values()) System.out.println(c);
public static FormState valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
FormState enum constant.FormState enum constant.public static FormState intToEnum(int state)
state - Indicates the int value to convert.