Annotation Interface EnabledIf


@Retention(RUNTIME) @Target(FIELD) public @interface EnabledIf
A binding that will set the enabled state of the annotated component to the state of a model boolean. The component must have a "setEnabled" method that takes a boolean.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Enum to specify if normal or inverted comparisons should be used.
    static class 
    Inner utility class that performs the runtime wiring of all EnabledIf bindings.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The model boolean property to bind to.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Whether or not to invert the boolean.
  • Element Details

    • to

      String to
      The model boolean property to bind to.
    • type

      Whether or not to invert the boolean.
      Default:
      NORMAL