Annotation Type Field


  • @Target(METHOD)
    @Retention(RUNTIME)
    public @interface Field
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String javascript
      overrides the defn associated with this view field (the default is to call the lens
      java.lang.String lensName
      The lens name associated with the view.
      java.lang.String lensPath
      The actual lens into the object.
      boolean readOnly
      can only be read in this view.
      boolean templated  
    • Element Detail

      • readOnly

        boolean readOnly
        can only be read in this view. If the entity is readonly then the view is too
        Default:
        false
      • lensName

        java.lang.String lensName
        The lens name associated with the view. Defaults to 'viewName_fieldName_typeName'
        Default:
        ""
      • lensPath

        java.lang.String lensPath
        The actual lens into the object. Defaults to 'fieldName'. Syntax is xxx.yyy. these are field names in the entity. special values of xxx include
        • {firstItem} if we have a list
        • {identity} which is used when the field used to be in a child but is now 'here'
        • {itemAsList} which turns a single child into a list (of size 1)
        Default:
        ""
      • javascript

        java.lang.String javascript
        overrides the defn associated with this view field (the default is to call the lens
        Default:
        ""
      • templated

        boolean templated
        Default:
        false