public static enum Form.Operation extends Enum<Form.Operation>
| Enum Constant and Description |
|---|
CANCEL
Cancels any modifications to the model and calls the cancel callback.
|
CLEAR
Clears this form by removing the model reference and by clearing all bound form fields.
|
EDIT
Takes the specified model and populates the bound form fields with the values from the model.
|
REMOVE
Removes the model and calls the remove callback.
|
RESET
Resets the model and updates the bound form field.
|
SAVE
Validates the form and its fields and upon successful validation persists the changes to the model and
calls the save callback.
|
VIEW
Takes the specified model and updates the read-only state with the values from the model.
|
| Modifier and Type | Method and Description |
|---|---|
static Form.Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Form.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Form.Operation VIEW
public static final Form.Operation CLEAR
public static final Form.Operation RESET
public static final Form.Operation EDIT
public static final Form.Operation SAVE
public static final Form.Operation CANCEL
public static final Form.Operation REMOVE
public static Form.Operation[] values()
for (Form.Operation c : Form.Operation.values()) System.out.println(c);
public static Form.Operation 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 nullCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.