X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6e39d509471fe9b4e2660e0d1631b350d0c66f40..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/source/TreeEditor.html?ds=inline diff --git a/docs/source/TreeEditor.html b/docs/source/TreeEditor.html index c5f83bc9..54d30791 100644 --- a/docs/source/TreeEditor.html +++ b/docs/source/TreeEditor.html @@ -1,12 +1,18 @@ - - - - The source code - - - - -
/** + + + + The source code + + + + +
/*!
+ * Ext JS Library 3.3.1
+ * Copyright(c) 2006-2010 Sencha Inc.
+ * licensing@sencha.com
+ * http://www.sencha.com/license
+ */
+
/** * @class Ext.tree.TreeEditor * @extends Ext.Editor * Provides editor functionality for inline tree node editing. Any valid {@link Ext.form.Field} subclass can be used @@ -20,6 +26,7 @@ Ext.tree.TreeEditor = function(tree, fc, config){ fc = fc || {}; var field = fc.events ? fc : new Ext.form.TextField(fc); + Ext.tree.TreeEditor.superclass.constructor.call(this, field, config); this.tree = tree; @@ -72,16 +79,18 @@ Ext.extend(Ext.tree.TreeEditor, Ext.Editor, { initEditor : function(tree){ tree.on({ - scope: this, + scope : this, beforeclick: this.beforeNodeClick, - dblclick: this.onNodeDblClick + dblclick : this.onNodeDblClick }); + this.on({ - scope: this, - complete: this.updateNode, + scope : this, + complete : this.updateNode, beforestartedit: this.fitToTree, - specialkey: this.onSpecialKey + specialkey : this.onSpecialKey }); + this.on('startedit', this.bindScroll, this, {delay:10}); }, @@ -173,6 +182,6 @@ Ext.extend(Ext.tree.TreeEditor, Ext.Editor, { tree.un('beforeclick', this.beforeNodeClick, this); tree.un('dblclick', this.onNodeDblClick, this); } -});
- +});
+ \ No newline at end of file