Roo.util.Observable Roo.data.Node Roo.tree.TreeNode Roo.tree.AsyncTreeNode
Package: | Roo.tree |
Defined In: | Roo/tree/AsyncTreeNode.js. |
Class: | AsyncTreeNode |
Extends: | Roo.tree.TreeNode |
Options | Defined By | |
---|---|---|
allowDrag : Boolean
false to make this node undraggable if DD is on (defaults to true)
false to make this node undraggable if DD is on (defaults to true)
|
Roo.tree.TreeNode | |
allowDrop : Boolean
false if this node cannot be drop on
false if this node cannot be drop on
|
Roo.tree.TreeNode | |
checked : Boolean
True to render a checked checkbox for this node, false to render an unchecked checkbox
(defaults to undefined with no checkbox rendered)
True to render a checked checkbox for this node, false to render an unchecked checkbox
(defaults to undefined with no checkbox rendered) |
Roo.tree.TreeNode | |
cls : String
A css class to be added to the node
A css class to be added to the node
|
Roo.tree.TreeNode | |
disabled : Boolean
true to start the node disabled
true to start the node disabled
|
Roo.tree.TreeNode | |
expanded : Boolean
true to start the node expanded
true to start the node expanded
|
Roo.tree.TreeNode | |
href : String
URL of the link used for the node (defaults to #)
URL of the link used for the node (defaults to #)
|
Roo.tree.TreeNode | |
hrefTarget : String
target frame for the link
target frame for the link
|
Roo.tree.TreeNode | |
icon : String
The path to an icon for the node.
The path to an icon for the node. The preferred way to do this
|
Roo.tree.TreeNode | |
iconCls : String
A css class to be added to the nodes icon element for applying css background images
A css class to be added to the nodes icon element for applying css background images
|
Roo.tree.TreeNode | |
id : String
The id for this node.
The id for this node. If one is not specified, one is generated.
|
Roo.data.Node | |
leaf : Boolean
true if this node is a leaf and does not have children
true if this node is a leaf and does not have children
|
Roo.data.Node | |
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 | |
loader : TreeLoader
A TreeLoader to be used by this node (defaults to the loader defined on the tree)
A TreeLoader to be used by this node (defaults to the loader defined on the tree)
|
Roo.tree.AsyncTreeNode | |
qtip : String
An Ext QuickTip for the node
An Ext QuickTip for the node
|
Roo.tree.TreeNode | |
qtipCfg : String
An Ext QuickTip config for the node (used instead of qtip)
An Ext QuickTip config for the node (used instead of qtip)
|
Roo.tree.TreeNode | |
singleClickExpand : Boolean
True for single click expand on this node
True for single click expand on this node
|
Roo.tree.TreeNode | |
text : String
The text for this node
The text for this node
|
Roo.tree.TreeNode | |
uiProvider : Function
A UI class to use for this node (defaults to Roo.tree.TreeNodeUI)
A UI class to use for this node (defaults to Roo.tree.TreeNodeUI)
|
Roo.tree.TreeNode |
Method | Defined By | |
---|---|---|
new Roo.tree.AsyncTreeNode
(Object/String attributes)
Create a new Roo.tree.AsyncTreeNode
Create a new Roo.tree.AsyncTreeNode
|
||
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 | |
appendChild
(Node/Array node)
:
Node
Insert node(s) as the last child node of this node.
Insert node(s) as the last child node of this node.
|
Roo.data.Node | |
Bubbles up the tree from this node, calling the specified function with each node.
Bubbles up the tree from this node, calling the specified function with each node. The scope (this) of
function call will be the scope provided or the current node. The arguments to the function will be the args provided or the current node. If the function returns false at any point, the bubble is stopped. |
Roo.data.Node | |
Cascades down the tree from this node, calling the specified function with each node.
Cascades down the tree from this node, calling the specified function with each node. The scope (this) of
function call will be the scope provided or the current node. The arguments to the function will be the args provided or the current node. If the function returns false at any point, the cascade is stopped on that branch. |
Roo.data.Node | |
Roo.tree.TreeNode | ||
collapseChildNodes
(Boolean deep)
Collapse all child nodes
Collapse all child nodes
|
Roo.tree.TreeNode | |
contains
(Node node)
:
Boolean
Returns true if this node is an ancestor (at any point) of the passed node.
Returns true if this node is an ancestor (at any point) of the passed node.
|
Roo.data.Node | |
disable
()
Disables this node
Disables this node
|
Roo.tree.TreeNode | |
Interates the child nodes of this node, calling the specified function with each node.
Interates the child nodes of this node, calling the specified function with each node. The scope (this) of
function call will be the scope provided or the current node. The arguments to the function will be the args provided or the current node. If the function returns false at any point, the iteration stops. |
Roo.data.Node | |
enable
()
Enables this node
Enables this node
|
Roo.tree.TreeNode | |
ensureVisible
()
Ensures all parent nodes are expanded
Ensures all parent nodes are expanded
|
Roo.tree.TreeNode | |
Expand this node.
Expand this node.
|
Roo.tree.TreeNode | |
expandChildNodes
(Boolean deep)
Expand all child nodes
Expand all child nodes
|
Roo.tree.TreeNode | |
findChild
(String attribute, Mixed value)
:
Node
Finds the first child that has the attribute with the specified value.
Finds the first child that has the attribute with the specified value.
|
Roo.data.Node | |
Roo.data.Node | ||
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
getDepth
()
:
Number
Returns depth of this node (the root node has a depth of 0)
Returns depth of this node (the root node has a depth of 0)
|
Roo.data.Node | |
getOwnerTree
()
:
Tree
Returns the tree this node is in.
Returns the tree this node is in.
|
Roo.data.Node | |
Roo.data.Node | ||
getUI
()
:
TreeNodeUI
Returns the UI object for this node
Returns the UI object for this node
|
Roo.tree.TreeNode | |
Roo.util.Observable | ||
indexOf
(Node node)
:
Number
Returns the index of a child node
Returns the index of a child node
|
Roo.data.Node | |
insertBefore
(Node node, Node refNode)
:
Node
Inserts the first node before the second node in this nodes childNodes collection.
Inserts the first node before the second node in this nodes childNodes collection.
|
Roo.data.Node | |
isAncestor
(Node node)
:
Boolean
Returns true if the passed node is an ancestor (at any point) of this node.
Returns true if the passed node is an ancestor (at any point) of this node.
|
Roo.data.Node | |
isExpanded
()
:
Boolean
Returns true if this node is expanded
Returns true if this node is expanded
|
Roo.tree.TreeNode | |
isFirst
()
:
Boolean
Returns true if this node is the first child of its parent
Returns true if this node is the first child of its parent
|
Roo.data.Node | |
isLast
()
:
Boolean
Returns true if this node is the last child of its parent
Returns true if this node is the last child of its parent
|
Roo.data.Node | |
isLeaf
()
:
Boolean
Returns true if this node is a leaf
Returns true if this node is a leaf
|
Roo.data.Node | |
isLoaded
()
:
Boolean
Returns true if this node has been loaded
Returns true if this node has been loaded
|
Roo.tree.AsyncTreeNode | |
isLoading
()
:
Boolean
Returns true if this node is currently loading
Returns true if this node is currently loading
|
Roo.tree.AsyncTreeNode | |
isSelected
()
:
Boolean
Returns true if this node is selected
Returns true if this node is selected
|
Roo.tree.TreeNode | |
item
(Number index)
:
Node
Returns the child node at the specified index.
Returns the child node at the specified index.
|
Roo.data.Node | |
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 | |
reload
(Function callback)
Trigger a reload for this node
Trigger a reload for this node
|
Roo.tree.AsyncTreeNode | |
removeChild
(Node node)
:
Node
Removes a child node from this node.
Removes a child node from this node.
|
Roo.data.Node | |
Roo.util.Observable | ||
replaceChild
(Node newChild, Node oldChild)
:
Node
Replaces one child node in this node with another.
Replaces one child node in this node with another.
|
Roo.data.Node | |
select
()
Triggers selection of this node
Triggers selection of this node
|
Roo.tree.TreeNode | |
setText
(String text)
Sets the text for this node
Sets the text for this node
|
Roo.tree.TreeNode | |
Roo.data.Node | ||
toggle
()
Toggles expanded/collapsed state of the node
Toggles expanded/collapsed state of the node
|
Roo.tree.TreeNode | |
Roo.util.Observable | ||
unselect
()
Triggers deselection of this node
Triggers deselection of this node
|
Roo.tree.TreeNode |
Event | Defined By | |
---|---|---|
append (Tree tree, Node this, Node node, Number index)
Fires when a new child node is appended
Fires when a new child node is appended
|
Roo.data.Node | |
beforeappend (Tree tree, Node this, Node node)
Fires before a new child is appended, return false to cancel the append.
Fires before a new child is appended, return false to cancel the append.
|
Roo.data.Node | |
beforechildrenrendered (Node this)
Fires right before the child nodes for this node are rendered
Fires right before the child nodes for this node are rendered
|
Roo.tree.TreeNode | |
beforeclick (Node this, Roo.EventObject e)
Fires before click processing.
Fires before click processing. Return false to cancel the default action.
|
Roo.tree.TreeNode | |
Roo.tree.TreeNode | ||
Roo.tree.TreeNode | ||
beforeinsert (Tree tree, Node this, Node node, Node refNode)
Fires before a new child is inserted, return false to cancel the insert.
Fires before a new child is inserted, return false to cancel the insert.
|
Roo.data.Node | |
beforeload (Node this)
Fires before this node is loaded, return false to cancel
Fires before this node is loaded, return false to cancel
|
Roo.tree.AsyncTreeNode | |
beforemove (Tree tree, Node this, Node oldParent, Node newParent, Number index)
Fires before this node is moved to a new location in the tree.
Fires before this node is moved to a new location in the tree. Return false to cancel the move.
|
Roo.data.Node | |
beforeremove (Tree tree, Node this, Node node)
Fires before a child is removed, return false to cancel the remove.
Fires before a child is removed, return false to cancel the remove.
|
Roo.data.Node | |
checkchange (Node this, Boolean checked)
Fires when a node with a checkbox's checked property changes
Fires when a node with a checkbox's checked property changes
|
Roo.tree.TreeNode | |
click (Node this, Roo.EventObject e)
Fires when this node is clicked
Fires when this node is clicked
|
Roo.tree.TreeNode | |
collapse (Node this)
Fires when this node is collapsed
Fires when this node is collapsed
|
Roo.tree.TreeNode | |
contextmenu (Node this, Roo.EventObject e)
Fires when this node is right clicked
Fires when this node is right clicked
|
Roo.tree.TreeNode | |
dblclick (Node this, Roo.EventObject e)
Fires when this node is double clicked
Fires when this node is double clicked
|
Roo.tree.TreeNode | |
disabledchange (Node this, Boolean disabled)
Fires when the disabled status of this node changes
Fires when the disabled status of this node changes
|
Roo.tree.TreeNode | |
expand (Node this)
Fires when this node is expanded
Fires when this node is expanded
|
Roo.tree.TreeNode | |
insert (Tree tree, Node this, Node node, Node refNode)
Fires when a new child node is inserted.
Fires when a new child node is inserted.
|
Roo.data.Node | |
load (Node this)
Fires when this node is loaded
Fires when this node is loaded
|
Roo.tree.AsyncTreeNode | |
move (Tree tree, Node this, Node oldParent, Node newParent, Number index)
Fires when this node is moved to a new location in the tree
Fires when this node is moved to a new location in the tree
|
Roo.data.Node | |
remove (Tree tree, Node this, Node node)
Fires when a child node is removed
Fires when a child node is removed
|
Roo.data.Node | |
Roo.tree.TreeNode |