Packagefeathers.core
Classpublic final dynamic class PropertyProxy
InheritancePropertyProxy Inheritance flash.utils.Proxy

Product Version : Feathers 1.0.0

Detects when its own properties have changed and dispatches an event to notify listeners.

Supports nested PropertyProxy instances using attribute @ notation. Placing an @ before a property name is like saying, "If this nested PropertyProxy doesn't exist yet, create one. If it does, use the existing one."



Public Methods
 MethodDefined By
  
PropertyProxy(onChangeCallback:Function = null)
Constructor.
PropertyProxy
  
addOnChangeCallback(callback:Function):void
Adds a callback to react to property changes.
PropertyProxy
  
fromObject(source:Object, onChangeCallback:Function = null):PropertyProxy
[static] Creates a PropertyProxy from a regular old Object.
PropertyProxy
  
removeOnChangeCallback(callback:Function):void
Removes a callback.
PropertyProxy
Constructor Detail
PropertyProxy()Constructor
public function PropertyProxy(onChangeCallback:Function = null)

Constructor.

Parameters
onChangeCallback:Function (default = null)
Method Detail
addOnChangeCallback()method
public function addOnChangeCallback(callback:Function):void

Adds a callback to react to property changes.

Parameters

callback:Function

fromObject()method 
public static function fromObject(source:Object, onChangeCallback:Function = null):PropertyProxy

Creates a PropertyProxy from a regular old Object.

Parameters

source:Object
 
onChangeCallback:Function (default = null)

Returns
PropertyProxy
removeOnChangeCallback()method 
public function removeOnChangeCallback(callback:Function):void

Removes a callback.

Parameters

callback:Function