Class zwt.ui.table.TableModelEvent
Extends
zwt.event.Event.
A table model event is emitted when an event occurs on a table model.
Defined in: TableModelEvent.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.table.TableModelEvent(int_type, int_firstRow, int_lastRow, int_column)
Construct a table model event.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.ui.table.TableModelEvent.DELETE
Constant used to indicate a row deletion event
|
<static> |
zwt.ui.table.TableModelEvent.INSERT
Constant used to indicate a row insertion event
|
<static> |
zwt.ui.table.TableModelEvent.RESET
Constant used to indicate a model reset event
|
<static> |
zwt.ui.table.TableModelEvent.UPDATE
Constant used to indicate a row update event
|
Method Attributes | Method Name and Description |
---|---|
Return the index of the column impacted by the event.
|
|
Return the index of the first row impacted by the event.
|
|
Return the index of the last row impacted by the event.
|
- Methods borrowed from class zwt.event.Event:
- getType, isCancelBubble, setCancelBubble, touch
Class Detail
zwt.ui.table.TableModelEvent(int_type, int_firstRow, int_lastRow, int_column)
Construct a table model event.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Integer} int_type
- The event type
- {Integer} int_firstRow
- The first row index
- {Integer} int_lastRow
- The last row index
- {Integer} int_column
- The column index
Field Detail
<static>
{Integer}
zwt.ui.table.TableModelEvent.DELETE
Constant used to indicate a row deletion event
<static>
{Integer}
zwt.ui.table.TableModelEvent.INSERT
Constant used to indicate a row insertion event
<static>
{Integer}
zwt.ui.table.TableModelEvent.RESET
Constant used to indicate a model reset event
<static>
{Integer}
zwt.ui.table.TableModelEvent.UPDATE
Constant used to indicate a row update event
Method Detail
{Integer}
getColumn()
Return the index of the column impacted by the event.
In case of a row update event, it represents the index of the cell in the row that has been modified.
- Returns:
- The column index
{Integer}
getFirstRow()
Return the index of the first row impacted by the event.
It represents the index of the first inserted, deleted or updated row.
- Returns:
- The first row index
{Integer}
getLastRow()
Return the index of the last row impacted by the event.
It represents the index of the last inserted, deleted or updated row (included).
- Returns:
- The last row index