Package org.apache.groovy.swing.binding
Class BindPath
java.lang.Object
org.apache.groovy.swing.binding.BindPath
The bind path object.  This class represents one "step" in the bind path.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAllListeners(PropertyChangeListener listener, Object newObject, Set updateSet) Adds all the listeners to the objects in the bind path.voidaddListeners(PropertyChangeListener listener, Object newObject, Set updateSet) Add listeners to a specific object.getSyntheticTriggerBinding(Object newObject) voidRemove listeners, believing that our bould flags are accurate and it removes only as declared.voidupdateLocalSyntheticProperties(Map<String, TriggerBinding> synthetics) voidupdatePath(PropertyChangeListener listener, Object newObject, Set updateSet) Called when we detect a change somewhere down our path.
- 
Constructor Details- 
BindPathpublic BindPath()
 
- 
- 
Method Details- 
updatePathCalled 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- Parameters:
- 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
 
- 
addAllListenersAdds 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.- Parameters:
- 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
 
- 
addListenersAdd listeners to a specific object. Updates the bould flags and update set- Parameters:
- 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
 
- 
removeListenerspublic void removeListeners()Remove listeners, believing that our bould flags are accurate and it removes only as declared.
- 
updateLocalSyntheticProperties
- 
getSyntheticTriggerBinding
 
-