Paket | spark.components |
Gränssnitt | public interface IItemRendererOwner |
Implementorer | DataGroup, SkinnableDataContainer |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
The class defining the item renderer must implement the IItemRenderer interface.
Relaterade API-element
Publika metoder
Metod | Definieras med | ||
---|---|---|---|
Returns the String for display in an item renderer. | IItemRendererOwner | ||
Updates the renderer for reuse. | IItemRendererOwner |
Metoddetaljer
itemToLabel | () | metod |
public function itemToLabel(item:Object):String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | 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.
Parametrar
item:Object — The data item to display.
|
String — The String for display in an item renderer.
|
updateRenderer | () | metod |
public function updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Updates the renderer for reuse. This method first prepares the item renderer for reuse by cleaning out any stale properties as well as updating it with new properties.
The last thing this method should do is set the data
property
of the item renderer.
Parametrar
renderer:IVisualElement — The item renderer.
| |
itemIndex:int — The index of the data in the data provider.
| |
data:Object — The data object this item renderer is representing.
|
Tue Jun 12 2018, 01:40 PM Z