-
- All Superinterfaces:
org.tentackle.bind.BindingFactory
- All Known Implementing Classes:
DefaultFxBindingFactory
public interface FxBindingFactory extends org.tentackle.bind.BindingFactoryThe fx binding factory.- Author:
- harald
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract 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.static FxBindingFactorygetInstance()The singleton.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.
-
-
-
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 classbindingClass- 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 bindingcomponent- the GUI-component to bindcomponentOptions- options to configure the component.parents- the members building the declaration chain to this member, null if this binding's member is in controllermember- 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 listT- the cell value's type- Parameters:
binder- the binder managing the bindingcolumnOptions- options to configure the columnparents- the members building the declaration chain to this member, null if this binding's member is in controllercolumnConfig- the table column configurationmember- 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
-
-