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 it's rendering the data field
equal to
"Price"
var p = getDataLabel();
CellRenderer.getPreferredHeight()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
150
Chapter 6: Components Dictionary
:
. The variable
"Price"
is now
p
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers