Interface FxBindingFactory

All Superinterfaces:
BindingFactory
All Known Implementing Classes:
DefaultFxBindingFactory

public interface FxBindingFactory extends BindingFactory
The fx binding factory.
Author:
harald
  • Method Details

    • getInstance

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

      Class<? extends FxComponentBinding> setComponentBindingClass(Class<? extends FxComponent> componentClass, 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

      Class<? extends FxComponentBinding> getComponentBindingClass(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, BindingMember[] parents, BindingMember member, FxComponent component, 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, BindingMember[] parents, BindingMember member, TableColumnConfiguration<S,T> columnConfig, 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