Packageorg.flowplayer.util
Classpublic class PropertyBinder

PropertyBinder is used to populate object's properties by copying values from other objects. The target object should be an instance of a class that contains accessor or setter functions for the properties that are found in the source.



Public Methods
 MethodDefined by
  
PropertyBinder(object:Object, extraProps:String = null)
Creates a new property binder for the specified target object.
PropertyBinder
  
copyProperties(source:Object, overwrite:Boolean = true):Object
PropertyBinder
  
copyProperty(prop:String, value:Object, convertType:Boolean = false):void
PropertyBinder
Constructor detail
PropertyBinder()constructor
public function PropertyBinder(object:Object, extraProps:String = null)

Creates a new property binder for the specified target object.

Parameters
object:Object — the target object into which the properties will be copid to
 
extraProps:String (default = null) — a property name for all properties for which the target does not provide an accessor or a setter function
Method detail
copyProperties()method
public function copyProperties(source:Object, overwrite:Boolean = true):ObjectParameters
source:Object
 
overwrite:Boolean (default = true)

Returns
Object
copyProperty()method 
public function copyProperty(prop:String, value:Object, convertType:Boolean = false):voidParameters
prop:String
 
value:Object
 
convertType:Boolean (default = false)