Annotation Interface 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
    The name of the property that drives the editability of this property.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The value required.
  • Element Details

    • property

      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

      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"