- All Superinterfaces:
BindingFactory
- All Known Implementing Classes:
DefaultFxBindingFactory
The fx binding factory.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptioncreateComponentBinder(FxController controller) Creates a component binder.createComponentBinding(FxComponentBinder binder, BindingMember[] parents, BindingMember member, FxComponent component, 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, BindingMember[] parents, BindingMember member, TableColumnConfiguration<S, T> columnConfig, String columnOptions) Creates a table binding.Class<? extends FxComponentBinding>getComponentBindingClass(Class<? extends FxComponent> componentClass) Gets the binding class for a given component class.static FxBindingFactoryThe singleton.Class<? extends FxComponentBinding>setComponentBindingClass(Class<? extends FxComponent> componentClass, Class<? extends FxComponentBinding> bindingClass) Defines the binding for a component class.Methods inherited from interface org.tentackle.bind.BindingFactory
createBindableElement, createBindingMember, getBindableCache, getBindableElementClass, putBindableElementClass
-
Method Details
-
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 classbindingClass- 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 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
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 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
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
-