public static enum MessageDialog.ButtonType extends java.lang.Enum<MessageDialog.ButtonType>
Enum Constant and Description |
---|
OK
Only one button is shown.
|
YES_NO
Two buttons are shown, the default labels are 'Yes' and 'No'.
|
YES_NO_CANCEL
Three buttons are shown, the default labels are 'Yes', 'No' and
'Cancel'.
|
Modifier and Type | Method and Description |
---|---|
static MessageDialog.ButtonType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageDialog.ButtonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageDialog.ButtonType OK
public static final MessageDialog.ButtonType YES_NO
MessageDialog.Answer
is MessageDialog.Answer.YES_OK
and the escape answer is
MessageDialog.Answer.NO
public static final MessageDialog.ButtonType YES_NO_CANCEL
MessageDialog.setYesOkButtonText(String)
, MessageDialog.setNoButtonText(String)
, and
MessageDialog.setCancelButtonText(String)
. Default
MessageDialog.Answer
is MessageDialog.Answer.YES_OK
and the escape answer is
MessageDialog.Answer.CANCEL
public static MessageDialog.ButtonType[] values()
for (MessageDialog.ButtonType c : MessageDialog.ButtonType.values()) System.out.println(c);
public static MessageDialog.ButtonType 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