public enum StandardOutcome extends java.lang.Enum<StandardOutcome>
StandardEditor and StandardLookup.
Constants of this enum can be used instead of CloseAction instances in Screen.close(StandardOutcome)
method to initiate closing and in Screen.AfterCloseEvent.closedWith(StandardOutcome),
AfterScreenCloseEvent.closedWith(StandardOutcome).
method to determine how the screen was closed.
| Enum Constant and Description |
|---|
CLOSE
The screen is closed without an explicit commit.
|
COMMIT
The screen is closed after an explicit commit.
|
DISCARD
The screen is closed without an explicit commit and it did not notify the user about unsaved changes.
|
SELECT
The screen is closed after the user selected an item in the lookup component.
|
| Modifier and Type | Method and Description |
|---|---|
CloseAction |
getCloseAction() |
static StandardOutcome |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StandardOutcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardOutcome CLOSE
public static final StandardOutcome COMMIT
public static final StandardOutcome DISCARD
public static final StandardOutcome SELECT
public static StandardOutcome[] values()
for (StandardOutcome c : StandardOutcome.values()) System.out.println(c);
public static StandardOutcome 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()