public enum DialogOutcome extends java.lang.Enum<DialogOutcome>
Constants of this enum can be used instead of CloseAction
instances in InputDialog.InputDialogCloseEvent.closedWith(DialogOutcome)
method to determine how the dialog was closed.
Enum Constant and Description |
---|
CANCEL
User clicked CANCEL.
|
NO
User clicked NO.
|
OK
User clicked OK.
|
YES
User clicked YES.
|
Modifier and Type | Method and Description |
---|---|
CloseAction |
getCloseAction() |
static DialogOutcome |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DialogOutcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DialogOutcome OK
public static final DialogOutcome CANCEL
public static final DialogOutcome YES
public static final DialogOutcome NO
public static DialogOutcome[] values()
for (DialogOutcome c : DialogOutcome.values()) System.out.println(c);
public static DialogOutcome 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 nullpublic CloseAction getCloseAction()