qnx.fuse.ui.events.ListEvent

ListEvent

Properties | Methods | Constants


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

A ListEvent object contains list and cell renderer interaction events.

Class information:
BlackBerry 10 Version:   10.0.0
Found in:  qnxui.swc

See also

List



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.fuse.ui.listClasses.List

Constant Detail

ITEM_CLICKED


public static const ITEM_CLICKED:String = listItemClicked

Dispatched when a cell renderer is clicked.

The ListEvent.ITEM_CLICKED constant defines the value of the type property of the event object for an listItemClicked event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
cellThe ICellRenderer instance that was clicked.
columnThe column of the item clicked.
currentTargetThe object that is actively processing the Event object with an event listener.
dataThe data of the item clicked.
indexThe index of the item clicked.
rowThe row of the item clicked.
sectionThe section of the item clicked.
typeListEvent.ITEM_CLICKED





comments powered by Disqus