public class BindPath
extends Object
The bind path object. This class represents one "step" in the bind path.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addAllListeners(PropertyChangeListener listener, Object newObject, Set updateSet)Adds all the listeners to the objects in the bind path. |
|
public void |
addListeners(PropertyChangeListener listener, Object newObject, Set updateSet)Add listeners to a specific object. |
|
public TriggerBinding |
getSyntheticTriggerBinding(Object newObject)Resolves the synthetic trigger binding that matches the supplied object and property. |
|
public void |
removeListeners()Remove listeners, believing that our bould flags are accurate and it removes only as declared. |
|
public void |
updateLocalSyntheticProperties(Map<String, TriggerBinding> synthetics)Refreshes the synthetic trigger bindings that apply to this path segment. |
|
public void |
updatePath(PropertyChangeListener listener, Object newObject, Set updateSet)Called when we detect a change somewhere down our path. |
Adds all the listeners to the objects in the bind path. This assumes that we are not added as listeners to any of them, hence it is not idempotent.
listener - This listener to attach.newObject - The object we should read our property off of.updateSet - The list of objects we have added listeners toAdd listeners to a specific object. Updates the bould flags and update set
listener - This listener to attach.newObject - The object we should read our property off of.updateSet - The list of objects we have added listeners toResolves the synthetic trigger binding that matches the supplied object and property.
newObject - the current object for this path segmentnullRemove listeners, believing that our bould flags are accurate and it removes only as declared.
Refreshes the synthetic trigger bindings that apply to this path segment.
synthetics - all known synthetic trigger bindingsCalled when we detect a change somewhere down our path. First, check to see if our object is changing. If so remove our old listener Next, update the reference object the children have and recurse Finally, add listeners if we have a different object
listener - This listener to attach.newObject - The object we should read our property off of.updateSet - The list of objects we have added listeners to