Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
ChainBinding

Package | org.apache.flex.binding
Class | public class ChainBinding
Inheritance | ChainBinding Object
Implements | IBead, IDocument

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The ChainBinding class is used to track changes of nested properties.

Public Properties

| Property | Defined By
--- | --- | ---
|  | destination : Object The destination property name or chain. | ChainBinding
|  | source : Array The source chain of property names | ChainBinding
|  | strand : IStrand [write-only] The host component for this bead. | ChainBinding
|  | watcherChain : Object The watcher for the component at document[source[0]] | ChainBinding

Protected Properties

| Property | Defined By
--- | --- | ---
|  | document : Object The host mxml document for the source and destination objects. | ChainBinding

Public Methods

| Method | Defined By
--- | --- | ---
|  | ChainBinding() Constructor. | ChainBinding
|  | setDocument(document:Object, id:String = null):void This method is called to notify an instance of what MXML document it belongs to, if any, and what its assigned id is in that document, if any. | ChainBinding

Property Detail

destination | property

`public var destination:Object`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The destination property name or chain.

document | property |

`protected var document:Object`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The host mxml document for the source and destination objects. The source object is either this document for simple bindings like {foo} where foo is a property on the mxml documnet, or found as document[sourceID] for simple bindings like {someid.someproperty}

source | property |

`public var source:Array`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The source chain of property names

strand | property |

`strand:IStrand` [write-only]

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The host component for this bead.

Implementation
`public function set strand(value:IStrand):void`

watcherChain | property |

`public var watcherChain:Object`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The watcher for the component at document[source[0]]

Constructor Detail

ChainBinding | () | Constructor

`public function ChainBinding()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor.

Method Detail

setDocument | () | method

`public function setDocument(document:Object, id:String = null):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

This method is called to notify an instance of what MXML document it belongs to, if any, and what its assigned id is in that document, if any.

Parameters

| `document:Object` — The MXML document that hosts this component.
| `id:String` (default = `null`)`` — The optional id of the component in the document.

Mon Sep 5 2016, 07:19 AM -07:00