public static enum Dialogs.SaveChanges extends Enum<Dialogs.SaveChanges>
Dialogs.showSaveChangesDialog(String, java.awt.Component).
One of these values will be returned by Dialogs.showSaveChangesDialog(String, java.awt.Component).| Enum Constant and Description |
|---|
CANCEL
Cancel what the user just tried to do so the unsaved changes are still visible
|
DONT_SAVE
Don't save (discard) changes
|
SAVE
Save changes
|
| Modifier and Type | Method and Description |
|---|---|
String |
getButtonText()
Get the button text that is shown to the user for this option.
|
static Dialogs.SaveChanges |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dialogs.SaveChanges[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dialogs.SaveChanges SAVE
public static final Dialogs.SaveChanges DONT_SAVE
public static final Dialogs.SaveChanges CANCEL
public static Dialogs.SaveChanges[] values()
for (Dialogs.SaveChanges c : Dialogs.SaveChanges.values()) System.out.println(c);
public static Dialogs.SaveChanges valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String getButtonText()