Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addBinding​(org.tentackle.bind.Binding binding)  
      void assertAllBound()  
      int bind()  
      int bindAllInherited()  
      protected int doBind​(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)  
      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, 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
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Constructor Detail

      • DefaultFxTableBinder

        public DefaultFxTableBinder​(TableConfiguration<S> tableConfiguration)
        Creates a binder for a table.
        Parameters:
        tableConfiguration - the table configuration
    • Method Detail

      • bindAllInherited

        public int bindAllInherited()
        Specified by:
        bindAllInherited in interface org.tentackle.bind.Binder
      • bind

        public int bind()
        Specified by:
        bind in interface org.tentackle.bind.Binder
      • unbind

        public void unbind()
        Removes all bindings of the form.
        Specified by:
        unbind in interface org.tentackle.bind.Binder
      • getBindings

        public java.util.Collection<FxTableBinding<S,​?>> getBindings()
        Specified by:
        getBindings in interface org.tentackle.bind.Binder
      • getBoundColumns

        public java.util.Collection<java.lang.String> getBoundColumns()
        Description copied from interface: FxTableBinder
        Gets the list of all bound column names.
        Specified by:
        getBoundColumns in interface FxTableBinder<S>
        Returns:
        the list of bound columns
      • getUnboundColumns

        public java.util.Collection<java.lang.String> getUnboundColumns()
        Description copied from interface: FxTableBinder
        Gets the list of all unbound column names.
        Specified by:
        getUnboundColumns in interface FxTableBinder<S>
        Returns:
        the list of unbound columns
      • assertAllBound

        public void assertAllBound()
        Specified by:
        assertAllBound in interface org.tentackle.bind.Binder
      • addBinding

        public void addBinding​(org.tentackle.bind.Binding binding)
        Specified by:
        addBinding in interface org.tentackle.bind.Binder
      • getBinding

        public FxTableBinding<S,​?> getBinding​(java.lang.String bindingPath)
        Description copied from interface: FxTableBinder

        Overridden to cast.

        Specified by:
        getBinding in interface org.tentackle.bind.Binder
        Specified by:
        getBinding in interface FxTableBinder<S>
      • removeBinding

        public FxTableBinding<S,​?> removeBinding​(java.lang.String bindingPath)
        Specified by:
        removeBinding in interface org.tentackle.bind.Binder
      • doBind

        protected int doBind​(org.tentackle.bind.BindingMember[] parents,
                             java.lang.String parentMemberPath,
                             java.lang.Class<?> parentClass,
                             boolean declaredOnly)
        Specified by:
        doBind in class org.tentackle.bind.AbstractBinder