Class zwt.ui.ListModelEvent
Extends
zwt.event.Event.
A list model event is emitted when an event occurs on a list model.
Defined in: ListModelEvent.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.ListModelEvent(int_type, int_firstIndex, int_lastIndex)
Construct a list model event.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.ui.ListModelEvent.DELETE
Constant used to indicate an element deletion event
|
<static> |
zwt.ui.ListModelEvent.INSERT
Constant used to indicate an element insertion event
|
<static> |
zwt.ui.ListModelEvent.RESET
Constant used to indicate a model reset event
|
<static> |
zwt.ui.ListModelEvent.UPDATE
Constant used to indicate an element update event
|
Method Attributes | Method Name and Description |
---|---|
Return the first index of the element affected by the event.
|
|
Return the last index of the element affected by the event.
|
- Methods borrowed from class zwt.event.Event:
- getType, isCancelBubble, setCancelBubble, touch
Class Detail
zwt.ui.ListModelEvent(int_type, int_firstIndex, int_lastIndex)
Construct a list model event.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Integer} int_type
- The event type
- {Integer} int_firstIndex
- The index of the first element affected by this event
- {Integer} int_lastIndex
- The index of the last element affected by this event
Field Detail
<static>
{Integer}
zwt.ui.ListModelEvent.DELETE
Constant used to indicate an element deletion event
<static>
{Integer}
zwt.ui.ListModelEvent.INSERT
Constant used to indicate an element insertion event
<static>
{Integer}
zwt.ui.ListModelEvent.RESET
Constant used to indicate a model reset event
<static>
{Integer}
zwt.ui.ListModelEvent.UPDATE
Constant used to indicate an element update event
Method Detail
{Integer}
getFirstIndex()
Return the first index of the element affected by the event.
- Returns:
- The index of the first element
{Integer}
getLastIndex()
Return the last index of the element affected by the event.
- Returns:
- The index of the last element