Class TrackerNodeImpl

java.lang.Object
org.zkoss.bind.tracker.impl.TrackerNodeImpl
All Implemented Interfaces:
Serializable, TrackerNode

public class TrackerNodeImpl extends Object implements TrackerNode, Serializable
Since:
6.0.0
Author:
henrichen
See Also:
  • Constructor Details

    • TrackerNodeImpl

      public TrackerNodeImpl(Object property)
  • Method Details

    • addAssociate

      public void addAssociate(TrackerNode node)
      Description copied from interface: TrackerNode
      add associated TrackerNode with this node
      Specified by:
      addAssociate in interface TrackerNode
    • getDependent

      public TrackerNode getDependent(Object property)
      Description copied from interface: TrackerNode
      Returns the associated TrackerNode of the associated field script of this tracker node.
      Specified by:
      getDependent in interface TrackerNode
      Parameters:
      property - field script to get the dependent
      Returns:
      the linked TrackerNode
    • getDependents

      public Set<TrackerNode> getDependents(Object property)
      Description copied from interface: TrackerNode
      Returns all associated TrackerNodes of the associated field script of this tracker node.
      Specified by:
      getDependents in interface TrackerNode
      Parameters:
      property - field script to get the dependent
      Returns:
      all linked TrackerNodes
    • getDependents

      public Set<TrackerNode> getDependents()
      Description copied from interface: TrackerNode
      Returns all dependent nodes of this node.
      Specified by:
      getDependents in interface TrackerNode
      Returns:
      all precedent nodes of this node.
    • addDependent

      public void addDependent(Object script, TrackerNode dependent)
      Description copied from interface: TrackerNode
      Add a dependent node of the field script.
      Specified by:
      addDependent in interface TrackerNode
      Parameters:
      script - the field script to link this track node to its dependent nodes.
      dependent - the TrackerNode to be added
    • tieProperty

      public void tieProperty(Object property, TrackerNode trackerNode)
      Description copied from interface: TrackerNode
      tie property with tracker node of this node.
      Specified by:
      tieProperty in interface TrackerNode
    • removeDependent

      public TrackerNode removeDependent(Object script)
      Description copied from interface: TrackerNode
      Remove a dependent node of this node per the specified field script.
      Specified by:
      removeDependent in interface TrackerNode
      Parameters:
      script - field script that link to the to be removed dependent tracker node.
      Returns:
      the removed TrackerNode
    • addBinding

      public void addBinding(Binding binding)
      Description copied from interface: TrackerNode
      add associated Binding with this node
      Specified by:
      addBinding in interface TrackerNode
    • getBindings

      public Set<Binding> getBindings()
      Description copied from interface: TrackerNode
      Returns all associated Bindings.
      Specified by:
      getBindings in interface TrackerNode
      Returns:
      associated Bindings.
    • getReferenceBindings

      public Set<ReferenceBinding> getReferenceBindings()
      Description copied from interface: TrackerNode
      Returns associated ReferenceBindings.
      Specified by:
      getReferenceBindings in interface TrackerNode
      Returns:
      associated ReferenceBindings.
    • getLoadBindings

      public Set<LoadBinding> getLoadBindings()
      Description copied from interface: TrackerNode
      Returns associated LoadBindings except ReferenceBindings.
      Specified by:
      getLoadBindings in interface TrackerNode
      Returns:
      associated LoadBindings except ReferenceBindings.
    • getDirectDependents

      public Set<TrackerNode> getDirectDependents()
      Description copied from interface: TrackerNode
      Returns all direct dependent nodes of this node.
      Specified by:
      getDirectDependents in interface TrackerNode
      Returns:
      all direct dependent nodes of this node.
    • getAssociates

      public Set<TrackerNode> getAssociates()
      Description copied from interface: TrackerNode
      Returns all associate nodes of this node.
      Specified by:
      getAssociates in interface TrackerNode
      Returns:
      all associate nodes of this node.
    • getBean

      public Object getBean()
      Description copied from interface: TrackerNode
      Returns associated bean of this TrackerNode.
      Specified by:
      getBean in interface TrackerNode
      Returns:
      associated bean of this TrackerNode.
    • setBean

      public void setBean(Object bean)
      Description copied from interface: TrackerNode
      Sets associated bean of this TrackerNode.
      Specified by:
      setBean in interface TrackerNode
      Parameters:
      bean - the associated bean.
    • getFieldScript

      public Object getFieldScript()
      Description copied from interface: TrackerNode
      Returns associated field script of this TrackerNode.
      Specified by:
      getFieldScript in interface TrackerNode
      Returns:
      associated field script of this TrackerNode.
    • getPropNameMapping

      public Map<Object,?> getPropNameMapping()
      Description copied from interface: TrackerNode
      get property, tracker node mapping map
      Specified by:
      getPropNameMapping in interface TrackerNode
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isPropNameNodeMapped

      public boolean isPropNameNodeMapped(TrackerNode trackerNode)
      Description copied from interface: TrackerNode
      Internal used only
      Specified by:
      isPropNameNodeMapped in interface TrackerNode
      Returns:
      boolean is the tracker node with specific propName in bracket mapped or not