Packageorg.spicefactory.parsley.flex.binding
Classpublic class FlexPropertyWatcher
InheritanceFlexPropertyWatcher Inheritance Object
Implements PropertyWatcher

Implementation of the PropertyWatcher interface that relies on the Flex Binding architecture for observing property changes.



Public Methods
 MethodDefined By
  
unwatch():void
Stops watching the property.
FlexPropertyWatcher
  
watch(target:Object, property:Property, changeEvent:String, callback:Function):void
Watches the property of the specified target object for change events and invokes the specified callback on each change, passing the new value.
FlexPropertyWatcher
Method Detail
unwatch()method
public function unwatch():void

Stops watching the property.

watch()method 
public function watch(target:Object, property:Property, changeEvent:String, callback:Function):void

Watches the property of the specified target object for change events and invokes the specified callback on each change, passing the new value.

Parameters

target:Object — the instance that holds the property to observe
 
property:Property — the target property that holds the published value
 
changeEvent:String — the event type that signals that the property value has changed (has no effect in Flex applications)
 
callback:Function — the callback to invoke on each property change