Annotation Type Bound


  • @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    public @interface Bound
    Used to bind a UI control to a model property, where property is meant in a strict Java sense.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String to
      The property to bind to.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] events
      A hint as to what event should be used to listen to the component for changes.
      java.lang.String nullValue
      Used to add a null value to a JComboBox.
      java.lang.String[] on
      Specifies the ModelUpdates on which the binding will occur.
      java.lang.String value
      Used for enum/boolean values for JRadioButtons and JToggleButtons.
    • Element Detail

      • to

        java.lang.String to
        The property to bind to.
      • value

        java.lang.String value
        Used for enum/boolean values for JRadioButtons and JToggleButtons. Valid values for booleans are "true", "false", and unset. When "true" the button will indicate a selected state, "false" indicates unselected state, and unset will indicate the state of the backing boolean.
        Default:
        ""
      • nullValue

        java.lang.String nullValue
        Used to add a null value to a JComboBox.
        Default:
        ""
      • events

        java.lang.String[] events
        A hint as to what event should be used to listen to the component for changes. Currently only used by the JTextComponentWiringHarness. Default is to use a document listener, which will fire the binding every time the document changes. Use event="actionPerformed" to use an ActionListener instead, or event="focusLost" to use focus loss.
        Default:
        {}