org.zkoss.bind.tracker.impl
Class TrackerImpl

java.lang.Object
  extended by org.zkoss.bind.tracker.impl.TrackerImpl
All Implemented Interfaces:
Tracker

public class TrackerImpl
extends java.lang.Object
implements Tracker

Implementation of dependency tracking.

Author:
henrichen

Constructor Summary
TrackerImpl()
           
 
Method Summary
 void addTracking(Component comp, java.lang.String[] series, java.lang.String[] srcpath, Binding binding)
          Add a tracking that associate a binding to a dot series under the specified Component
 void dump()
           
 java.util.Set<LoadBinding> getLoadBindings(java.lang.Object base, java.lang.String prop)
          Returns all bindings that associated with the specified property.
 void removeTrackings(Component comp)
          Remove all tracking associated with the specified Component.
 void tieValue(java.lang.Object comp, java.lang.Object base, java.lang.Object script, java.lang.Object propName, java.lang.Object value)
          Tie a property to its corresponding value under the specified Component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackerImpl

public TrackerImpl()
Method Detail

addTracking

public void addTracking(Component comp,
                        java.lang.String[] series,
                        java.lang.String[] srcpath,
                        Binding binding)
Description copied from interface: Tracker
Add a tracking that associate a binding to a dot series under the specified Component

Specified by:
addTracking in interface Tracker
Parameters:
comp - the associated component
series - the dot series as an array of property name
srcpath - the dot series as an array of property name of the dependent property
binding - the binding

removeTrackings

public void removeTrackings(Component comp)
Description copied from interface: Tracker
Remove all tracking associated with the specified Component.

Specified by:
removeTrackings in interface Tracker
Parameters:
comp - the associated component

getLoadBindings

public java.util.Set<LoadBinding> getLoadBindings(java.lang.Object base,
                                                  java.lang.String prop)
Description copied from interface: Tracker
Returns all bindings that associated with the specified property.

Specified by:
getLoadBindings in interface Tracker
Parameters:
base - base object
prop - property name
Returns:
all LoadBindings that associated with the specified property.

tieValue

public void tieValue(java.lang.Object comp,
                     java.lang.Object base,
                     java.lang.Object script,
                     java.lang.Object propName,
                     java.lang.Object value)
Description copied from interface: Tracker
Tie a property to its corresponding value under the specified Component.

Specified by:
tieValue in interface Tracker
Parameters:
comp - the associated component
base - the base object of the property
script - the field script
propName - the resolved property name from the field script
value - the value of the property

dump

public void dump()


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