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

public static enum AbstractFieldInfo.ReturnValue extends Enum<AbstractFieldInfo.ReturnValue>
When to return the data value from the client to the server.
  • Enum Constant Details

    • ALWAYS

      public static final AbstractFieldInfo.ReturnValue 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

      public static final AbstractFieldInfo.ReturnValue 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

      public static final AbstractFieldInfo.ReturnValue ON_DATA
      Only if the value contains something - is not null, an empty list etc. This can be used for a 'search' scope for example.
    • NEVER

      public static final AbstractFieldInfo.ReturnValue NEVER
      The value has display purpose only.
  • Method Details

    • values

      public static AbstractFieldInfo.ReturnValue[] 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

      public static AbstractFieldInfo.ReturnValue valueOf(String name)
      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 name
      NullPointerException - if the argument is null