The ItemRendererClassFactory class is the default implementation of
IItemRendererClassFactory. This implementation checks for an itemRenderer
property on the strand, then looks for a default definition in CSS, but
also handles the renderer being defined in MXML in sub tags of the
ItemRendererClassFactory. Other more advanced implementations could
return different renderers based on the data item's type.
Creates an instance of an item renderer from child MXML tags.
ItemRendererClassFactory
Property Detail
createFunction
property
public var createFunction:Function
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
This is the method that actually does the work for createItemRenderer. It
defaults to creating an instance from child MXML tags, but if the strand
has an item renderer property or style, it switches to generating instances
of the item renderer specified by that property or style. And yes, since
it is public, you could theoretically assign some other method that generates
item renderer instances.
Stores the IFactory that will be used to generate item renderer instances if
createFromClass is the createFunction.
mxmlContent
property
public var mxmlContent:Array
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
The default property. Child tags in MXML documents get assigned
to this property, but are actually encoded by the compiler into the MXMLDescriptor
array. Therefore, setting this property from ActionScript will have no
effect at runtime.
MXMLDescriptor
property
MXMLDescriptor:Array [read-only]
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
An array of data that describes the MXML attributes
and tags in an MXML document. This data is usually
decoded by an MXMLDataInterpreter
Implementation public function get MXMLDescriptor():Array