Package | org.spicefactory.parsley.binding |
Interface | public interface PropertyWatcher |
Implementors | DefaultPropertyWatcher, FlexPropertyWatcher |
This interface helps abstracting away the fact that while it is convenient to use the Flex Binding architecture for this purpose in Flex applications, these are not available in Flash applications.
Method | Defined By | ||
---|---|---|---|
unwatch():void
Stops watching the property. | PropertyWatcher | ||
Watches the property of the specified target object for change events
and invokes the specified callback on each change, passing the new value. | PropertyWatcher |
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
|