public class TrackerImpl extends java.lang.Object implements Tracker, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
TrackerImpl.EqualBeansMap |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Object,java.util.Set<TrackerNode>> |
_beanMap |
protected java.util.Map<Component,java.util.Map<java.lang.Object,TrackerNode>> |
_compMap |
protected TrackerImpl.EqualBeansMap |
_equalBeansMap |
protected java.util.Map<java.lang.Object,java.util.Set<TrackerNode>> |
_nullMap |
Constructor and Description |
---|
TrackerImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addBeanMap(TrackerNode node,
java.lang.Object value,
java.lang.Object basePath) |
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() |
void |
dumpLess() |
protected java.util.Collection<TrackerNode> |
getAllTrackerNodes() |
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 |
getOrCreateTrackerNode(Component comp,
java.lang.String[] series) |
protected TrackerNode |
getTrackerNodePerComponentScript(java.lang.Object comp,
java.lang.Object script) |
protected java.util.Map<Component,java.util.Map<java.lang.Object,TrackerNode>> |
initCompMap() |
protected TrackerImpl.EqualBeansMap |
newEqualBeansMap() |
protected TrackerNode |
newTrackerNode(java.lang.Object script) |
protected void |
removeAllFromBeanMap(java.util.Collection<TrackerNode> removed) |
protected void |
removeAllFromNullMap(java.util.Set<TrackerNode> removed) |
protected void |
removeBeanMap(TrackerNode node) |
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. |
protected static boolean |
testEqualsBean(java.lang.Object nodeBean,
java.lang.Object bean) |
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 specified
Component . |
protected java.util.Map<Component,java.util.Map<java.lang.Object,TrackerNode>> _compMap
protected java.util.Map<java.lang.Object,java.util.Set<TrackerNode>> _nullMap
protected transient java.util.Map<java.lang.Object,java.util.Set<TrackerNode>> _beanMap
protected transient TrackerImpl.EqualBeansMap _equalBeansMap
protected java.util.Map<Component,java.util.Map<java.lang.Object,TrackerNode>> initCompMap()
protected TrackerImpl.EqualBeansMap newEqualBeansMap()
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 getOrCreateTrackerNode(Component comp, java.lang.String[] series)
protected TrackerNode newTrackerNode(java.lang.Object script)
public void removeTrackings(java.util.Set<Component> comps)
Tracker
Component
set.removeTrackings
in interface Tracker
comps
- the associated component setpublic void removeTrackings(Component comp)
Tracker
Component
.removeTrackings
in interface Tracker
comp
- the associated componentprotected void removeAllFromNullMap(java.util.Set<TrackerNode> removed)
public java.util.Set<LoadBinding> getLoadBindings(java.lang.Object base, java.lang.String prop)
Tracker
getLoadBindings
in interface Tracker
base
- base objectprop
- property nameprotected java.util.Collection<TrackerNode> getAllTrackerNodes()
protected TrackerNode getTrackerNodePerComponentScript(java.lang.Object comp, java.lang.Object script)
public 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)
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 propertybasePath
- the basePath script prior to the script field script (Since 8.0)protected void addBeanMap(TrackerNode node, java.lang.Object value, java.lang.Object basePath)
protected void removeBeanMap(TrackerNode node)
protected void removeAllFromBeanMap(java.util.Collection<TrackerNode> removed)
public java.util.Set<java.lang.Object> getEqualBeans(java.lang.Object bean)
protected static boolean testEqualsBean(java.lang.Object nodeBean, java.lang.Object bean)
public void dumpLess()
public void dump()
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.