public static enum Form.UpdateMode extends java.lang.Enum<Form.UpdateMode>
Enum Constant and Description |
---|
UPDATE_IN_PLACE
People can view and / or edit the data, and if submitted, will result
in the originally-provided model instance being updated with the new
view data.
|
UPDATE_NEW_INSTANCE
People can view and / or edit the data, and if submitted, will result
in a new model instance being instantiated and populated with the
view data.
|
VIEW
Does not allow people to edit the data, simply to view it.
|
Modifier and Type | Method and Description |
---|---|
static Form.UpdateMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Form.UpdateMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Form.UpdateMode UPDATE_IN_PLACE
public static final Form.UpdateMode UPDATE_NEW_INSTANCE
public static final Form.UpdateMode VIEW
public static Form.UpdateMode[] values()
for (Form.UpdateMode c : Form.UpdateMode.values()) System.out.println(c);
public static Form.UpdateMode 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 null