org.zkoss.bind.tracker.impl
Class TrackerNodeImpl

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

public class TrackerNodeImpl
extends java.lang.Object
implements TrackerNode, java.io.Serializable

Since:
6.0.0
Author:
henrichen
See Also:
Serialized Form

Constructor Summary
TrackerNodeImpl(java.lang.Object property)
           
 
Method Summary
 void addAssociate(TrackerNode node)
          add associated TrackerNode with this node
 void addBinding(Binding binding)
          add associated Binding with this node
 void addDependent(java.lang.Object script, TrackerNode dependent)
          Add a dependent node of the field script.
 java.util.Set<TrackerNode> getAssociates()
          Returns all associate nodes of this node.
 java.lang.Object getBean()
          Returns associated bean of this TrackerNode.
 java.util.Set<Binding> getBindings()
          Returns all associated Bindings.
 TrackerNode getDependent(java.lang.Object property)
          Returns the associated TrackerNode of the associated field script of this tracker node.
 java.util.Set<TrackerNode> getDependents()
          Returns all dependent nodes of this node.
 java.util.Set<TrackerNode> getDependents(java.lang.Object property)
          Returns all associated TrackerNodes of the associated field script of this tracker node.
 java.util.Set<TrackerNode> getDirectDependents()
          Returns all direct dependent nodes of this node.
 java.lang.Object getFieldScript()
          Returns associated field script of this TrackerNode.
 java.util.Set<LoadBinding> getLoadBindings()
          Returns associated LoadBindings except ReferenceBindings.
 java.util.Map<java.lang.Object,java.lang.Object> getPropNameMapping()
          get property, script mapping map
 java.util.Set<ReferenceBinding> getReferenceBindings()
          Returns associated ReferenceBindings.
 TrackerNode removeDependent(java.lang.Object script)
          Remove a dependent node of this node per the specified field script.
 void setBean(java.lang.Object bean)
          Sets associated bean of this TrackerNode.
 void tieProperty(java.lang.Object property, java.lang.Object script)
          tie property with script of this node.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrackerNodeImpl

public TrackerNodeImpl(java.lang.Object property)
Method Detail

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(java.lang.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 java.util.Set<TrackerNode> getDependents(java.lang.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

addDependent

public void addDependent(java.lang.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(java.lang.Object property,
                        java.lang.Object script)
Description copied from interface: TrackerNode
tie property with script of this node.

Specified by:
tieProperty in interface TrackerNode

removeDependent

public TrackerNode removeDependent(java.lang.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 java.util.Set<Binding> getBindings()
Description copied from interface: TrackerNode
Returns all associated Bindings.

Specified by:
getBindings in interface TrackerNode
Returns:
associated Bindings.

getReferenceBindings

public java.util.Set<ReferenceBinding> getReferenceBindings()
Description copied from interface: TrackerNode
Returns associated ReferenceBindings.

Specified by:
getReferenceBindings in interface TrackerNode
Returns:
associated ReferenceBindings.

getLoadBindings

public java.util.Set<LoadBinding> getLoadBindings()
Description copied from interface: TrackerNode
Returns associated LoadBindings except ReferenceBindings.

Specified by:
getLoadBindings in interface TrackerNode
Returns:
associated LoadBindings except ReferenceBindings.

getDependents

public java.util.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.

getDirectDependents

public java.util.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 java.util.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 java.lang.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(java.lang.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 java.lang.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 java.util.Map<java.lang.Object,java.lang.Object> getPropNameMapping()
Description copied from interface: TrackerNode
get property, script mapping map

Specified by:
getPropNameMapping in interface TrackerNode

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo