Packagespark.components
Interfacepublic interface IItemRendererOwner
Implementors SkinnableDataContainer

Language Version: ActionScript 3.0
Product Version: Flex 4
Runtime Versions: Flash Player 10, AIR 1.5

The IItemRendererOwner interface defines the basic set of APIs that a class must implement to support items renderers. A class that implements the IItemRendererOwner interface is called the host component of the item renderer.

The class defining the item renderer must implement the IItemRenderer interface.

See also

spark.components.IItemRenderer


Public Methods
 MethodDefined By
  
Returns the String for display in an item renderer.
IItemRendererOwner
  
Updates the renderer for re-use.
IItemRendererOwner
Method Detail
itemToLabel()method
public function itemToLabel(item:Object):String

Language Version: ActionScript 3.0
Product Version: Flex 4
Runtime Versions: Flash Player 10, AIR 1.5

Returns the String for display in an item renderer. The String is written to the labelText property of the item renderer.

Parameters

item:Object — The date item to display.

Returns
String — The String for display in an item renderer.
updateRenderer()method 
public function updateRenderer(renderer:IVisualElement):void

Language Version: ActionScript 3.0
Product Version: Flex 4
Runtime Versions: Flash Player 10, AIR 1.5

Updates the renderer for re-use. This first prepares the item renderer for re-use by clearning out any stale properties as well as updating it with new properties.

Parameters

renderer:IVisualElement — The item renderer.