Class zwt.ui.table.ColumnModelEvent
Extends
zwt.event.Event.
A ColumnModelEvent object is emitted when an event occurs on a ColumnModel.
Defined in: ColumnModelEvent.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.table.ColumnModelEvent(int_type, int_fromIndex, int_toIndex)
Construct a column model event.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.ui.table.ColumnModelEvent.DELETE
Constant used to indicate a column deletion event
|
<static> |
zwt.ui.table.ColumnModelEvent.INSERT
Constant used to indicate a column insertion event
|
<static> |
zwt.ui.table.ColumnModelEvent.MOVE
Constant used to indicate a column move event
|
<static> |
zwt.ui.table.ColumnModelEvent.RESET
Constant used to indicate a column model reset event
|
Method Attributes | Method Name and Description |
---|---|
Return the index of the first column impacted by the event.
|
|
Return the index of the last column impacted by the event.
|
- Methods borrowed from class zwt.event.Event:
- getType, isCancelBubble, setCancelBubble, touch
Class Detail
zwt.ui.table.ColumnModelEvent(int_type, int_fromIndex, int_toIndex)
Construct a column model event.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Integer} int_type
- The event type
- {Integer} int_fromIndex
- The first index
- {Integer} int_toIndex
- The last index
Field Detail
<static>
{Integer}
zwt.ui.table.ColumnModelEvent.DELETE
Constant used to indicate a column deletion event
<static>
{Integer}
zwt.ui.table.ColumnModelEvent.INSERT
Constant used to indicate a column insertion event
<static>
{Integer}
zwt.ui.table.ColumnModelEvent.MOVE
Constant used to indicate a column move event
<static>
{Integer}
zwt.ui.table.ColumnModelEvent.RESET
Constant used to indicate a column model reset event
Method Detail
{Integer}
getFromIndex()
Return the index of the first column impacted by the event.
In case of a column insertion, it represents the index of the inserted column.
In case of a column deletion, it represents the index of the deleted column.
In case of a column move, it represents the origin index of the moved column.
- Returns:
- The first column index
{Integer}
getToIndex()
Return the index of the last column impacted by the event.
In case of a column move, it represents the target index of the moved column.
- Returns:
- The last column index