Annotation Type EditableIf


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface EditableIf
    Use this annotation if a property should only be editable when another property is set to a certain value.

    Created by carl.gould on 4/21/2015.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String property
      The name of the property that drives the editability of this property.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      The value required.
    • Element Detail

      • property

        java.lang.String property
        The name of the property that drives the editability of this property. Should be the bean-style name, not the i18n key
      • value

        java.lang.String value
        The value required. If omitted, the desired value is assumed to be "true". If the value starts with > or <, then the value is assumed to be a number and the comparison will be made rather than simple equality
        Default:
        "true"