Interface FxComponentBinder

All Superinterfaces:
Binder, Comparable<Binder>
All Known Implementing Classes:
DefaultFxComponentBinder

public interface FxComponentBinder extends Binder
The Binder that associates form components with object binding paths.
Author:
harald
  • Method Details

    • getController

      FxController getController()
      Gets the controller bound by this binder.
      Returns:
      the controller
    • bindWithInheritedBindables

      int bindWithInheritedBindables()
      Binds including inherited bindables.

      The controller will be scanned for members or sub members annotated with the Bindable-annotation. Inherited members of the controller's parent classes will be included as well.

      CAUTION: expensive operation!

      Returns:
      number of members bound
    • bindWithInheritedComponents

      int bindWithInheritedComponents()
      Binds including inherited components.

      The controller will be scanned for members or sub members annotated with the Bindable-annotation. Inherited components declared in parent controllers are included.

      CAUTION: expensive operation!

      Returns:
      number of members bound
    • getBinding

      FxComponentBinding getBinding(FxComponent component)
      Gets a binding by component.
      Parameters:
      component - the component assigned to the binding
      Returns:
      the binding, null if component not bound
    • getBinding

      FxComponentBinding getBinding(String bindingPath)

      Overridden to cast.

      Specified by:
      getBinding in interface Binder
    • getBoundComponents

      Collection<FxComponent> getBoundComponents()
      Gets the list of all bound components of this form.
      Returns:
      the list of bound components, never null
    • getUnboundComponents

      Collection<FxComponent> getUnboundComponents()
      Gets the list of all unbound components of this form.
      Returns:
      the list of unbound components, never null
    • removeBinding

      FxComponentBinding removeBinding(FxComponent component)
      Programmatically removes a binding from this view.
      Parameters:
      component - the component assigned to the binding
      Returns:
      the removed binding, null if no such binding found
    • removeBinding

      FxComponentBinding removeBinding(String bindingPath)

      Overridden to cast.

      Specified by:
      removeBinding in interface Binder
    • getMandatoryBindings

      List<? extends Binding> getMandatoryBindings()
      Gets the dynamically mandatory bindings.
      Returns:
      the mandatory bindings
    • requestMandatoryUpdate

      void requestMandatoryUpdate()
      Request to update the mandatory attribute of all dynamically mandatory components.
    • getChangeableBindings

      List<? extends Binding> getChangeableBindings()
      Gets the dynamically changeable bindings.
      Returns:
      the changeable bindings
    • requestChangeableUpdate

      void requestChangeableUpdate()
      Request to update the changeable attribute of all dynamically mandatory components.