User Guide

150 Chapter 6: Components Dictionary
This method is provided by the List class; you do not have to implement it. Declare it in your cell
renderer class as follows, and use it in the functions in your cell renderer:
var getCellIndex:Function;
Example
This example edits a DataGrid component’s data provider from within a cell:
var index = getCellIndex();
var colName = listOwner.getColumnAt(index.columnIndex).columnName;
listOwner.dataProvider.editField(index.itemIndex, colName, someVal);
CellRenderer.getDataLabel()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
componentInstance.getDataLabel()
Parameters
None.
Returns
A string.
Description
Method; returns a string containing the name of the cell renderer’s data field. For the DataGrid
component, this method returns the column name for the current cell.
This method is provided by the List class; you do not have to implement it. Declare it in your cell
renderer class as follows, and use it in the functions in your cell renderer:
var getDataLabel:Function;
Example
The following code tells the cell that its rendering the data field "Price". The variable p is now
equal to
"Price":
var p = getDataLabel();
CellRenderer.getPreferredHeight()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.