Class zwt.ui.tree.TreeModelEvent
Extends
zwt.event.Event.
A tree model event is emitted when an event occurs on a tree model.
Defined in: TreeModelEvent.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.tree.TreeModelEvent(int_type, array_treePath)
Construct a tree model event.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.ui.tree.TreeModelEvent.COLLAPSE
Constant used to indicate a model reset event
|
<static> |
zwt.ui.tree.TreeModelEvent.DELETE
Constant used to indicate a node deletion event
|
<static> |
zwt.ui.tree.TreeModelEvent.EXPAND
Constant used to indicate a model reset event
|
<static> |
zwt.ui.tree.TreeModelEvent.INSERT
Constant used to indicate a node insertion event
|
<static> |
zwt.ui.tree.TreeModelEvent.RESET
Constant used to indicate a model reset event
|
<static> |
zwt.ui.tree.TreeModelEvent.UPDATE
Constant used to indicate a node update event
|
Method Attributes | Method Name and Description |
---|---|
Return the tree path of the node in the model impacted by the event.
|
- Methods borrowed from class zwt.event.Event:
- getType, isCancelBubble, setCancelBubble, touch
Class Detail
zwt.ui.tree.TreeModelEvent(int_type, array_treePath)
Construct a tree model event.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Integer} int_type
- The event type
- {Integer[]} array_treePath
- the tree path of the node in the model impacted by the event
- See:
- zwt.ui.tre.TreeModel
- zwt.ui.tree.TreeModelEventManager
Field Detail
<static>
{Integer}
zwt.ui.tree.TreeModelEvent.COLLAPSE
Constant used to indicate a model reset event
<static>
{Integer}
zwt.ui.tree.TreeModelEvent.DELETE
Constant used to indicate a node deletion event
<static>
{Integer}
zwt.ui.tree.TreeModelEvent.EXPAND
Constant used to indicate a model reset event
<static>
{Integer}
zwt.ui.tree.TreeModelEvent.INSERT
Constant used to indicate a node insertion event
<static>
{Integer}
zwt.ui.tree.TreeModelEvent.RESET
Constant used to indicate a model reset event
<static>
{Integer}
zwt.ui.tree.TreeModelEvent.UPDATE
Constant used to indicate a node update event
Method Detail
{Integer[]}
getTreePath()
Return the tree path of the node in the model impacted by the event.
- Returns:
- The tree path of the impacted node.