適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
spark.components 

IItemRendererOwner  - AS3 Flex

套件spark.components
介面public interface IItemRendererOwner
實作者 DataGroup, SkinnableDataContainer

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: 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.

相關 API 元素



公用方法
 方法定義自
  
Returns the String for display in an item renderer.
IItemRendererOwner
  
updateRenderer(renderer:IVisualElement, itemIndex:int, data:Object):void
Updates the renderer for reuse.
IItemRendererOwner
方法詳細資訊

itemToLabel

()方法
public function itemToLabel(item:Object):String

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: 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.

參數

item:Object — The data item to display.

傳回值
String — The String for display in an item renderer.

updateRenderer

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

語言版本: ActionScript 3.0
產品版本: Flex 4
執行階段版本: 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.

參數

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 ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。