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

Package | org.apache.flex.core
Interface | public 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
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | strand : IStrand [write-only] The host component for this bead. | IBead

Public Methods

| Method | Defined By
--- | --- | ---
|  | createItemRenderer(parent:IItemRendererParent):IItemRenderer 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

org.apache.flex.core.IItemRendererParent
org.apache.flex.core.IItemRenderer

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