Interface FxBindingFactory

  • All Superinterfaces:
    org.tentackle.bind.BindingFactory
    All Known Implementing Classes:
    DefaultFxBindingFactory

    public interface FxBindingFactory
    extends org.tentackle.bind.BindingFactory
    The fx binding factory.
    Author:
    harald
    • Method Detail

      • getInstance

        static FxBindingFactory getInstance()
        The singleton.
        Returns:
        the singleton
      • setComponentBindingClass

        java.lang.Class<? extends FxComponentBinding> setComponentBindingClass​(java.lang.Class<? extends FxComponent> componentClass,
                                                                               java.lang.Class<? extends FxComponentBinding> bindingClass)
        Defines the binding for a component class.
        Parameters:
        componentClass - the component class
        bindingClass - the binding class
        Returns:
        the old binding class if replaced, else null
      • getComponentBindingClass

        java.lang.Class<? extends FxComponentBinding> getComponentBindingClass​(java.lang.Class<? extends FxComponent> componentClass)
        Gets the binding class for a given component class.
        Parameters:
        componentClass - the component class
        Returns:
        the binding class, null if no specific one, i.e. use a default binding
      • createComponentBinding

        FxComponentBinding createComponentBinding​(FxComponentBinder binder,
                                                  org.tentackle.bind.BindingMember[] parents,
                                                  org.tentackle.bind.BindingMember member,
                                                  FxComponent component,
                                                  java.lang.String componentOptions)
        Creates a component binding.

        Notice: this method must be implemented by the concrete factory.

        Parameters:
        binder - the binder managing the binding
        component - the GUI-component to bind
        componentOptions - options to configure the component.
        parents - the members building the declaration chain to this member, null if this binding's member is in controller
        member - the member field to bind
        Returns:
        the created binding
      • createComponentBinder

        FxComponentBinder createComponentBinder​(FxController controller)
        Creates a component binder.

        Notice: this method must be implemented by the concrete factory.

        Parameters:
        controller - the controller for the created binder
        Returns:
        the binder
      • createTableBinding

        <S,​T> FxTableBinding<S,​T> createTableBinding​(FxTableBinder<S> binder,
                                                                 org.tentackle.bind.BindingMember[] parents,
                                                                 org.tentackle.bind.BindingMember member,
                                                                 TableColumnConfiguration<S,​T> columnConfig,
                                                                 java.lang.String columnOptions)
        Creates a table binding.

        Notice: this method must be implemented by the concrete factory.

        Type Parameters:
        S - type of the objects contained within the table's items list
        T - the cell value's type
        Parameters:
        binder - the binder managing the binding
        columnOptions - options to configure the column
        parents - the members building the declaration chain to this member, null if this binding's member is in controller
        columnConfig - the table column configuration
        member - the member field to bind
        Returns:
        the created binding
      • createTableBinder

        <S> FxTableBinder<S> createTableBinder​(TableConfiguration<S> tableConfiguration)
        Creates a table binder.

        Notice: this method must be implemented by the concrete factory.

        Type Parameters:
        S - type of the objects contained within the table's items list
        Parameters:
        tableConfiguration - the table configuration
        Returns:
        the binder