public static enum DialogFooter.EscapeKeyBehavior extends Enum<DialogFooter .EscapeKeyBehavior >
| Enum Constant and Description |
|---|
DOES_NOTHING
This (the default behavior) does nothing when the escape key is pressed.
|
TRIGGERS_CANCEL
This triggers the cancel button when the escape key is pressed.
|
TRIGGERS_DEFAULT
This triggers the default button when the escape key is pressed.
|
TRIGGERS_NONDEFAULT
This triggers the non-default button when the escape key is pressed.
|
| Modifier and Type | Method and Description |
|---|---|
static DialogFooter |
valueOf(String
Returns the enum constant of this type with the specified name.
|
static DialogFooter |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final DialogFooter.EscapeKeyBehavior DOES_NOTHING
public static final DialogFooter.EscapeKeyBehavior TRIGGERS_CANCEL
This should only be used if the cancel button does not lead to data loss, because users may quickly press the escape key before reading the text in a dialog.
public static final DialogFooter.EscapeKeyBehavior TRIGGERS_DEFAULT
This should only be used if the default button does not lead to data loss, because users may quickly press the escape key before reading the text in a dialog.
public static final DialogFooter.EscapeKeyBehavior TRIGGERS_NONDEFAULT
This should only be used if the non-default button does not lead to data loss, because users may quickly press the escape key before reading the text in a dialog.
public static DialogFooter.EscapeKeyBehavior [] values()
for (DialogFooter.EscapeKeyBehavior c : DialogFooter.EscapeKeyBehavior.values()) System.out.println(c);
public static DialogFooter.EscapeKeyBehavior valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null