Packageorg.apache.flex.core
Interfacepublic interface IItemRendererClassFactory extends IBead
Implementors ItemRendererClassFactory

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The IItemRendererClassFactory interface is the basic interface for beads that generate instances of IItemRenderers. Note that this is not the same as an org.apache.flex.core.IFactory which is a lower-level interface for generating an instance of just about anything. IItemRendererClassFactory implementations often use IFactory to generate the actual item renderer instance, but the IItemRendererClassFactory bead allows for more computation about which renderer to instantiate. For example, the default implementation in org.apache.flex.core.ItemRendererClassFactory 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.



Public Properties
 PropertyDefined By
 Inheritedstrand : IStrand
[write-only] The host component for this bead.
IBead
Public Methods
 MethodDefined By
  
This method is called to generate another instance of an item renderer and attach it to the given parent.
IItemRendererClassFactory
Method Detail
createItemRenderer()method
public function createItemRenderer(parent:IItemRendererParent):IItemRenderer

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

This method is called to generate another instance of an item renderer and attach it to the given parent.

Parameters

parent:IItemRendererParent — The parent of the item renderer.

Returns
IItemRenderer — The item renderer.

See also