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

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

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The GenericBinding class is the data-binding class that applies changes to properties of source objects to a property of the destination object.

Public Properties

| Property | Defined By
--- | --- | ---
|  | destinationData : Object The string or array of strings that describe the chain of properties to access to assign the source property's value to the destination | GenericBinding
|  | destinationFunction : Function The function used to assign the source property's value to the destination if the destination is not a public property | GenericBinding
|  | source : Object The string or array of strings that describe the chain of properties to access to get to the source property's value. | GenericBinding
|  | strand : IStrand [write-only] The host component for this bead. | GenericBinding

Protected Properties

| Property | Defined By
--- | --- | ---
|  | destination : Object The object whose property will be changed by the binding expression. | GenericBinding
|  | document : Object The mxml document for the binding expression. | GenericBinding

Public Methods

| Method | Defined By
--- | --- | ---
|  | GenericBinding() Constructor. | GenericBinding
|  | 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. | GenericBinding
|  | valueChanged(value:Object):void The method that gets called by the watcher when the value may have changed. | GenericBinding

Property Detail

destination | property

`protected var destination:Object`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The object whose property will be changed by the binding expression.

destinationData | property |

`public var destinationData:Object`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The string or array of strings that describe the chain of properties to access to assign the source property's value to the destination

destinationFunction | property |

`public var destinationFunction:Function`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The function used to assign the source property's value to the destination if the destination is not a public property

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 mxml document for the binding expression. If you bind to {someid.someproperty} then there must be a tag in the mxml document with the id "someid".

source | property |

`public var source:Object`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The string or array of strings that describe the chain of properties to access to get to the source property's value.

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`
Constructor Detail

GenericBinding | () | Constructor

`public function GenericBinding()`

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.

valueChanged | () | method |

`public function valueChanged(value:Object):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The method that gets called by the watcher when the value may have changed.

Parameters

| `value:Object` — The new value.

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