| Defined In: | AsyncTreeNode.js |
| Class: | Ext.tree.AsyncTreeNode |
| Extends: | Ext.tree.TreeNode |
| 配置项 | 定义者 | |
|---|---|---|
|
loader
: TreeLoader
加载这个节点使用的TreeLoader(默认是加载该节点所在树的Tre...
加载这个节点使用的TreeLoader(默认是加载该节点所在树的TreeLoader)
|
AsyncTreeNode | |
|
text
: String
The text for this node
The text for this node
|
TreeNode | |
|
allowDrag
: Boolean
False to make this node undraggable...
False to make this node undraggable if #draggable = true (defaults to true)
|
TreeNode | |
|
disabled
: Boolean
true to start the node disabled
true to start the node disabled
|
TreeNode | |
|
cls
: String
A css class to be added to the node
A css class to be added to the node
|
TreeNode | |
|
href
: String
URL of the link used for the node (...
URL of the link used for the node (defaults to #)
|
TreeNode | |
|
qtip
: String
An Ext QuickTip for the node
An Ext QuickTip for the node
|
TreeNode | |
|
qtipCfg
: String
An Ext QuickTip config for the node...
An Ext QuickTip config for the node (used instead of qtip)
|
TreeNode | |
|
uiProvider
: Function
A UI class to use for this node (de...
A UI class to use for this node (defaults to Ext.tree.TreeNodeUI)
|
TreeNode | |
|
draggable
: Boolean
True to make this node draggable (d...
True to make this node draggable (defaults to false)
|
TreeNode | |
|
allowChildren
: Boolean
False to not allow this node to hav...
False to not allow this node to have child nodes (defaults to true)
|
TreeNode | |
|
pathSeparator
: String
分割节点Id的标识符(默认为"/")。
分割节点Id的标识符(默认为"/")。
|
Tree | |
|
leaf
: Boolean
true表示该节点是树叶节点没有子节点
true表示该节点是树叶节点没有子节点
|
Node | |
|
listeners
: Object
一个配置项对象,可方便在该对象初始化时便加入多个事件处理函数。 这应该...
一个配置项对象,可方便在该对象初始化时便加入多个事件处理函数。 这应该是一个如#addListener有效的配置项对象,即可一次过加入多个事件处理函数。
|
Observable | |
| 属性 | 定义者 | |
|---|---|---|
|
loader
: loader
节点使用的Loader(默认使用tree定义的loader)
节点使用的Loader(默认使用tree定义的loader)
|
AsyncTreeNode | |
|
text: this.
Read-only. The text for this node...
Read-only. The text for this node. To change it use setText().
|
TreeNode | |
|
disabled: this.
True if this node is disabled.
True if this node is disabled.
|
TreeNode | |
|
ui: this.
Read-only. The UI for this node
Read-only. The UI for this node
|
TreeNode | |
|
root: this.
该树的根节点
该树的根节点
|
Tree | |
|
attributes: this.
The attributes supplied for the n...
The attributes supplied for the node. You can use this property to access any custom attributes you supplied.
|
Node | |
|
id: this.
节点ID。
节点ID。
|
Node | |
|
childNodes: this.
此节点的所有子节点。
此节点的所有子节点。
|
Node | |
|
parentNode: this.
此节点的父节点.
此节点的父节点.
|
Node | |
|
firstChild: this.
The first direct child node of th...
The first direct child node of this node, or null if this node has no child nodes.
|
Node | |
|
lastChild: this.
The last direct child node of thi...
The last direct child node of this node, or null if this node has no child nodes.
|
Node | |
|
previousSibling: this.
The node immediately preceding th...
The node immediately preceding this node in the tree, or null if there is no sibling node.
|
Node | |
|
nextSibling: this.
The node immediately following th...
The node immediately following this node in the tree, or null if there is no sibling node.
|
Node | |
| 方法 | 定义者 | |
|---|---|---|
AsyncTreeNode
(
Object/String attributes
)
: Ext.tree.AsyncTreeNode
构造器
构造器
参数项:
|
AsyncTreeNode | |
|
isLoading
(
)
: Boolean
如果该节点正在被加载则返回true
如果该节点正在被加载则返回true
参数项:
|
AsyncTreeNode | |
|
isLoaded
(
)
: Boolean
如果该节点被加载过则返回true
如果该节点被加载过则返回true
参数项:
|
AsyncTreeNode | |
reload
(
Function callback
)
重新加载该节点
重新加载该节点
参数项:
|
AsyncTreeNode | |
TreeNode
(
Object/String attributes
)
: Ext.tree.TreeNode
构造器
构造器
参数项:
|
TreeNode | |
|
isExpanded
(
)
: Boolean
Returns true if this node is expa...
Returns true if this node is expanded
参数项:
|
TreeNode | |
|
getUI
(
)
: TreeNodeUI
Returns the UI object for this no...
Returns the UI object for this node.
node. Unless otherwise specified in the #uiProvider, this will be an instance
of Ext.tree.TreeNodeUI
参数项:
|
TreeNode | |
setText
(
String text
)
Sets the text for this node
Sets the text for this node
参数项:
|
TreeNode | |
|
select
(
)
Triggers selection of this node
Triggers selection of this node
参数项:
|
TreeNode | |
|
unselect
(
)
Triggers deselection of this node
Triggers deselection of this node
参数项:
|
TreeNode | |
|
isSelected
(
)
: Boolean
Returns true if this node is sele...
Returns true if this node is selected
参数项:
|
TreeNode | |
expand
(
Boolean deep,
Boolean anim,
Function callback
)
Expand this node.
expanding this...
Expand this node.
expanding this node completes (does not wait for deep expand to complete).
Called with 1 parameter, this node.
参数项:
|
TreeNode | |
collapse
(
Boolean deep,
Boolean anim
)
Collapse this node.
Collapse this node.
参数项:
|
TreeNode | |
|
toggle
(
)
Toggles expanded/collapsed state ...
Toggles expanded/collapsed state of the node
参数项:
|
TreeNode | |
|
ensureVisible
(
)
Ensures all parent nodes are expa...
Ensures all parent nodes are expanded, and if necessary, scrolls
the node into view.
参数项:
|
TreeNode | |
expandChildNodes
(
Boolean deep
)
Expand all child nodes
Expand all child nodes
参数项:
|
TreeNode | |
collapseChildNodes
(
Boolean deep
)
Collapse all child nodes
Collapse all child nodes
参数项:
|
TreeNode | |
|
disable
(
)
Disables this node
Disables this node
参数项:
|
TreeNode | |
|
enable
(
)
Enables this node
Enables this node
参数项:
|
TreeNode | |
Tree
(
[Node root]
)
: Ext.data.Tree
构造器
构造器
参数项:
|
Tree | |
|
getRootNode
(
)
: Node
为这棵树返回根节点。
为这棵树返回根节点。
参数项:
|
Tree | |
setRootNode
(
Node node
)
: Node
设置这棵树的根节点。
设置这棵树的根节点。
参数项:
|
Tree | |
getNodeById
(
String id
)
: Node
根据ID查找节点。
根据ID查找节点。
参数项:
|
Tree | |
Node
(
Object attributes
)
: Ext.data.Node
构造器
构造器
参数项:
|
Node | |
|
isLeaf
(
)
: Boolean
若节点是叶子节点的话返回true。
若节点是叶子节点的话返回true。
参数项:
|
Node | |
|
isLast
(
)
: Boolean
如果这个节点是其父节点下面的最后一个节点的话返回true。
如果这个节点是其父节点下面的最后一个节点的话返回true。
参数项:
|
Node | |
|
isFirst
(
)
: Boolean
如果这个节点是其父节点下面的第一个节点的话返回true。
如果这个节点是其父节点下面的第一个节点的话返回true。
参数项:
|
Node | |
appendChild
(
Node/Array node
)
: Node
在该节点里面最后的位置上插入节点,可以多个。
在该节点里面最后的位置上插入节点,可以多个。
参数项:
|
Node | |
removeChild
(
Node node
)
: Node
从该节点中移除一个子节点。
从该节点中移除一个子节点。
参数项:
|
Node | |
insertBefore
(
Node node,
Node refNode
)
: Node
在当前节点的子节点的集合中,位于第一个节点之前插入节点(第二个参数)。
在当前节点的子节点的集合中,位于第一个节点之前插入节点(第二个参数)。
参数项:
|
Node | |
|
remove
(
)
: Node
从父节点上移除子节点
从父节点上移除子节点
参数项:
|
Node | |
item
(
Number index
)
: Node
指定索引,在自节点中查找匹配索引的节点。
指定索引,在自节点中查找匹配索引的节点。
参数项:
|
Node | |
replaceChild
(
Node newChild,
Node oldChild
)
: Node
把下面的某个子节点替换为其他节点。
把下面的某个子节点替换为其他节点。
参数项:
|
Node | |
indexOf
(
Node node
)
: Number
返回某个子节点的索引。
返回某个子节点的索引。
参数项:
|
Node | |
|
getOwnerTree
(
)
: Tree
返回节点所在的树对象。
返回节点所在的树对象。
参数项:
|
Node | |
|
getDepth
(
)
: Number
返回该节点的深度(根节点的深度是0)
返回该节点的深度(根节点的深度是0)
参数项:
|
Node | |
getPath
(
[String attr]
)
: String
返回该节点的路径,以方便控制这个节点展开或选择。
返回该节点的路径,以方便控制这个节点展开或选择。
参数项:
|
Node | |
bubble
(
Function fn,
[Object scope]
)
从该节点开始逐层上报(Bubbles up)节点,上报过程中对每个...
从该节点开始逐层上报(Bubbles up)节点,上报过程中对每个节点执行指定的函数。
函数的作用域(this)既可是参数scope传入或是当前节点。函数的参数可经由args指定或当前节点,
如果函数在某一个层次上返回false,上升将会停止。
参数项:
|
Node | |
cascade
(
Function fn,
[Object scope]
)
从该节点开始逐层下报(Bubbles up)节点,上报过程中对每个...
从该节点开始逐层下报(Bubbles up)节点,上报过程中对每个节点执行指定的函数。
函数的作用域(this)既可是参数scope传入或是当前节点。函数的参数可经由args指定或当前节点,
如果函数在某一个层次上返回false,下升到那个分支的位置将会停止。
参数项:
|
Node | |
eachChild
(
Function fn,
[Object scope],
[Array args]
)
遍历该节点下的子节点,枚举过程中对每个节点执行指定的函数。
函数...
遍历该节点下的子节点,枚举过程中对每个节点执行指定的函数。
函数的作用域(this)既可是参数scope传入或是当前节点。函数的参数可经由args指定或当前节点,
如果函数走到某处地方返回false,遍历将会停止。
参数项:
|
Node | |
findChild
(
String attribute,
Mixed value
)
: Node
根据送入的值,如果子节点身上指定属性的值是送入的值,就返回那个节点。
根据送入的值,如果子节点身上指定属性的值是送入的值,就返回那个节点。
参数项:
|
Node | |
findChildBy
(
Function fn,
[Object scope]
)
: Node
通过自定义的函数查找子节点,找到第一个合适的就返回。要求的条件是函...
通过自定义的函数查找子节点,找到第一个合适的就返回。要求的条件是函数返回true。
参数项:
|
Node | |
sort
(
Function fn,
[Object scope]
)
用自定义的排序函数对节点的子函数进行排序。
用自定义的排序函数对节点的子函数进行排序。
参数项:
|
Node | |
contains
(
Node node
)
: Boolean
返回true表示为该节点是送入节点的祖先节点(无论在哪那一级的)
返回true表示为该节点是送入节点的祖先节点(无论在哪那一级的)
参数项:
|
Node | |
isAncestor
(
Node node
)
: Boolean
返回true表示为送入的节点是该的祖先节点(无论在哪那一级的)
返回true表示为送入的节点是该的祖先节点(无论在哪那一级的)
参数项:
|
Node | |
fireEvent
(
String eventName,
Object... args
)
: Boolean
触发指定的事件,并将欲执行的处理函数的参数传入。(应该至少要有事件的...
触发指定的事件,并将欲执行的处理函数的参数传入。(应该至少要有事件的名称)
参数项:
|
Observable | |
addListener
(
String eventName,
Function handler,
[Object scope],
[Object options]
)
为该组件加入事件处理函数(event handler)
sc...
为该组件加入事件处理函数(event handler)
处理函数执行时所在的作用域。处理函数“this”的上下文。 触发事件后开始执行处理函数的延时时间(invocation:the act of making a particular function start),单位:毫秒 true代表为下次事件触发加入一个要处理的处理函数,然后再移除本身。 不同配搭方式的选项 一次调用加入上多个处理函数(handlers) 或者是以简写的方式书写,前提是只允许同一个的作用域对象传入到所有的处理函数中:
参数项:
|
Observable | |
removeListener
(
String eventName,
Function handler,
[Object scope]
)
移除侦听器
移除侦听器
参数项:
|
Observable | |
|
purgeListeners
(
)
从这个对象身上移除所有的侦听器
从这个对象身上移除所有的侦听器
参数项:
|
Observable | |
addEvents
(
Object object
)
定义观察者的事件。
定义观察者的事件。
参数项:
|
Observable | |
hasListener
(
String eventName
)
: Boolean
查询该对象是否有指定事件的侦听器
查询该对象是否有指定事件的侦听器
参数项:
|
Observable | |
|
suspendEvents
(
)
暂停触发所有的事件(参阅#resumeEvents)
暂停触发所有的事件(参阅#resumeEvents)
参数项:
|
Observable | |
|
resumeEvents
(
)
重新触发事件(参阅{@link #suspendEvents})
重新触发事件(参阅{@link #suspendEvents})
参数项:
|
Observable | |
on
(
String eventName,
[Object scope],
Function handler,
[Object options]
)
为该元素添加事件处理函数(event handler),addLis...
为该元素添加事件处理函数(event handler),addListener的简写方式 @param {String} eventName 侦听事件的类型 @param {Object} scope (可选的) 执行处理函数的作用域 @param {Function} handler 事件涉及的方法 @param {Object} options (可选的)
参数项:
|
Observable | |
un
(
String eventName,
Function handler,
[Object scope]
)
移除侦听器 @param {String} eventName ...
移除侦听器 @param {String} eventName 侦听事件的类型 @param {Function} handler 事件涉及的方法 @param {Object} scope (可选的)处理函数的作用域
参数项:
|
Observable | |
capture
(
Observable o,
Function fn,
[Object scope]
)
开始捕捉特定的观察者。 在事件触发之前,所有的事件会以“事件名称+标...
开始捕捉特定的观察者。 在事件触发之前,所有的事件会以“事件名称+标准签名”的形式传入到函数(传入的参数是function类型)。 如果传入的函数执行后返回false,则接下的事件将不会触发。 @param {Observable} o 要捕捉的观察者 @param {Function} fn 要调用的函数 @param {Object} scope (可选的)函数作用域
参数项:
|
Observable | |
releaseCapture
(
Observable o
)
从Observable身上移除所有已加入的捕捉captures。 @...
从Observable身上移除所有已加入的捕捉captures。 @param {Observable} o 要释放的观察者
参数项:
|
Observable | |
| 事件 | 定义者 | |
|---|---|---|
beforeload
(
Node this
)
节点加载之前触发,返回false则取消。
节点加载之前触发,返回false则取消。
参数项:
|
AsyncTreeNode | |
load
(
Node this
)
此节点加载完毕后触发
此节点加载完毕后触发
参数项:
|
AsyncTreeNode | |
textchange
(
Node this,
String text,
String oldText
)
Fires when the text for this nod...
Fires when the text for this node is changed
参数项:
|
TreeNode | |
beforeexpand
(
Node this,
Boolean deep,
Boolean anim
)
Fires before this node is expand...
Fires before this node is expanded, return false to cancel.
参数项:
|
TreeNode | |
beforecollapse
(
Node this,
Boolean deep,
Boolean anim
)
Fires before this node is collap...
Fires before this node is collapsed, return false to cancel.
参数项:
|
TreeNode | |
expand
(
Node this
)
Fires when this node is expanded
Fires when this node is expanded
参数项:
|
TreeNode | |
disabledchange
(
Node this,
Boolean disabled
)
Fires when the disabled status o...
Fires when the disabled status of this node changes
参数项:
|
TreeNode | |
collapse
(
Node this
)
Fires when this node is collapsed
Fires when this node is collapsed
参数项:
|
TreeNode | |
beforeclick
(
Node this,
Ext.EventObject e
)
Fires before click processing. R...
Fires before click processing. Return false to cancel the default action.
参数项:
|
TreeNode | |
click
(
Node this,
Ext.EventObject e
)
Fires when this node is clicked
Fires when this node is clicked
参数项:
|
TreeNode | |
checkchange
(
Node this,
Boolean checked
)
Fires when a node with a checkbo...
Fires when a node with a checkbox's checked property changes
参数项:
|
TreeNode | |
dblclick
(
Node this,
Ext.EventObject e
)
Fires when this node is double c...
Fires when this node is double clicked
参数项:
|
TreeNode | |
contextmenu
(
Node this,
Ext.EventObject e
)
Fires when this node is right cl...
Fires when this node is right clicked
参数项:
|
TreeNode | |
beforechildrenrendered
(
Node this
)
Fires right before the child nod...
Fires right before the child nodes for this node are rendered
参数项:
|
TreeNode | |
append
(
Tree tree,
Node this,
Node node,
Number index
)
Fires when a new child node is a...
Fires when a new child node is appended
参数项:
|
Node | |
remove
(
Tree tree,
Node this,
Node node
)
Fires when a child node is remov...
Fires when a child node is removed
参数项:
|
Node | |
move
(
Tree tree,
Node this,
Node oldParent,
Node newParent,
Number index
)
Fires when this node is moved to...
Fires when this node is moved to a new location in the tree
参数项:
|
Node | |
insert
(
Tree tree,
Node this,
Node node,
Node refNode
)
Fires when a new child node is i...
Fires when a new child node is inserted.
参数项:
|
Node | |
beforeappend
(
Tree tree,
Node this,
Node node
)
Fires before a new child is appe...
Fires before a new child is appended, return false to cancel the append.
参数项:
|
Node | |
beforeremove
(
Tree tree,
Node this,
Node node
)
Fires before a child is removed,...
Fires before a child is removed, return false to cancel the remove.
参数项:
|
Node | |
beforemove
(
Tree tree,
Node this,
Node oldParent,
Node newParent,
Number index
)
Fires before this node is moved ...
Fires before this node is moved to a new location in the tree. Return false to cancel the move.
参数项:
|
Node | |
beforeinsert
(
Tree tree,
Node this,
Node node,
Node refNode
)
Fires before a new child is inse...
Fires before a new child is inserted, return false to cancel the insert.
参数项:
|
Node | |