Interface Binding

All Known Subinterfaces:
NotifiableBinding

public interface Binding
Handle returned by Binders.bind. Lets the caller refresh the components from the model (e.g. after the model was mutated outside the form), re-read the model from the components (e.g. before a save), or tear down the listeners installed for two-way bindings.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Pulls current component values back into the model.
    void
    Removes every listener the binder added so the form can be garbage- collected without keeping the model alive.
    void
    Pushes the current model values into every bound component.
  • Method Details

    • refresh

      void refresh()
      Pushes the current model values into every bound component.
    • commit

      void commit()
      Pulls current component values back into the model. Useful before validating / submitting a form when none of the bindings is two-way.
    • disconnect

      void disconnect()
      Removes every listener the binder added so the form can be garbage- collected without keeping the model alive.