Interface FxComponentBinder

  • All Superinterfaces:
    org.tentackle.bind.Binder, java.lang.Comparable<org.tentackle.bind.Binder>
    All Known Implementing Classes:
    DefaultFxComponentBinder

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

      • 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 submembers 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 submembers 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​(java.lang.String bindingPath)

        Overridden to cast.

        Specified by:
        getBinding in interface org.tentackle.bind.Binder
      • getBoundComponents

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

        java.util.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​(java.lang.String bindingPath)

        Overridden to cast.

        Specified by:
        removeBinding in interface org.tentackle.bind.Binder
      • getMandatoryBindings

        java.util.List<? extends org.tentackle.bind.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

        java.util.List<? extends org.tentackle.bind.Binding> getChangeableBindings()
        Gets the dynamically changeable bindings.
        Returns:
        the changaeble bindings
      • requestChangeableUpdate

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