| Package | qnx.ui.events |
| Class | public class ListEvent |
| Inheritance | ListEvent flash.events.Event |
ListEvent object contains list and cell renderer interaction events.
| Property | Defined By | ||
|---|---|---|---|
| cell : ICellRenderer [read-only]
Returns the cell renderer of the cell renderer that was clicked in the list. | ListEvent | ||
| column : int [read-only]
Returns the column of the cell renderer that was clicked in the list. | ListEvent | ||
| data : Object [read-only]
Returns the data of the cell renderer that was clicked in the list. | ListEvent | ||
| index : int [read-only]
Returns the index of the cell renderer that was clicked in the list. | ListEvent | ||
| row : int [read-only]
Returns the row of the cell renderer that was clicked in the list. | ListEvent | ||
| section : int [read-only]
Returns the section of the cell renderer that was clicked in the list. | ListEvent | ||
| Method | Defined By | ||
|---|---|---|---|
ListEvent(type:String, data:Object, index:int, row:int, column:int, section:int = 0, cell:ICellRenderer = null)
Creates a ListEvent instance. | ListEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| ITEM_CLICKED : String = listItemClicked [static]
Dispatched when a cell renderer is clicked. | ListEvent | ||
| cell | property |
cell:ICellRenderer [read-only] Returns the cell renderer of the cell renderer that was clicked in the list.
public function get cell():ICellRenderer| column | property |
column:int [read-only] Returns the column of the cell renderer that was clicked in the list.
public function get column():int| data | property |
data:Object [read-only] Returns the data of the cell renderer that was clicked in the list.
public function get data():Object| index | property |
index:int [read-only] Returns the index of the cell renderer that was clicked in the list.
public function get index():int| row | property |
row:int [read-only] Returns the row of the cell renderer that was clicked in the list.
public function get row():int| section | property |
section:int [read-only] Returns the section of the cell renderer that was clicked in the list.
public function get section():int| ListEvent | () | Constructor |
public function ListEvent(type:String, data:Object, index:int, row:int, column:int, section:int = 0, cell:ICellRenderer = null)
Creates a ListEvent instance.
This event is dispatched by the List component.
Parameterstype:String — The type of the event.
| |
data:Object — The data for the item in the list.
| |
index:int — The index of the item in the list.
| |
row:int — The row of the item in the list.
| |
column:int — The column of the item in list.
| |
section:int (default = 0) — The section of the item in the list.
| |
cell:ICellRenderer (default = null) — The cell renderer of the item in the list.
|
See also
| ITEM_CLICKED | Constant |
public static const ITEM_CLICKED:String = listItemClickedDispatched when a cell renderer is clicked.