Guida di riferimento di ActionScript® 3.0 per la piattaforma Adobe® Flash®
Home  |  Nascondi elenco pacchetti e classi |  Pacchetti  |  Classi  |  Novità  |  Indice  |  Appendici  |  Perché in inglese?
Filtri: Recupero dati dal server...
Recupero dati dal server...
spark.components 

IItemRendererOwner  - AS3 Flex

Pacchettospark.components
Interfacciapublic interface IItemRendererOwner
Implementatori DataGroup, SkinnableDataContainer

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: 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.

Elementi API correlati



Metodi pubblici
 MetodoDefinito da
  
Returns the String for display in an item renderer.
IItemRendererOwner
  
updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void
Updates the renderer for reuse.
IItemRendererOwner
Descrizione dei metodi

itemToLabel

()metodo
public function itemToLabel(item:Object):String

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: 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.

Parametri

item:Object — The data item to display.

Restituisce
String — The String for display in an item renderer.

updateRenderer

()metodo 
public function updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void

Versione linguaggio: ActionScript 3.0
Versione prodotto: Flex 4
Versioni runtime: 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.

Parametri

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.





[ X ]Perché in inglese?
Il contenuto della Guida di riferimento di ActionScript 3.0 appare in inglese

Non tutte le parti della Guida di riferimento di ActionScript 3.0 sono tradotte in tutte le lingue. Quando un elemento del linguaggio non è tradotto, viene riportato in inglese. Ad esempio, la classe ga.controls.HelpBox non è tradotta in nessuna lingua. Pertanto, nella versione italiana della guida di riferimento, la descrizione della classe ga.controls.HelpBox è riportata in inglese.