Annotation Interface OnChange


@Retention(RUNTIME) @Target(FIELD) public @interface OnChange
A component binding that will call a method when an action occurs. This can be applied to any object that has an "addChangeListener" method that takes an ChangeListener. Normally used for any sort of JButton or for a JTextField.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Inner utility class that performs the runtime wiring of all OnChange bindings.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the method to call when the action occurs.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    A boolean indicating whether or not we want to call this when the values is adjusting
  • Element Details

    • call

      String call
      The name of the method to call when the action occurs. Must be accessible in the BindingContext.
    • onAdjust

      boolean onAdjust
      A boolean indicating whether or not we want to call this when the values is adjusting
      Default:
      false