|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.tracker.impl.TrackerImpl
public class TrackerImpl
Implementation of dependency tracking.
Constructor Summary | |
---|---|
TrackerImpl()
|
Method Summary | |
---|---|
void |
addDependsOn(Component srcComp,
java.lang.String[] srcSeries,
Binding srcBinding,
Component dependsOnComp,
java.lang.String[] dependsOnSeries)
Add a depends-on tracking between the source property name series and depends-on property name series. |
void |
addTracking(Component comp,
java.lang.String[] series,
Binding binding)
Add a tracking that associate a binding to a dot series under the specified Component |
void |
dump()
|
java.util.Set<java.lang.Object> |
getEqualBeans(java.lang.Object bean)
|
java.util.Set<LoadBinding> |
getLoadBindings(java.lang.Object base,
java.lang.String prop)
Returns all bindings that associated with the specified property. |
protected TrackerNode |
newTrackerNode(java.lang.Object script)
|
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 |
---|
public TrackerImpl()
Method Detail |
---|
public void addTracking(Component comp, java.lang.String[] series, Binding binding)
Tracker
Component
addTracking
in interface Tracker
comp
- the component with the associated bindingseries
- the dot series as an array of property namebinding
- the associated bindingpublic void addDependsOn(Component srcComp, java.lang.String[] srcSeries, Binding srcBinding, Component dependsOnComp, java.lang.String[] dependsOnSeries)
Tracker
addDependsOn
in interface Tracker
srcComp
- the source component with the associated bindingsrcSeries
- the dot series as an array of source property name.srcBinding
- the associated bindingdependsOnSeries
- the dot series as an array of dependsOn property name.protected TrackerNode newTrackerNode(java.lang.Object script)
public void removeTrackings(Component comp)
Tracker
Component
.
removeTrackings
in interface Tracker
comp
- the associated componentpublic java.util.Set<LoadBinding> getLoadBindings(java.lang.Object base, java.lang.String prop)
Tracker
getLoadBindings
in interface Tracker
base
- base objectprop
- property name
public void tieValue(java.lang.Object comp, java.lang.Object base, java.lang.Object script, java.lang.Object propName, java.lang.Object value)
Tracker
Component
.
tieValue
in interface Tracker
comp
- the associated componentbase
- the base object of the propertyscript
- the field scriptpropName
- the resolved property name from the field scriptvalue
- the value of the propertypublic java.util.Set<java.lang.Object> getEqualBeans(java.lang.Object bean)
public void dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |