- 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:
java.lang.Comparable<org.tentackle.bind.Binder>,org.tentackle.bind.Binder,FxTableBinder<S>
public class DefaultFxTableBinder<S> extends org.tentackle.bind.AbstractBinder implements FxTableBinder<S>
Binding Workhorse.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description DefaultFxTableBinder(TableConfiguration<S> tableConfiguration)Creates a binder for a table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBinding(org.tentackle.bind.Binding binding)voidassertAllBound()intbind()intbindAllInherited()protected intdoBind(org.tentackle.bind.BindingMember[] parents, java.lang.String parentMemberPath, java.lang.Class<?> parentClass, boolean declaredOnly)FxTableBinding<S,?>getBinding(java.lang.String bindingPath)java.util.Collection<FxTableBinding<S,?>>getBindings()java.util.Collection<java.lang.String>getBoundColumns()Gets the list of all bound column names.TableConfiguration<S>getTableConfiguration()Gets the table configuration.java.util.Collection<java.lang.String>getUnboundColumns()Gets the list of all unbound column names.FxTableBinding<S,?>removeBinding(java.lang.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, 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, putBindingProperty, removeToModelListener, removeToViewListener, removeValidationListener, setValidationScope
-
-
-
-
Constructor Detail
-
DefaultFxTableBinder
public DefaultFxTableBinder(TableConfiguration<S> tableConfiguration)
Creates a binder for a table.- Parameters:
tableConfiguration- the table configuration
-
-
Method Detail
-
getTableConfiguration
public TableConfiguration<S> getTableConfiguration()
Description copied from interface:FxTableBinderGets the table configuration.- Specified by:
getTableConfigurationin interfaceFxTableBinder<S>- Returns:
- the config
-
bindAllInherited
public int bindAllInherited()
- Specified by:
bindAllInheritedin interfaceorg.tentackle.bind.Binder
-
bind
public int bind()
- Specified by:
bindin interfaceorg.tentackle.bind.Binder
-
unbind
public void unbind()
Removes all bindings of the form.- Specified by:
unbindin interfaceorg.tentackle.bind.Binder
-
getBindings
public java.util.Collection<FxTableBinding<S,?>> getBindings()
- Specified by:
getBindingsin interfaceorg.tentackle.bind.Binder
-
getBoundColumns
public java.util.Collection<java.lang.String> 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
public java.util.Collection<java.lang.String> 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 interfaceorg.tentackle.bind.Binder
-
addBinding
public void addBinding(org.tentackle.bind.Binding binding)
- Specified by:
addBindingin interfaceorg.tentackle.bind.Binder
-
getBinding
public FxTableBinding<S,?> getBinding(java.lang.String bindingPath)
Description copied from interface:FxTableBinderOverridden to cast.
- Specified by:
getBindingin interfaceorg.tentackle.bind.Binder- Specified by:
getBindingin interfaceFxTableBinder<S>
-
removeBinding
public FxTableBinding<S,?> removeBinding(java.lang.String bindingPath)
- Specified by:
removeBindingin interfaceorg.tentackle.bind.Binder
-
doBind
protected int doBind(org.tentackle.bind.BindingMember[] parents, java.lang.String parentMemberPath, java.lang.Class<?> parentClass, boolean declaredOnly)- Specified by:
doBindin classorg.tentackle.bind.AbstractBinder
-
-