public static enum MessageDialog.Answer extends java.lang.Enum<MessageDialog.Answer>
Enum Constant and Description |
---|
CANCEL
Used to represent that the user has selected the option corresponding
with CANCEL.
|
NO
Used to represent that the user has selected the option corresponding
with NO.
|
YES_OK
Used to represent that the user has selected the option corresponding
with YES or OK.
|
Modifier and Type | Method and Description |
---|---|
static MessageDialog.Answer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageDialog.Answer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageDialog.Answer YES_OK
public static final MessageDialog.Answer NO
public static final MessageDialog.Answer CANCEL
public static MessageDialog.Answer[] values()
for (MessageDialog.Answer c : MessageDialog.Answer.values()) System.out.println(c);
public static MessageDialog.Answer 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 null