java.lang.Object
org.tentackle.bind.AbstractBinder
org.tentackle.fx.bind.DefaultFxTableBinder<S>
- Type Parameters:
S
- type of the objects contained within the table's items list
- All Implemented Interfaces:
Comparable<Binder>
,Binder
,FxTableBinder<S>
Binding Workhorse.
- Author:
- harald
-
Constructor Summary
ConstructorDescriptionDefaultFxTableBinder
(TableConfiguration<S> tableConfiguration) Creates a binder for a table. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBinding
(Binding binding) void
int
bind()
int
protected int
doBind
(BindingMember[] parents, String parentMemberPath, Class<?> parentClass, boolean declaredOnly) FxTableBinding
<S, ?> getBinding
(String bindingPath) Gets the list of all bound column names.Gets the table configuration.Gets the list of all unbound column names.FxTableBinding
<S, ?> removeBinding
(String bindingPath) void
unbind()
Removes all bindings of the form.Methods inherited from class org.tentackle.bind.AbstractBinder
addToModelListener, addToViewListener, addValidationListener, compareTo, equals, fireToModel, fireToView, fireValidated, getBindingProperty, getBindingProperty, getInstanceNumber, getToModelListeners, getToViewListeners, getValidationListeners, getValidationScope, hashCode, putBindingProperties, putBindingProperty, removeToModelListener, removeToViewListener, removeValidationListener, setValidationScope
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.tentackle.bind.Binder
addToModelListener, addToViewListener, addValidationListener, fireToModel, fireToView, fireValidated, getBindingProperty, getBindingProperty, getInstanceNumber, getToModelListeners, getToViewListeners, getValidationListeners, getValidationScope, putBindingProperties, putBindingProperty, removeToModelListener, removeToViewListener, removeValidationListener, setValidationScope
Methods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
DefaultFxTableBinder
Creates a binder for a table.- Parameters:
tableConfiguration
- the table configuration
-
-
Method Details
-
getTableConfiguration
Description copied from interface:FxTableBinder
Gets the table configuration.- Specified by:
getTableConfiguration
in interfaceFxTableBinder<S>
- Returns:
- the config
-
bindAllInherited
public int bindAllInherited()- Specified by:
bindAllInherited
in interfaceBinder
-
bind
public int bind() -
unbind
public void unbind()Removes all bindings of the form. -
getBindings
- Specified by:
getBindings
in interfaceBinder
-
getBoundColumns
Description copied from interface:FxTableBinder
Gets the list of all bound column names.- Specified by:
getBoundColumns
in interfaceFxTableBinder<S>
- Returns:
- the list of bound columns
-
getUnboundColumns
Description copied from interface:FxTableBinder
Gets the list of all unbound column names.- Specified by:
getUnboundColumns
in interfaceFxTableBinder<S>
- Returns:
- the list of unbound columns
-
assertAllBound
public void assertAllBound()- Specified by:
assertAllBound
in interfaceBinder
-
addBinding
- Specified by:
addBinding
in interfaceBinder
-
getBinding
Description copied from interface:FxTableBinder
Overridden to cast.
- Specified by:
getBinding
in interfaceBinder
- Specified by:
getBinding
in interfaceFxTableBinder<S>
-
removeBinding
- Specified by:
removeBinding
in interfaceBinder
-
doBind
protected int doBind(BindingMember[] parents, String parentMemberPath, Class<?> parentClass, boolean declaredOnly) - Specified by:
doBind
in classAbstractBinder
-