Enum UnsavedChangesDialog.Result
- java.lang.Object
-
- java.lang.Enum<UnsavedChangesDialog.Result>
-
- org.opends.guitools.controlpanel.ui.UnsavedChangesDialog.Result
-
- All Implemented Interfaces:
Serializable,Comparable<UnsavedChangesDialog.Result>
- Enclosing class:
- UnsavedChangesDialog
public static enum UnsavedChangesDialog.Result extends Enum<UnsavedChangesDialog.Result>
The different input that the user can provide.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELThe user asks to cancel the operation that made this dialog to appear.DO_NOT_SAVEThe user asks to not to save the changes.SAVEThe user asks to save the changes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnsavedChangesDialog.ResultvalueOf(String name)Returns the enum constant of this type with the specified name.static UnsavedChangesDialog.Result[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SAVE
public static final UnsavedChangesDialog.Result SAVE
The user asks to save the changes.
-
DO_NOT_SAVE
public static final UnsavedChangesDialog.Result DO_NOT_SAVE
The user asks to not to save the changes.
-
CANCEL
public static final UnsavedChangesDialog.Result CANCEL
The user asks to cancel the operation that made this dialog to appear.
-
-
Method Detail
-
values
public static UnsavedChangesDialog.Result[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UnsavedChangesDialog.Result c : UnsavedChangesDialog.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnsavedChangesDialog.Result valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-