qnx.ui.events.ListEvent

ListEvent

Properties | Methods | Constants


Packageqnx.ui.events
Classpublic class ListEvent
InheritanceListEvent Inheritance flash.events.Event

A ListEvent object contains list and cell renderer interaction events.

Class information:
PlayBook Tablet OS Version:   1.0.6



Public Properties

 PropertyDefined 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

Public Methods

 MethodDefined By
  
ListEvent(type:String, data:Object, index:int, row:int, column:int, section:int = 0, cell:ICellRenderer = null)
Creates a ListEvent instance.
ListEvent

Public Constants

 ConstantDefined By
  ITEM_CLICKED : String = listItemClicked
[static] Dispatched when a cell renderer is clicked.
ListEvent

Property Detail

cell


cell:ICellRenderer  [read-only]

Returns the cell renderer of the cell renderer that was clicked in the list.


Implementation

public function get cell():ICellRenderer

column


column:int  [read-only]

Returns the column of the cell renderer that was clicked in the list.


Implementation

public function get column():int

data


data:Object  [read-only]

Returns the data of the cell renderer that was clicked in the list.


Implementation

public function get data():Object

index


index:int  [read-only]

Returns the index of the cell renderer that was clicked in the list.


Implementation

public function get index():int

row


row:int  [read-only]

Returns the row of the cell renderer that was clicked in the list.


Implementation

public function get row():int

section


section:int  [read-only]

Returns the section of the cell renderer that was clicked in the list.


Implementation

public function get section():int

Constructor Detail

ListEvent()


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.

Parameters

type: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

qnx.ui.listClasses.List

Constant Detail

ITEM_CLICKED


public static const ITEM_CLICKED:String = listItemClicked

Dispatched when a cell renderer is clicked.