Ext.data.NodeInterface

Hierarchy

Ext.Base
Ext.data.NodeInterface

Requires

Files

本类是一个应用到Model的原型上的方法集合,使其具有Node API。这意味着树状模型 具有所有与树相关的方法。通常情况下, 开发者不会直接使用本类。为了保存树的状态和UI, 本类会在模型上创建一些额外的字段(如果它们不存在)。 这些字段记录为config选项。

Defined By

Config options

Ext.data.NodeInterface
: Boolean

设置为false禁止拖动本节点

Defaults to: true

Ext.data.NodeInterface
: Boolean

设置为false禁止(将其它节点)拖到本节点。

Defaults to: true

Ext.data.NodeInterface
: Boolean

设置为true或者false,在节点旁显示一个复选框。

Defaults to: null

Ext.data.NodeInterface
children : Ext.data.NodeInterface[]

子节点数组。

子节点数组。

Ext.data.NodeInterface
cls : String

应用于本节点的CSS类。

应用于本节点的CSS类。

Ext.data.NodeInterface
depth : Number

本节点的父节点的个数。根节点depth为0,它的子节点depth为1,依此类推……

本节点的父节点的个数。根节点depth为0,它的子节点depth为1,依此类推……

Ext.data.NodeInterface
: Boolean

设置为true允许展开和折叠当前节点。

Defaults to: false

Ext.data.NodeInterface
: Boolean

True如果节点是展开的。

Defaults to: false

Ext.data.NodeInterface
href : String

链接URL

链接URL

Ext.data.NodeInterface
hrefTarget : String

链接对象。只有指定href之后可用。

链接对象。只有指定href之后可用。

Ext.data.NodeInterface
icon : String

本节点的图标的URL

本节点的图标的URL

Ext.data.NodeInterface
iconCls : String

应用于本节点的图标的CSS类。

应用于本节点的图标的CSS类。

Ext.data.NodeInterface
: Number

节点在父节点中的位置(译者注: 原文有错。应该是,节点在兄弟节点中的位置)。 当本节点的父节点有4个子节点并且本节点是第三个, index就是2。

Ext.data.NodeInterface
isFirst : Boolean

True如果本节点是第一个节点。

True如果本节点是第一个节点。

Ext.data.NodeInterface
isLast : Boolean

True如果本节点是最后的节点。

True如果本节点是最后的节点。

Ext.data.NodeInterface
: Boolean

设置为true表明本节点没有子节点。 不会为本节点渲染展开图标或箭头。

Defaults to: false

Ext.data.NodeInterface
: Boolean

True如果节点加载完成

Defaults to: false

Ext.data.NodeInterface
: Boolean

True如果节点正在加载。

Defaults to: false

Ext.data.NodeInterface
parentId : String

父节点ID。

父节点ID。

Ext.data.NodeInterface
qtip : String

本节点上显示的Tooltip文本。

本节点上显示的Tooltip文本。

Ext.data.NodeInterface
qtitle : String

Tooltip标题。

Tooltip标题。

Ext.data.NodeInterface
root : Boolean

True如果本节点是根节点。

True如果本节点是根节点。

Ext.data.NodeInterface
text : String

本节点标签上的文本。

本节点标签上的文本。

Defined By

Properties

扩展事件

Defaults to: []

Ext.data.NodeInterface
childNodes : Object

本节点的子节点数组。如果本节点没有子节点,数组为空。

本节点的子节点数组。如果本节点没有子节点,数组为空。

Ext.data.NodeInterface
firstChild : Object

本节点的第一个子节点的引用。如果本节点没有子节点,返回null。

本节点的第一个子节点的引用。如果本节点没有子节点,返回null。

Ext.data.NodeInterface
: Boolean

true在本类和其子类中标记一个对象为一个实例化的Node节点。

Defaults to: true

Ext.data.NodeInterface
lastChild : Object

本节点的最后子节点的引用。如果本节点没有子节点,返回null。

本节点的最后子节点的引用。如果本节点没有子节点,返回null。

Ext.data.NodeInterface
nextSibling : Object

本节点的下一个兄弟节点的引用。如果本节点没有下一个兄弟节点,返回null。

本节点的下一个兄弟节点的引用。如果本节点没有下一个兄弟节点,返回null。

Ext.data.NodeInterface
parentNode : Object

本节点的父节点的引用。如果本节点是根节点,返回null。

本节点的父节点的引用。如果本节点是根节点,返回null。

Ext.data.NodeInterface
previousSibling : Object

本节点的上一个兄弟节点的引用。如果本节点没有上一个兄弟节点,返回null。

本节点的上一个兄弟节点的引用。如果本节点没有上一个兄弟节点,返回null。

本身 获取当前类的引用,此对象被实例化。不同于 statics, this.self是依赖范围,它意味着要使用动态继承。 ...

本身

获取当前类的引用,此对象被实例化。不同于 statics, this.self是依赖范围,它意味着要使用动态继承。 参见 statics 详细对比

Ext.define('My.Cat', {
    statics: {
        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'
    },

    constructor: function() {
        alert(this.self.speciesName); // 依赖 'this'
    },

    clone: function() {
        return new this.self();
    }
});


Ext.define('My.SnowLeopard', {
    extend: 'My.Cat',
    statics: {
        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'
    }
});

var cat = new My.Cat();                     // alerts 'Cat' 猫
var snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard' 雪豹

var clone = snowLeopard.clone();
alert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'

Methods

Defined By

Instance Methods

( Object config )private

添加配置

Parameters

Parameters

( Object name, Object member )private

Parameters

( Object xtype )private

添加 Xtype

Parameters

插入一个或多个节点作为本节点的最后子节点。

如果插入的节点原先是另外一个父节点的子节点,它将会先从那个父节点移除。

Parameters

Returns

  • Ext.data.NodeInterface

    如果添加的是单个节点,返回这个节点,如果添加的是节点数组,返回null

Ext.data.NodeInterface
( Function fn, [Object scope], [Array args] )
沿着树从本节点向上起泡,对每一个节点调用指定的函数。函数的参数 是args或者本节点。如果函数在任何一个地方返回false, 起泡结束。 ...

沿着树从本节点向上起泡,对每一个节点调用指定的函数。函数的参数 是args或者本节点。如果函数在任何一个地方返回false, 起泡结束。

Parameters

  • fn : Function

    待调用的函数

  • scope : Object (optional)

    函数中this引用的作用域,默认为当前节点。

  • args : Array (optional)

    函数的参数。默认为当前节点。

( Array/Arguments ) : Objectdeprecatedprotected
调用原来的方法,这是以前的override重写 Ext.define('My.Cat', { constructor: function() { alert("I'm a cat!"); } }); ...

调用原来的方法,这是以前的override重写

Ext.define('My.Cat', {
    constructor: function() {
        alert("I'm a cat!");
    }
});

My.Cat.override({
    constructor: function() {
        alert("I'm going to be a cat!");

        this.callOverridden();

        alert("Meeeeoooowwww");
    }
});

var kitty = new My.Cat(); // alerts "I'm going to be a cat!"
                          // alerts "I'm a cat!"
                          // alerts "Meeeeoooowwww"

This method has been deprecated since 4.1

版本 使用 callParent 代替.

Parameters

  • : Array/Arguments

    参数的参数,数组或'参数'对象 来自当前方法,例如: this.callOverridden(arguments)

Returns

  • Object

    返回调用重写方法的结果。

( Array/Arguments args ) : Objectprotected

所谓的"parent"方法是指当前的方法。 这是以前的方法派生或重写(参见 Ext.define)。

 Ext.define('My.Base', {
     constructor: function (x) {
         this.x = x;
     },

     statics: {
         method: function (x) {
             return x;
         }
     }
 });

 Ext.define('My.Derived', {
     extend: 'My.Base',

     constructor: function () {
         this.callParent([21]);
     }
 });

 var obj = new My.Derived();

 alert(obj.x);  // alerts 21

这可以用来重写如下:

 Ext.define('My.DerivedOverride', {
     override: 'My.Derived',

     constructor: function (x) {
         this.callParent([x*2]); // 调用原来的My.Derived构造
     }
 });

 var obj = new My.Derived();

 alert(obj.x);  // 现在提示 42

This also works with static methods.

 Ext.define('My.Derived2', {
     extend: 'My.Base',

     statics: {
         method: function (x) {
             return this.callParent([x*2]); // 调用 My.Base.method
         }
     }
 });

 alert(My.Base.method(10);     // alerts 10
 alert(My.Derived2.method(10); // alerts 20

然后,它也可以重写静态方法。

 Ext.define('My.Derived2Override', {
     override: 'My.Derived2',

     statics: {
         method: function (x) {
             return this.callParent([x*2]); // 调用 My.Derived2.method
         }
     }
 });

 alert(My.Derived2.method(10); // 现在提示 40

Parameters

  • args : Array/Arguments

    这个参数, 通过当前方法得到数组或者 arguments 对象, 例如: this.callParent(arguments)

Returns

  • Object

    返回调用父类的方法的结果。

Ext.data.NodeInterface
( Function fn, [Object scope], [Array args] )
从本节点开始沿着树往下在每个节点上调用指定函数。函数的参数 是args或者本节点。如果函数在任何一个地方返回false, 级联操作在那个分支上停止。 ...

从本节点开始沿着树往下在每个节点上调用指定函数。函数的参数 是args或者本节点。如果函数在任何一个地方返回false, 级联操作在那个分支上停止。

Parameters

  • fn : Function

    待调用的函数

  • scope : Object (optional)

    函数中this引用的作用域,默认为当前节点。

  • args : Array (optional)

    函数的参数。默认为当前节点。

Ext.data.NodeInterface
( [Boolean destroy] )private

清空本节点(译者注: 将本节点变为孤立节点)。

Parameters

  • destroy : Boolean (optional)

    True销毁本节点。

    Defaults to: false

Ext.data.NodeInterface
( [Boolean recursive], [Function callback], [Object scope] )

折叠本节点。

Parameters

  • recursive : Boolean (optional)

    True递归折叠所有子节点。

    Defaults to: false

  • callback : Function (optional)

    折叠完成时调用的回调函数。

  • scope : Object (optional)

    回调函数执行的作用域。

Ext.data.NodeInterface
( [Function recursive], [Function callback], [Object scope] )

折叠本节点的所有子节点。

Parameters

  • recursive : Function (optional)

    True递归折叠所有子节点。

    Defaults to: false

  • callback : Function (optional)

    所有子节点折叠完成时调用的回调函数。

  • scope : Object (optional)

    回调函数执行的作用域。

Ext.data.NodeInterface
( Ext.data.NodeInterface node ) : Boolean

如果本节点是node节点的祖先节点,返回true

Parameters

Returns

Ext.data.NodeInterface
( [String id], [Boolean deep] ) : Ext.data.NodeInterface

创建本节点的副本。

Parameters

  • id : String (optional)

    一个新的id, 默认为本节点的id。

  • deep : Boolean (optional)

    True递归复制所有子节点到新的Node节点。 False只复制当前节点,不复制子节点。

    Defaults to: false

Returns

Ext.data.NodeInterface
( Object node ) : Boolean

确保传递的对象(参数)是Record的实例并且装饰了NodeInterface的

Parameters

Returns

Ext.data.NodeInterface
( Object silent )

销毁节点。

Parameters

Ext.data.NodeInterface
( Function fn, [Object scope], [Array args] )
遍历本节点的子节点,对每一个节点调用指定的函数。函数参数 是args或者当前节点。如果函数在任何地方返回false, 遍历停止。 ...

遍历本节点的子节点,对每一个节点调用指定的函数。函数参数 是args或者当前节点。如果函数在任何地方返回false, 遍历停止。

Parameters

  • fn : Function

    待调用的函数

  • scope : Object (optional)

    函数中this引用的作用域,默认为遍历过程中的当前节点。

  • args : Array (optional)

    函数的参数。默认为当前节点。

Ext.data.NodeInterface
( [Boolean recursive], [Function callback], [Object scope] )

展开本节点。

Parameters

  • recursive : Boolean (optional)

    True递归展开所有子节点

    Defaults to: false

  • callback : Function (optional)

    展开完毕后执行的回调函数

  • scope : Object (optional)

    回调函数执行的作用域

Ext.data.NodeInterface
( [Boolean recursive], [Function callback], [Object scope] )

展开本节点所有的子节点。

Parameters

  • recursive : Boolean (optional)

    True递归展开所有子节点。

    Defaults to: false

  • callback : Function (optional)

    所有子节点展开完成时调用的回调函数。

  • scope : Object (optional)

    回调函数执行的作用域。

( Object config )private

拓展

Parameters

Ext.data.NodeInterface
( String attribute, Object value, [Boolean deep] ) : Ext.data.NodeInterface

查找属性名为attribute值为指定的value的第一个子节点。

Parameters

  • attribute : String

    属性名

  • value : Object

    属性值

  • deep : Boolean (optional)

    True查找所有的子节点,包括子节点的子节点。

    Defaults to: false

Returns

Ext.data.NodeInterface
( Function fn, [Object scope], [Boolean deep] ) : Ext.data.NodeInterface

通过自定义函数查找匹配的第一个子节点。

Parameters

  • fn : Function

    函数,如果节点匹配其规则,返回true

  • scope : Object (optional)

    函数中this引用的作用域,默认为正在检测的节点。

  • deep : Boolean (optional)

    True查找所有的子节点,包括子节点的子节点。

    Defaults to: false

Returns

Ext.data.NodeInterface
( ) : Objectprivate

Returns the bubble target for this node

Returns

Ext.data.NodeInterface
( Number index ) : Ext.data.NodeInterface

返回指定位置的子节点。

Parameters

Returns

( Object name )private

得到配置项

Parameters

Ext.data.NodeInterface
( ) : Number

返回本节点的深度(根节点的深度为0)

Returns

得到初始化配置项

Parameters

Ext.data.NodeInterface
( [String field], [String separator] ) : String

获取当前节点相对于根节点的层级路径。

Parameters

  • field : String (optional)

    构建路径的字段。默认为模型的idProperty.

  • separator : String (optional)

    分隔符

    Defaults to: "/"

Returns

Ext.data.NodeInterface
( ) : Boolean

如果节点有子节点返回true,否则返回false

Returns

( Object config )private

根据名称判断配置项是否存在

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface node ) : Number

返回一个子节点的索引。

Parameters

Returns

  • Number

    子节点的索引或者-1,如果这个节点不是本节点的子节点

Ext.data.NodeInterface
( String id ) : Number

Returns the index of a child node that matches the id

Parameters

  • id : String

    The id of the node to find

Returns

  • Number

    The index of the node or -1 if it was not found

( Object config ) : Objectprotected
这个类的初始化配置。典型例子: Ext.define('My.awesome.Class', { // 这是默认配置 config: { name: 'Awesome', isAwes...

这个类的初始化配置。典型例子:

Ext.define('My.awesome.Class', {
    // 这是默认配置
    config: {
        name: 'Awesome',
        isAwesome: true
    },

    constructor: function(config) {
        this.initConfig(config);
    }
});

var awesome = new My.awesome.Class({
    name: 'Super Awesome'
});

alert(awesome.getName()); // 'Super Awesome' 超级棒

Parameters

Returns

  • Object

    mixins 混入原型 键-值对

Inserts the first node before the second node in this nodes childNodes collection.

Parameters

Returns

Ext.data.NodeInterface
( Number index, Ext.data.Model node ) : Ext.data.Model

Insert a node into this node

Parameters

Returns

Ext.data.NodeInterface
( Ext.data.NodeInterface node ) : Boolean

如果node节点是本节点的祖先节点,返回true。

Parameters

Returns

Ext.data.NodeInterface
( ) : Boolean
如果节点有子节点或者expandable 属性明确指定为true,返回true,否者返回false。 ...

如果节点有子节点或者expandable 属性明确指定为true,返回true,否者返回false。

Returns

Ext.data.NodeInterface
( ) : Boolean

如果本节点是展开的,返回true

Returns

Ext.data.NodeInterface
( ) : Boolean

如果本节点是其父节点的第一个子节点,返回true

Returns

Ext.data.NodeInterface
( ) : Boolean

如果本节点是其父节点的最后子节点,返回true

Returns

Ext.data.NodeInterface
( ) : Boolean

如果本节点是叶子节点,返回true

Returns

Ext.data.NodeInterface
( ) : Boolean

如果加载了本节点,返回true

Returns

Ext.data.NodeInterface
( ) : Boolean

如果正在加载本节点,返回true

Returns

Ext.data.NodeInterface
( ) : Boolean

如果本节点是根节点,返回true

Returns

Ext.data.NodeInterface
( ) : Boolean

如果本节点可见,返回true

Returns

( Object name, Object mixinClass )private

内部使用混入预处理器(mixins pre-processor)

Parameters

( Object names, Object callback, Object scope )private

更新配置项

Parameters

( Object fn, Object scope )private

扩展事件

Parameters

Ext.data.NodeInterface
( [Boolean destroy] ) : Ext.data.NodeInterface

Removes this node from its parent

Parameters

  • destroy : Boolean (optional)

    True to destroy the node upon removal.

    Defaults to: false

Returns

Ext.data.NodeInterface
( [Boolean destroy] ) : Ext.data.NodeInterface

Removes all child nodes from this node.

Parameters

  • destroy : Boolean (optional)

    <True to destroy the node upon removal.

    Defaults to: false

Returns

Ext.data.NodeInterface
( Ext.data.NodeInterface node, [Boolean destroy] ) : Ext.data.NodeInterface

从本节点中移除一个子节点

Parameters

Returns

Replaces one child node in this node with another.

Parameters

Returns

( Object config, Object applyIfNotSet )private

设置配置项

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface node )private

Sets the first child of this node

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface node )private

Sets the last child of this node

Parameters

Ext.data.NodeInterface
( Function fn, [Boolean recursive], [Boolean suppressEvent] )

使用提供的排序函数对本节点的子节点排序。

Parameters

  • fn : Function

    接受2个Node实例作为参数的函数,根据特定的排序顺序返回-1, 0和1。

  • recursive : Boolean (optional)

    True递归排序

    Defaults to: false

  • suppressEvent : Boolean (optional)

    True不触发排序事件。

    Defaults to: false

获取从该对象被实例化的类的引用。 请注意不同于 self, this.statics()是独立的作用域,无论this是否运行,总是返回其中的调用类。

Ext.define('My.Cat', {
    statics: {
        totalCreated: 0,
        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'
    },

    constructor: function() {
        var statics = this.statics();

        alert(statics.speciesName);     // 总是等于'Cat',无论'this'是什么,
                                        // 相当于:My.Cat.speciesName

        alert(this.self.speciesName);   // 依赖 'this'

        statics.totalCreated++;
    },

    clone: function() {
        var cloned = new this.self;                      // 依赖 'this'

        cloned.groupName = this.statics().speciesName;   // 相当于: My.Cat.speciesName

        return cloned;
    }
});


Ext.define('My.SnowLeopard', {
    extend: 'My.Cat',

    statics: {
        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'
    },

    constructor: function() {
        this.callParent();
    }
});

var cat = new My.Cat();                 // alerts 'Cat', 然后提示 'Cat'

var snowLeopard = new My.SnowLeopard(); // alerts 'Cat', 然后提示 'Snow Leopard'

var clone = snowLeopard.clone();
alert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'
alert(clone.groupName);                 // alerts 'Cat'

alert(My.Cat.totalCreated);             // alerts 3

Returns

配置扩展

Ext.data.NodeInterface
( Object commit ) : Boolean
更新本节点的一般数据,像isFirst, isLast, depth。这个 方法在一个节点移动后内部调用。除非开发者在创建自定义的树插件, 开发者不应当 调用本方法。 ...

更新本节点的一般数据,像isFirst, isLast, depth。这个 方法在一个节点移动后内部调用。除非开发者在创建自定义的树插件, 开发者不应当 调用本方法。

Parameters

Returns

Defined By

Static Methods

( Object members )static

方法/属性添加到这个类的原型。

Ext.define('My.awesome.Cat', {
    constructor: function() {
        ...
    }
});

 My.awesome.Cat.implement({
     meow: function() {
        alert('Meowww...');
     }
 });

 var kitty = new My.awesome.Cat;
 kitty.meow();

Parameters

添加/重写这个类的静态属性。

Ext.define('My.cool.Class', {
    ...
});

My.cool.Class.addStatics({
    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'
    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };
    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };
});

Parameters

Returns

( Ext.Base fromClass, Array/String members ) : Ext.Baseprivatestatic
这个类的原型借用另一个类的成员 Ext.define('Bank', { money: '$$$', printMoney: function() { alert('$$$$$$$'); } ...

这个类的原型借用另一个类的成员

Ext.define('Bank', {
    money: '$$$',
    printMoney: function() {
        alert('$$$$$$$');
    }
});

Ext.define('Thief', {
    ...
});

Thief.borrow(Bank, ['money', 'printMoney']);

var steve = new Thief();

alert(steve.money); // alerts '$$$'
steve.printMoney(); // alerts '$$$$$$$'

Parameters

Returns

创建这个类的新实例。

Ext.define('My.cool.Class', {
    ...
});

My.cool.Class.create({
    someConfig: true
});

所有参数传递至类的构造。

Returns

创建现有的原型方法的别名。例如: Ext.define('My.cool.Class', { method1: function() { ... ...

创建现有的原型方法的别名。例如:

Ext.define('My.cool.Class', {
    method1: function() { ... },
    method2: function() { ... }
});

var test = new My.cool.Class();

My.cool.Class.createAlias({
    method3: 'method1',
    method4: 'method2'
});

test.method3(); // test.method1()

My.cool.Class.createAlias('method5', 'method3');

test.method5(); // test.method3() -> test.method1()

Parameters

Ext.data.NodeInterface
( Ext.Class/Ext.data.Model modelClass )static

这个方法使你能够装饰一个Model类,让其实现NodeInterface。 这给每一个Record添加了一些方法、事件属性和字段。

Parameters

以字符串格式,获取当前类的名称。

Ext.define('My.cool.Class', {
    constructor: function() {
        alert(this.self.getName()); // alerts 'My.cool.Class'
    }
});

My.cool.Class.getName(); // 'My.cool.Class'

Returns

( Object members ) : Ext.Basedeprecatedstatic

重写这个类的成员。通过callParent重写的方法可以调用。

Ext.define('My.Cat', {
    constructor: function() {
        alert("I'm a cat!");
    }
});

My.Cat.override({
    constructor: function() {
        alert("I'm going to be a cat!");

        this.callParent(arguments);

        alert("Meeeeoooowwww");
    }
});

var kitty = new My.Cat(); // alerts "I'm going to be a cat!我要成为一只猫!"
                          // alerts "I'm a cat!我是一只猫!"
                          // alerts "Meeeeoooowwww"

在4.1版本, 直接利用这种方法已经过时了。 使用 Ext.define 代替:

Ext.define('My.CatOverride', {
    override: 'My.Cat',
    constructor: function() {
        alert("I'm going to be a cat!");

        this.callParent(arguments);

        alert("Meeeeoooowwww");
    }
});

以上完成了相同的结果,但可以由Ext.Loader重写, 其目标类和生成过程中,可以决定是否需要根据目标类所需的状态覆盖管理(My.Cat)。

This method has been deprecated since 4.1.0

使用 Ext.define 代替

Parameters

  • members : Object

    添加到这个类的属性。 这应当被指定为一个对象包含一个或多个属性的文字。

Returns

Defined By

Events

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Ext.data.NodeInterface node, Number index, Object eOpts )

当添加一个新的子节点时触发

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Ext.data.NodeInterface node, Object eOpts )

附加一个新的子节点之前触发,返回false取消附加。

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Object eOpts )

本节点折叠前触发。

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Object eOpts )

本节点展开前触发。

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Ext.data.NodeInterface node, Ext.data.NodeInterface refNode, Object eOpts )

在插入一个新的子节点之前触发,返回false取消插入。

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Ext.data.NodeInterface oldParent, Ext.data.NodeInterface newParent, Number index, Object eOpts )

本节点被移动前触发。返回false取消移动。

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Ext.data.NodeInterface node, Boolean isMove, Object eOpts )

在移除一个新的子节点之前触发,返回false取消移除。

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Object eOpts )

本节点折叠时触发。

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Object eOpts )

本节点展开时触发。

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Ext.data.NodeInterface node, Ext.data.NodeInterface refNode, Object eOpts )

当插入一个新的子节点时触发

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Ext.data.NodeInterface oldParent, Ext.data.NodeInterface newParent, Number index, Object eOpts )

本节点被移动时触发。

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Ext.data.NodeInterface node, Boolean isMove, Object eOpts )

当移除一个新的子节点时触发

Parameters

Ext.data.NodeInterface
( Ext.data.NodeInterface this, Ext.data.NodeInterface[] childNodes, Object eOpts )

本节点的子节点排序时触发

Parameters