- java.lang.Object
-
- org.tentackle.bind.AbstractBindingFactory
-
- org.tentackle.fx.bind.DefaultFxBindingFactory
-
- All Implemented Interfaces:
org.tentackle.bind.BindingFactory,FxBindingFactory
@Service(FxBindingFactory.class) public class DefaultFxBindingFactory extends org.tentackle.bind.AbstractBindingFactory implements FxBindingFactory
Default implementation of a binding factory for Fx.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description DefaultFxBindingFactory()Creates a form binding factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FxComponentBindercreateComponentBinder(FxController controller)Creates a component binder.FxComponentBindingcreateComponentBinding(FxComponentBinder binder, org.tentackle.bind.BindingMember[] parents, org.tentackle.bind.BindingMember member, FxComponent component, java.lang.String componentOptions)Creates a component binding.<S> FxTableBinder<S>createTableBinder(TableConfiguration<S> tableConfiguration)Creates a table binder.<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.java.lang.Class<? extends FxComponentBinding>getComponentBindingClass(java.lang.Class<? extends FxComponent> componentClass)Gets the binding class for a given component class.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.-
Methods inherited from class org.tentackle.bind.AbstractBindingFactory
createBindableElement, createBindingMember, getBindableCache, getBindableElementClass, putBindableElementClass
-
-
-
-
Method Detail
-
setComponentBindingClass
public java.lang.Class<? extends FxComponentBinding> setComponentBindingClass(java.lang.Class<? extends FxComponent> componentClass, java.lang.Class<? extends FxComponentBinding> bindingClass)
Description copied from interface:FxBindingFactoryDefines the binding for a component class.- Specified by:
setComponentBindingClassin interfaceFxBindingFactory- Parameters:
componentClass- the component classbindingClass- the binding class- Returns:
- the old binding class if replaced, else null
-
getComponentBindingClass
public java.lang.Class<? extends FxComponentBinding> getComponentBindingClass(java.lang.Class<? extends FxComponent> componentClass)
Description copied from interface:FxBindingFactoryGets the binding class for a given component class.- Specified by:
getComponentBindingClassin interfaceFxBindingFactory- Parameters:
componentClass- the component class- Returns:
- the binding class, null if no specific one, i.e. use a default binding
-
createComponentBinding
public FxComponentBinding createComponentBinding(FxComponentBinder binder, org.tentackle.bind.BindingMember[] parents, org.tentackle.bind.BindingMember member, FxComponent component, java.lang.String componentOptions)
Description copied from interface:FxBindingFactoryCreates a component binding.Notice: this method must be implemented by the concrete factory.
- Specified by:
createComponentBindingin interfaceFxBindingFactory- Parameters:
binder- the binder managing the bindingparents- the members building the declaration chain to this member, null if this binding's member is in controllermember- the member field to bindcomponent- the GUI-component to bindcomponentOptions- options to configure the component.- Returns:
- the created binding
-
createComponentBinder
public FxComponentBinder createComponentBinder(FxController controller)
Description copied from interface:FxBindingFactoryCreates a component binder.Notice: this method must be implemented by the concrete factory.
- Specified by:
createComponentBinderin interfaceFxBindingFactory- Parameters:
controller- the controller for the created binder- Returns:
- the binder
-
createTableBinding
public <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)
Description copied from interface:FxBindingFactoryCreates a table binding.Notice: this method must be implemented by the concrete factory.
- Specified by:
createTableBindingin interfaceFxBindingFactory- Type Parameters:
S- type of the objects contained within the table's items listT- the cell value's type- Parameters:
binder- the binder managing the bindingparents- the members building the declaration chain to this member, null if this binding's member is in controllermember- the member field to bindcolumnConfig- the table column configurationcolumnOptions- options to configure the column- Returns:
- the created binding
-
createTableBinder
public <S> FxTableBinder<S> createTableBinder(TableConfiguration<S> tableConfiguration)
Description copied from interface:FxBindingFactoryCreates a table binder.Notice: this method must be implemented by the concrete factory.
- Specified by:
createTableBinderin interfaceFxBindingFactory- Type Parameters:
S- type of the objects contained within the table's items list- Parameters:
tableConfiguration- the table configuration- Returns:
- the binder
-
-