Enum Class AbstractFieldInfo.ReturnValue
java.lang.Object
java.lang.Enum<AbstractFieldInfo.ReturnValue>
ch.tocco.nice2.netui.api.bind.entity.AbstractFieldInfo.ReturnValue
- All Implemented Interfaces:
Serializable
,Comparable<AbstractFieldInfo.ReturnValue>
,Constable
- Enclosing class:
AbstractFieldInfo
When to return the data value from the client to the server.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AbstractFieldInfo.ReturnValue[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
No matter if the user changes it or not. This is probably the case in scope "create", and for fields filled with default values because the defaults may not be accurately regeneratable on the server. -
ON_CHANGE
Only if the user made a change to the value he received from the server. This can be used for an 'update' scope for example. -
ON_DATA
Only if the value contains something - is notnull
, an empty list etc. This can be used for a 'search' scope for example. -
NEVER
The value has display purpose only.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-