Class Index | File Index

Classes


Class zwt.ui.table.TableSelectionModelEvent


Extends zwt.event.Event.

A table selection model event is emitted when an event occurs on a table selection model.


Defined in: TableSelectionModelEvent.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
zwt.ui.table.TableSelectionModelEvent(int_type, array_cells)
Construct a selection model event.
Field Summary
Field Attributes Field Name and Description
<static>  
zwt.ui.table.TableSelectionModelEvent.DESELECT_CELL
Constant used to indicate a cell deselect event
<static>  
zwt.ui.table.TableSelectionModelEvent.DESELECT_COLUMN
Constant used to indicate a column deselect event
<static>  
zwt.ui.table.TableSelectionModelEvent.DESELECT_ROW
Constant used to indicate a row deselect event
<static>  
zwt.ui.table.TableSelectionModelEvent.SELECT_CELL
Constant used to indicate a cell select event
<static>  
zwt.ui.table.TableSelectionModelEvent.SELECT_COLUMN
Constant used to indicate a column select event
<static>  
zwt.ui.table.TableSelectionModelEvent.SELECT_ROW
Constant used to indicate a row select event
Method Summary
Method Attributes Method Name and Description
 
getCell(int_index)
Return the cell at the specified index in the array of cells affected by the event.
 
Return the number of cells affected by the event.
 
getColumn(int_index)
Return the index of the column in the data model at the specified index in the array of columns affected by the event.
 
Return the number of columns affected by the event.
 
getRow(int_index)
Return the index of the row in the data model at the specified index in the array of rows affected by the event.
 
Return the number of rows affected by the event.
Methods borrowed from class zwt.event.Event:
getType, isCancelBubble, setCancelBubble, touch
Class Detail
zwt.ui.table.TableSelectionModelEvent(int_type, array_cells)
Construct a selection model event.
Author: Jeremy KUHN.
Parameters:
{Integer} int_type
The event type
{Integer[][]} array_cells
The array of cells in the model affected by the event
See:
zwt.ui.table.TableSelectionModel
zwt.ui.table.TableSelectionModelEventManager
Field Detail
<static> {Integer} zwt.ui.table.TableSelectionModelEvent.DESELECT_CELL
Constant used to indicate a cell deselect event

<static> {Integer} zwt.ui.table.TableSelectionModelEvent.DESELECT_COLUMN
Constant used to indicate a column deselect event

<static> {Integer} zwt.ui.table.TableSelectionModelEvent.DESELECT_ROW
Constant used to indicate a row deselect event

<static> {Integer} zwt.ui.table.TableSelectionModelEvent.SELECT_CELL
Constant used to indicate a cell select event

<static> {Integer} zwt.ui.table.TableSelectionModelEvent.SELECT_COLUMN
Constant used to indicate a column select event

<static> {Integer} zwt.ui.table.TableSelectionModelEvent.SELECT_ROW
Constant used to indicate a row select event
Method Detail
{Integer[]} getCell(int_index)
Return the cell at the specified index in the array of cells affected by the event.

A cell is modeled as an array containing the indices of the row and the column in the data model.

Parameters:
int_index
Returns:
The index of a cell in the data model

{Integer} getCellCount()
Return the number of cells affected by the event.
Returns:
The number of cells

{Integer} getColumn(int_index)
Return the index of the column in the data model at the specified index in the array of columns affected by the event.
Parameters:
int_index
Returns:
The index of a column in the data model

{Integer} getColumnCount()
Return the number of columns affected by the event.
Returns:
The number of columns

{Integer} getRow(int_index)
Return the index of the row in the data model at the specified index in the array of rows affected by the event.
Parameters:
int_index
Returns:
The index of a row in the data model

{Integer} getRowCount()
Return the number of rows affected by the event.
Returns:
The number of rows

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Nov 09 2011 19:29:09 GMT+0100 (CET)