GODPAPER | All Packages | All Classes | Index | Frames No Frames |
PropertyProxy

Package | feathers.core
Class | public final dynamic class PropertyProxy
Inheritance | PropertyProxy flash.utils.Proxy

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

| Method | Defined 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`

Thu Jan 16 2014, 01:11 PM +08:00