Class zwt.ui.ListSelectionModelEvent
Extends
zwt.event.Event.
A list selection model event is emitted when an event occurs on a list selection model.
Defined in: ListSelectionModelEvent.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.ListSelectionModelEvent(int_type, array_elements)
Construct a list selection model event.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.ui.ListSelectionModelEvent.DESELECT_ELEMENT
Constant used to indicate an element deselect event
|
<static> |
zwt.ui.ListSelectionModelEvent.SELECT_ELEMENT
Constant used to indicate an element select event
|
Method Attributes | Method Name and Description |
---|---|
getElement(int_index)
Return the index of the element in the data model at the specified index in the array of elements affected by the event.
|
|
Return the number of elements affected by the event.
|
- Methods borrowed from class zwt.event.Event:
- getType, isCancelBubble, setCancelBubble, touch
Class Detail
zwt.ui.ListSelectionModelEvent(int_type, array_elements)
Construct a list selection model event.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Integer} int_type
- The event type.
- {Integer[]} array_elements
- The array of elements (indices) in the model affected by the event.
Field Detail
<static>
{Integer}
zwt.ui.ListSelectionModelEvent.DESELECT_ELEMENT
Constant used to indicate an element deselect event
<static>
{Integer}
zwt.ui.ListSelectionModelEvent.SELECT_ELEMENT
Constant used to indicate an element select event
Method Detail
{Integer}
getElement(int_index)
Return the index of the element in the data model at the specified index in the array of elements affected by the event.
- Parameters:
- int_index
- Returns:
- The element in the event
{Integer}
getElementCount()
Return the number of elements affected by the event.
- Returns:
- The number of elements