|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Tracker
Bind 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.
| 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 |
java.util.Set<LoadBinding> |
getLoadBindings(java.lang.Object base,
java.lang.String propName)
Returns all bindings that associated with the specified property. |
void |
removeTrackings(Component comp)
Remove all tracking associated with the specified Component. |
void |
removeTrackings(java.util.Set<Component> comps)
Remove all tracking associated with the specified Component set. |
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. |
| Method Detail |
|---|
void addTracking(Component comp,
java.lang.String[] series,
Binding binding)
Component
comp - the component with the associated bindingseries - the dot series as an array of property namebinding - the associated binding
void addDependsOn(Component srcComp,
java.lang.String[] srcSeries,
Binding srcBinding,
Component dependsOnComp,
java.lang.String[] dependsOnSeries)
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.void removeTrackings(Component comp)
Component.
comp - the associated componentvoid removeTrackings(java.util.Set<Component> comps)
Component set.
comps - the associated component set
void tieValue(java.lang.Object comp,
java.lang.Object base,
java.lang.Object script,
java.lang.Object propName,
java.lang.Object value)
Component.
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 property
java.util.Set<LoadBinding> getLoadBindings(java.lang.Object base,
java.lang.String propName)
base - base objectpropName - property name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||