Package org.zkoss.bind.sys.tracker
Interface Tracker
-
- All Known Implementing Classes:
TrackerImpl
public interface TrackerBind tracker to maintain a binding dependency graph. e.g. @{a.b.c, save-onchange:d.e.f} then it forms a dependency from d.e.f to a.b.c for save.- Since:
- 6.0.0
- Author:
- henrichen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDependsOn(org.zkoss.zk.ui.Component srcComp, java.lang.String[] srcSeries, Binding srcBinding, org.zkoss.zk.ui.Component dependsOnComp, java.lang.String[] dependsOnSeries)Add a depends-on tracking between the source property name series and depends-on property name series.voidaddTracking(org.zkoss.zk.ui.Component comp, java.lang.String[] series, Binding binding)Add a tracking that associate a binding to a dot series under the specifiedComponentjava.util.Set<LoadBinding>getDirectLoadBindings(java.lang.Object base, java.lang.String propName)Returns all direct bindings that associated with the specified property.java.util.Set<LoadBinding>getKidBaseLoadBindings(java.lang.Object base, java.lang.String propName)Returns all bindings that associated with the kid bases of specified property.java.util.Set<LoadBinding>getLoadBindings(java.lang.Object base, java.lang.String propName)Returns all bindings that associated with the specified property.voidremoveTrackings(java.util.Set<org.zkoss.zk.ui.Component> comps)Remove all tracking associated with the specifiedComponentset.voidremoveTrackings(org.zkoss.zk.ui.Component comp)Remove all tracking associated with the specifiedComponent.voidtieValue(java.lang.Object comp, java.lang.Object base, java.lang.Object script, java.lang.Object propName, java.lang.Object value, java.lang.Object basePath)Tie a property to its corresponding value under the specifiedComponent.
-
-
-
Method Detail
-
addTracking
void addTracking(org.zkoss.zk.ui.Component comp, java.lang.String[] series, Binding binding)Add a tracking that associate a binding to a dot series under the specifiedComponent- Parameters:
comp- the component with the associated bindingseries- the dot series as an array of property namebinding- the associated binding
-
addDependsOn
void addDependsOn(org.zkoss.zk.ui.Component srcComp, java.lang.String[] srcSeries, Binding srcBinding, org.zkoss.zk.ui.Component dependsOnComp, java.lang.String[] dependsOnSeries)Add a depends-on tracking between the source property name series and depends-on property name series.- Parameters:
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.
-
removeTrackings
void removeTrackings(org.zkoss.zk.ui.Component comp)
Remove all tracking associated with the specifiedComponent.- Parameters:
comp- the associated component
-
removeTrackings
void removeTrackings(java.util.Set<org.zkoss.zk.ui.Component> comps)
Remove all tracking associated with the specifiedComponentset.- Parameters:
comps- the associated component set- Since:
- 7.0.2
-
tieValue
void tieValue(java.lang.Object comp, java.lang.Object base, java.lang.Object script, java.lang.Object propName, java.lang.Object value, java.lang.Object basePath)Tie a property to its corresponding value under the specifiedComponent.- Parameters:
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 propertybasePath- the basePath script prior to the script field script (Since 8.0)
-
getLoadBindings
java.util.Set<LoadBinding> getLoadBindings(java.lang.Object base, java.lang.String propName)
Returns all bindings that associated with the specified property.- Parameters:
base- base objectpropName- property name- Returns:
- all LoadBindings that associated with the specified property.
-
getDirectLoadBindings
java.util.Set<LoadBinding> getDirectLoadBindings(java.lang.Object base, java.lang.String propName)
Returns all direct bindings that associated with the specified property.- Parameters:
base- base objectpropName- property name- Returns:
- all direct LoadBindings that associated with the specified property.
- Since:
- 10.2.0
-
getKidBaseLoadBindings
java.util.Set<LoadBinding> getKidBaseLoadBindings(java.lang.Object base, java.lang.String propName)
Returns all bindings that associated with the kid bases of specified property.- Parameters:
base- base objectpropName- property name- Returns:
- all bindings that associated with the kid bases of specified property.
- Since:
- 10.2.0
-
-