public enum CloseStatus extends java.lang.Enum<CloseStatus>
| Enum Constant and Description |
|---|
CANCEL
The dialog was closed via Cancel button or 'X' button of the dialog.
|
OK
The dialog was closed via OK button.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSuccess()
Indicates whether status is a 'success' status.
指示状态是否为“成功”状态。 |
static CloseStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static CloseStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final CloseStatus OK
public static final CloseStatus CANCEL
public static CloseStatus[] values()
for (CloseStatus c : CloseStatus.values()) System.out.println(c);
public static CloseStatus 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 name
java.lang.NullPointerException - if the argument is null
public boolean isSuccess()
TRUE when status is 'success'.
当状态为“成功”时。