Using ActionScript 3.0 Components |
|
|
|
| Working with Components > Working with a CellRenderer | |||
CellRenderer is a class that List-based components, such as List, DataGrid, TileList, and ComboBox, use to manipulate and display custom cell content for their rows. A customized cell can contain text, a prebuilt component, such as a CheckBox, or any display object class you can create. To render data using a custom CellRenderer, you can either extend the CellRenderer class or implement the ICellRenderer interface to create your own custom CellRenderer class.
The List, DataGrid, TileList, and ComboBox classes are subclasses of the SelectableList class. The SelectableList class includes a cellRenderer style. This style defines the display object that the component uses to render cells.
You can adjust the formatting of the styles used by the CellRenderer, by calling the setRendererStyle() method of the List object (see the next section, Formatting cells). Or you can define a custom class to use as the CellRenderer (see Defining a custom CellRenderer class).
|
|
|
|