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
ConstructorsConstructorDescriptionDefaultFxTableBinder(TableConfiguration<S> tableConfiguration) Creates a binder for a table. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBinding(Binding binding) voidintbind()intprotected intdoBind(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) voidunbind()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, setValidationScopeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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, setValidationScopeMethods 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:FxTableBinderGets the table configuration.- Specified by:
getTableConfigurationin interfaceFxTableBinder<S>- Returns:
- the config
-
bindAllInherited
public int bindAllInherited()- Specified by:
bindAllInheritedin interfaceBinder
-
bind
public int bind() -
unbind
public void unbind()Removes all bindings of the form. -
getBindings
- Specified by:
getBindingsin interfaceBinder
-
getBoundColumns
Description copied from interface:FxTableBinderGets the list of all bound column names.- Specified by:
getBoundColumnsin interfaceFxTableBinder<S>- Returns:
- the list of bound columns
-
getUnboundColumns
Description copied from interface:FxTableBinderGets the list of all unbound column names.- Specified by:
getUnboundColumnsin interfaceFxTableBinder<S>- Returns:
- the list of unbound columns
-
assertAllBound
public void assertAllBound()- Specified by:
assertAllBoundin interfaceBinder
-
addBinding
- Specified by:
addBindingin interfaceBinder
-
getBinding
Description copied from interface:FxTableBinderOverridden to cast.
- Specified by:
getBindingin interfaceBinder- Specified by:
getBindingin interfaceFxTableBinder<S>
-
removeBinding
- Specified by:
removeBindingin interfaceBinder
-
doBind
protected int doBind(BindingMember[] parents, String parentMemberPath, Class<?> parentClass, boolean declaredOnly) - Specified by:
doBindin classAbstractBinder
-