Roo.util.Observable Roo.data.Tree
Package: | Roo.data |
Defined In: | Roo/data/Tree.js. |
Class: | Tree |
Subclasses: | Roo.tree.TreePanel |
Extends: | Roo.util.Observable |
Options | Defined By | |
---|---|---|
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable |
Method | Defined By | |
---|---|---|
new Roo.data.Tree
(Node root)
Create a new Roo.data.Tree
Create a new Roo.data.Tree
|
||
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
getNodeById
(String id)
:
Node
Gets a node in this tree by its id.
Gets a node in this tree by its id.
|
Roo.data.Tree | |
getRootNode
()
:
Node
Returns the root node for this tree.
Returns the root node for this tree.
|
Roo.data.Tree | |
Roo.util.Observable | ||
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
Roo.util.Observable | ||
setRootNode
(Node node)
:
Node
Sets the root node for this tree.
Sets the root node for this tree.
|
Roo.data.Tree | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
append (Tree tree, Node parent, Node node, Number index)
Fires when a new child node is appended to a node in this tree.
Fires when a new child node is appended to a node in this tree.
|
Roo.data.Tree | |
beforeappend (Tree tree, Node parent, Node node)
Fires before a new child is appended to a node in this tree, return false to cancel the append.
Fires before a new child is appended to a node in this tree, return false to cancel the append.
|
Roo.data.Tree | |
beforeinsert (Tree tree, Node parent, Node node, Node refNode)
Fires before a new child is inserted in a node in this tree, return false to cancel the insert.
Fires before a new child is inserted in a node in this tree, return false to cancel the insert.
|
Roo.data.Tree | |
beforemove (Tree tree, Node node, Node oldParent, Node newParent, Number index)
Fires before a node is moved to a new location in the tree.
Fires before a node is moved to a new location in the tree. Return false to cancel the move.
|
Roo.data.Tree | |
beforeremove (Tree tree, Node parent, Node node)
Fires before a child is removed from a node in this tree, return false to cancel the remove.
Fires before a child is removed from a node in this tree, return false to cancel the remove.
|
Roo.data.Tree | |
insert (Tree tree, Node parent, Node node, Node refNode)
Fires when a new child node is inserted in a node in this tree.
Fires when a new child node is inserted in a node in this tree.
|
Roo.data.Tree | |
move (Tree tree, Node node, Node oldParent, Node newParent, Number index)
Fires when a node is moved to a new location in the tree
Fires when a node is moved to a new location in the tree
|
Roo.data.Tree | |
remove (Tree tree, Node parent, Node node)
Fires when a child node is removed from a node in this tree.
Fires when a child node is removed from a node in this tree.
|
Roo.data.Tree |