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.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "ok".
public static final DialogButtons APPLY
Dialog.buttonClick() Title derived from APPLY_BUTTON_TITLE.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "apply".
public static final DialogButtons YES
YES_BUTTON_TITLE.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "yes".
public static final DialogButtons NO
NO_BUTTON_TITLE.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "no".
public static final DialogButtons CANCEL
CANCEL_BUTTON_TITLE.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "cancel".
public static final DialogButtons DONE
DONE_BUTTON_TITLE.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "done".
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