Ext.data.JsonP.Ext_data_NodeInterface({"mixins":[],"code_type":"ext_define","inheritable":false,"component":false,"meta":{},"mixedInto":[],"uses":[],"aliases":{},"parentMixins":[],"superclasses":["Ext.Base"],"members":{"event":[{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"append","id":"event-append"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"beforeappend","id":"event-beforeappend"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"beforecollapse","id":"event-beforecollapse"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"beforeexpand","id":"event-beforeexpand"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"beforeinsert","id":"event-beforeinsert"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"beforemove","id":"event-beforemove"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"beforeremove","id":"event-beforeremove"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"collapse","id":"event-collapse"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"expand","id":"event-expand"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"insert","id":"event-insert"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"move","id":"event-move"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"remove","id":"event-remove"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"event","name":"sort","id":"event-sort"}],"property":[{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"$className","id":"property-S-className"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"property","name":"childNodes","id":"property-childNodes"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"configMap","id":"property-configMap"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"property","name":"firstChild","id":"property-firstChild"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigList","id":"property-initConfigList"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigMap","id":"property-initConfigMap"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"isInstance","id":"property-isInstance"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"property","name":"isNode","id":"property-isNode"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"property","name":"lastChild","id":"property-lastChild"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"property","name":"nextSibling","id":"property-nextSibling"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"property","name":"parentNode","id":"property-parentNode"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"property","name":"previousSibling","id":"property-previousSibling"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"property","name":"self","id":"property-self"}],"css_var":[],"method":[{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"appendChild","id":"method-appendChild"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"bubble","id":"method-bubble"},{"meta":{"deprecated":{"text":"as of 4.1. Use {@link #callParent} instead."},"protected":true},"owner":"Ext.Base","tagname":"method","name":"callOverridden","id":"method-callOverridden"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"callParent","id":"method-callParent"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"cascadeBy","id":"method-cascadeBy"},{"meta":{"private":true},"owner":"Ext.data.NodeInterface","tagname":"method","name":"clear","id":"method-clear"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"collapse","id":"method-collapse"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"collapseChildren","id":"method-collapseChildren"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"configClass","id":"method-configClass"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"contains","id":"method-contains"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"copy","id":"method-copy"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"createNode","id":"method-createNode"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"destroy","id":"method-destroy"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"eachChild","id":"method-eachChild"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"expand","id":"method-expand"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"expandChildren","id":"method-expandChildren"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"findChild","id":"method-findChild"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"findChildBy","id":"method-findChildBy"},{"meta":{"private":true},"owner":"Ext.data.NodeInterface","tagname":"method","name":"getBubbleTarget","id":"method-getBubbleTarget"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"getChildAt","id":"method-getChildAt"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"getConfig","id":"method-getConfig"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"getDepth","id":"method-getDepth"},{"meta":{},"owner":"Ext.Base","tagname":"method","name":"getInitialConfig","id":"method-getInitialConfig"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"getPath","id":"method-getPath"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"hasChildNodes","id":"method-hasChildNodes"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"hasConfig","id":"method-hasConfig"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"indexOf","id":"method-indexOf"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"indexOfId","id":"method-indexOfId"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"initConfig","id":"method-initConfig"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"insertBefore","id":"method-insertBefore"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"insertChild","id":"method-insertChild"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isAncestor","id":"method-isAncestor"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isExpandable","id":"method-isExpandable"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isExpanded","id":"method-isExpanded"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isFirst","id":"method-isFirst"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isLast","id":"method-isLast"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isLeaf","id":"method-isLeaf"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isLoaded","id":"method-isLoaded"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isLoading","id":"method-isLoading"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isRoot","id":"method-isRoot"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"isVisible","id":"method-isVisible"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"onConfigUpdate","id":"method-onConfigUpdate"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"remove","id":"method-remove"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"removeAll","id":"method-removeAll"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"removeChild","id":"method-removeChild"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"replaceChild","id":"method-replaceChild"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"setConfig","id":"method-setConfig"},{"meta":{"private":true},"owner":"Ext.data.NodeInterface","tagname":"method","name":"setFirstChild","id":"method-setFirstChild"},{"meta":{"private":true},"owner":"Ext.data.NodeInterface","tagname":"method","name":"setLastChild","id":"method-setLastChild"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"sort","id":"method-sort"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"statics","id":"method-statics"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"method","name":"updateInfo","id":"method-updateInfo"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"allowDrag","id":"cfg-allowDrag"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"allowDrop","id":"cfg-allowDrop"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"checked","id":"cfg-checked"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"children","id":"cfg-children"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"cls","id":"cfg-cls"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"depth","id":"cfg-depth"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"expandable","id":"cfg-expandable"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"expanded","id":"cfg-expanded"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"href","id":"cfg-href"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"hrefTarget","id":"cfg-hrefTarget"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"icon","id":"cfg-icon"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"iconCls","id":"cfg-iconCls"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"index","id":"cfg-index"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"isFirst","id":"cfg-isFirst"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"isLast","id":"cfg-isLast"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"leaf","id":"cfg-leaf"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"loaded","id":"cfg-loaded"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"loading","id":"cfg-loading"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"parentId","id":"cfg-parentId"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"qtip","id":"cfg-qtip"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"qtitle","id":"cfg-qtitle"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"root","id":"cfg-root"},{"meta":{},"owner":"Ext.data.NodeInterface","tagname":"cfg","name":"text","id":"cfg-text"}]},"tagname":"class","extends":"Ext.Base","html":"
Hierarchy
Ext.BaseExt.data.NodeInterfaceRequires
Files
This class is used as a set of methods that are applied to the prototype of a\nModel to decorate it with a Node API. This means that models used in conjunction with a tree\nwill have all of the tree related methods available on the model. In general this class will\nnot be used directly by the developer. This class also creates extra fields on the model if\nthey do not exist, to help maintain the tree state and UI. These fields are documented as\nconfig options.
\nSet to false to deny dragging of this node.
\nDefaults to: true
Set to false to deny dropping on this node.
\nDefaults to: true
Set to true or false to show a checkbox alongside this node.
\nDefaults to: null
The number of parents this node has. A root node has depth 0, a child of it depth 1, and so on...
\nSet to true to allow for expanding/collapsing of this node.
\nDefaults to: false
An URL for a link that's created when this config is specified.
\nAn URL for a link that's created when this config is specified.
\nThe position of the node inside its parent. When parent has 4 children and the node is third amongst them,\nindex will be 2.
\nSet to true to indicate that this child can have no children. The expand icon/arrow will then not be\nrendered for this node.
\nDefaults to: false
True if the node has finished loading.
\nDefaults to: false
An array of this nodes children. Array will be empty if this node has no chidren.
\nA reference to this node's first child node. null
if this node has no children.
true
in this class to identify an object as an instantiated Node, or subclass thereof.
Defaults to: true
A reference to this node's last child node. null
if this node has no children.
A reference to this node's next sibling node. null
if this node does not have a next sibling.
A reference to this node's parent node. null
if this node is the root node.
A reference to this node's previous sibling node. null
if this node does not have a previous sibling.
Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self
is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison
Ext.define('My.Cat', {\n statics: {\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n alert(this.self.speciesName); // dependent on 'this'\n },\n\n clone: function() {\n return new this.self();\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\n
\nInserts node(s) as the last child node of this node.
\n\nIf the node was previously a child node of another parent node, it will be removed from that node first.
\nThe node or Array of nodes to append
\nThe appended node if single append, or null if an array was passed
\nBubbles up the tree from this node, calling the specified function with each node. The arguments to the function\nwill be the args provided or the current node. If the function returns false at any point,\nthe bubble is stopped.
\nCall the original method that was previously overridden with override
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\n This method has been deprecated
\nas of 4.1. Use callParent instead.
\n\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callOverridden(arguments)
Returns the result of calling the overridden method
\nCall the \"parent\" method of the current method. That is the method previously\noverridden by derivation or by an override (see Ext.define).
\n\n Ext.define('My.Base', {\n constructor: function (x) {\n this.x = x;\n },\n\n statics: {\n method: function (x) {\n return x;\n }\n }\n });\n\n Ext.define('My.Derived', {\n extend: 'My.Base',\n\n constructor: function () {\n this.callParent([21]);\n }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x); // alerts 21\n
\n\nThis can be used with an override as follows:
\n\n Ext.define('My.DerivedOverride', {\n override: 'My.Derived',\n\n constructor: function (x) {\n this.callParent([x*2]); // calls original My.Derived constructor\n }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x); // now alerts 42\n
\n\nThis also works with static methods.
\n\n Ext.define('My.Derived2', {\n extend: 'My.Base',\n\n statics: {\n method: function (x) {\n return this.callParent([x*2]); // calls My.Base.method\n }\n }\n });\n\n alert(My.Base.method(10); // alerts 10\n alert(My.Derived2.method(10); // alerts 20\n
\n\nLastly, it also works with overridden static methods.
\n\n Ext.define('My.Derived2Override', {\n override: 'My.Derived2',\n\n statics: {\n method: function (x) {\n return this.callParent([x*2]); // calls My.Derived2.method\n }\n }\n });\n\n alert(My.Derived2.method(10); // now alerts 40\n
\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callParent(arguments)
Returns the result of calling the parent method
\nCascades down the tree from this node, calling the specified function with each node. The arguments to the function\nwill be the args provided or the current node. If the function returns false at any point,\nthe cascade is stopped on that branch.
\nClears the node.
\nTrue to destroy the node.
\nDefaults to: false
Returns true if this node is an ancestor (at any point) of the passed node.
\nCreates a copy (clone) of this Node.
\nA new id, defaults to this Node's id.
\nTrue to recursively copy all child Nodes into the new Node.\nFalse to copy without child Nodes.
\nDefaults to: false
A copy of this Node.
\nEnsures that the passed object is an instance of a Record with the NodeInterface applied
\nInterates the child nodes of this node, calling the specified function with each node. The arguments to the function\nwill be the args provided or the current node. If the function returns false at any point,\nthe iteration stops.
\nFinds the first child that has the attribute with the specified value.
\nThe attribute name
\nThe value to search for
\nTrue to search through nodes deeper than the immediate children
\nDefaults to: false
The found child or null if none was found
\nFinds the first child by a custom function. The child matches if the function passed returns true.
\nA function which must return true if the passed Node is the required Node.
\nThe scope (this reference) in which the function is executed. Defaults to the Node being tested.
\nTrue to search through nodes deeper than the immediate children
\nDefaults to: false
The found child or null if none was found
\nReturns the index of a child node
\nThe index of the node or -1 if it was not found
\nInitialize configuration for this class. a typical example:
\n\nExt.define('My.awesome.Class', {\n // The default config\n config: {\n name: 'Awesome',\n isAwesome: true\n },\n\n constructor: function(config) {\n this.initConfig(config);\n }\n});\n\nvar awesome = new My.awesome.Class({\n name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\nthis
\nInserts the first node before the second node in this nodes childNodes collection.
\nThe node to insert
\nThe node to insert before (if null the node is appended)
\nThe inserted node
\nInserts a node into this node.
\nThe zero-based index to insert the node at
\nThe node to insert
\nThe node you just inserted
\nReturns true if the passed node is an ancestor (at any point) of this node.
\nReturns true if this node has one or more child nodes, or if the expandable\nnode attribute is explicitly specified as true, otherwise returns false.
\nRemoves this node from its parent
\nTrue to destroy the node upon removal.
\nDefaults to: false
this
\nRemoves all child nodes from this node.
\n<True to destroy the node upon removal.
\nDefaults to: false
this
\nRemoves a child node from this node.
\nThe node to remove
\nTrue to destroy the node upon removal.
\nDefaults to: false
The removed node
\nReplaces one child node in this node with another.
\nThe replacement node
\nThe node to replace
\nThe replaced node
\nSorts this nodes children using the supplied sort function.
\nGet the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics()
is scope-independent and it always returns the class from which it was called, regardless of what\nthis
points to during run-time
Ext.define('My.Cat', {\n statics: {\n totalCreated: 0,\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n var statics = this.statics();\n\n alert(statics.speciesName); // always equals to 'Cat' no matter what 'this' refers to\n // equivalent to: My.Cat.speciesName\n\n alert(this.self.speciesName); // dependent on 'this'\n\n statics.totalCreated++;\n },\n\n clone: function() {\n var cloned = new this.self; // dependent on 'this'\n\n cloned.groupName = this.statics().speciesName; // equivalent to: My.Cat.speciesName\n\n return cloned;\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n },\n\n constructor: function() {\n this.callParent();\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\nalert(clone.groupName); // alerts 'Cat'\n\nalert(My.Cat.totalCreated); // alerts 3\n
\nAdd methods / properties to the prototype of this class.
\n\nExt.define('My.awesome.Cat', {\n constructor: function() {\n ...\n }\n});\n\n My.awesome.Cat.addMembers({\n meow: function() {\n alert('Meowww...');\n }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\nAdd / override static properties of this class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.addStatics({\n someProperty: 'someValue', // My.cool.Class.someProperty = 'someValue'\n method1: function() { ... }, // My.cool.Class.method1 = function() { ... };\n method2: function() { ... } // My.cool.Class.method2 = function() { ... };\n});\n
\nthis
\nBorrow another class' members to the prototype of this class.
\n\nExt.define('Bank', {\n money: '$$$',\n printMoney: function() {\n alert('$$$$$$$');\n }\n});\n\nExt.define('Thief', {\n ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\nThe class to borrow members from
\nThe names of the members to borrow
\nthis
\nCreate a new instance of this Class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n
\n\nAll parameters are passed to the constructor of the class.
\nthe created instance.
\nCreate aliases for existing prototype methods. Example:
\n\nExt.define('My.cool.Class', {\n method1: function() { ... },\n method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n method3: 'method1',\n method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\nThe new method name, or an object to set multiple aliases. See\nflexSetter
\nThe original method name
\nThis method allows you to decorate a Model's class to implement the NodeInterface.\nThis adds a set of methods, new events, new properties and new fields on every Record.
\nThe Model class or an instance of the Model class you want to\ndecorate the prototype of.
\nGet the current class' name in string format.
\n\nExt.define('My.cool.Class', {\n constructor: function() {\n alert(this.self.getName()); // alerts 'My.cool.Class'\n }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\nclassName
\nAdds members to class.
\nThis method has been deprecated since 4.1
\nUse addMembers instead.
\n\nOverride members of this class. Overridden methods can be invoked via\ncallParent.
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callParent(arguments);\n\n alert(\"Meeeeoooowwww\");\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\n\nAs of 4.1, direct use of this method is deprecated. Use Ext.define\ninstead:
\n\nExt.define('My.CatOverride', {\n override: 'My.Cat',\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callParent(arguments);\n\n alert(\"Meeeeoooowwww\");\n }\n});\n
\n\nThe above accomplishes the same result but can be managed by the Ext.Loader\nwhich can properly order the override and its target class and the build process\ncan determine whether the override is needed based on the required state of the\ntarget class (My.Cat).
\nThis method has been deprecated since 4.1.0
\nUse Ext.define instead
\n\nThe properties to add to this class. This should be\nspecified as an object literal containing one or more properties.
\nthis class
\nFires when a new child node is appended
\nThis node
\nThe newly appended node
\nThe index of the newly appended node
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires before a new child is appended, return false to cancel the append.
\nThis node
\nThe child node to be appended
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires before this node is collapsed.
\nThe collapsing node
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires before this node is expanded.
\nThe expanding node
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires before a new child is inserted, return false to cancel the insert.
\nThis node
\nThe child node to be inserted
\nThe child node the node is being inserted before
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires before this node is moved to a new location in the tree. Return false to cancel the move.
\nThis node
\nThe parent of this node
\nThe new parent this node is moving to
\nThe index it is being moved to
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires before a child is removed, return false to cancel the remove.
\nThis node
\nThe child node to be removed
\ntrue
if the child node is being removed so it can be moved to another position in the tree.\n(a side effect of calling appendChild or\ninsertBefore with a node that already has a parentNode)
The options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when this node is collapsed.
\nThe collapsing node
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when this node is expanded.
\nThe expanding node
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a new child node is inserted.
\nThis node
\nThe child node inserted
\nThe child node the node was inserted before
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when this node is moved to a new location in the tree
\nThis node
\nThe old parent of this node
\nThe new parent of this node
\nThe index it was moved to
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a child node is removed
\nThis node
\nThe removed node
\ntrue
if the child node is being removed so it can be moved to another position in the tree.\n(a side effect of calling appendChild or\ninsertBefore with a node that already has a parentNode)
The options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when this node's childNodes are sorted.
\nThis node.
\nThe childNodes of this node.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\n