Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Type | Name and description |
---|---|
void |
addAllListeners(PropertyChangeListener listener, Object newObject, Set updateSet) Adds all the listeners to the objects in the bind path. |
void |
addListeners(PropertyChangeListener listener, Object newObject, Set updateSet) Add listeners to a specific object. |
TriggerBinding |
getSyntheticTriggerBinding(Object newObject) |
void |
removeListeners() Remove listeners, believing that our bould flags are accurate and it removes only as declared. |
void |
updateLocalSyntheticProperties(Map<String, TriggerBinding> synthetics) |
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 toRemove listeners, believing that our bould flags are accurate and it removes only as declared.
Called 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