public enum DialogButtons extends java.lang.Enum<DialogButtons> implements ValueEnum
Each DialogButtons enum value has a same-named static Button on the Dialog
class, and these buttons can be passed to Dialog.setButtons():
Dialog.setButtons(Dialog.OK, Dialog.CANCEL);
All buttons added via setButtons will fire the
buttonClick event (whether they are built-in or custom
buttons). Built-in buttons automatically close a Dialog, with the exception of the
"Apply" button.
| Enum Constant and Description |
|---|
APPLY
Does not dismiss dialog.
|
CANCEL
Dismisses dialog.
|
DONE
Dismisses dialog.
|
NO
Dismisses dialog.
|
OK
Dismisses dialog.
|
YES
Dismisses dialog.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getValue() |
static DialogButtons |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DialogButtons[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DialogButtons OK
OK_BUTTON_TITLE.public static final DialogButtons APPLY
Dialog.buttonClick
Title derived from APPLY_BUTTON_TITLE.public static final DialogButtons YES
YES_BUTTON_TITLE.public static final DialogButtons NO
NO_BUTTON_TITLE.public static final DialogButtons CANCEL
CANCEL_BUTTON_TITLE.public static final DialogButtons DONE
DONE_BUTTON_TITLE.public static DialogButtons[] values()
for (DialogButtons c : DialogButtons.values()) System.out.println(c);
public static DialogButtons 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