Packageorg.apache.flex.binding
Classpublic class GenericBinding
InheritanceGenericBinding Inheritance 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
 PropertyDefined 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
 PropertyDefined 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
 MethodDefined By
  
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
destinationproperty
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.

destinationDataproperty 
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

destinationFunctionproperty 
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

documentproperty 
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".

sourceproperty 
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.

strandproperty 
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.