Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / output / Ext.Base.js
1 Ext.data.JsonP.Ext_Base({
2   "tagname": "class",
3   "name": "Ext.Base",
4   "doc": "<p>The root of all classes created with <a href=\"#/api/Ext-method-define\" rel=\"Ext-method-define\" class=\"docClass\">Ext.define</a>\nAll prototype and static members of this class are inherited by any other class</p>\n",
5   "extends": null,
6   "mixins": [
7
8   ],
9   "alternateClassNames": [
10
11   ],
12   "xtype": null,
13   "author": "Jacky Nguyen <jacky@sencha.com>",
14   "docauthor": "Jacky Nguyen <jacky@sencha.com>",
15   "singleton": false,
16   "private": false,
17   "cfg": [
18
19   ],
20   "method": [
21     {
22       "tagname": "method",
23       "name": "callOverridden",
24       "member": "Ext.Base",
25       "doc": "<p>Call the original method that was previously overridden with <a href=\"#/api/Ext.Base-property-override\" rel=\"Ext.Base-property-override\" class=\"docClass\">override</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\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</code></pre>\n",
26       "params": [
27         {
28           "type": "Array/Arguments",
29           "name": "args",
30           "doc": "<p>The arguments, either an array or the <code>arguments</code> object</p>\n",
31           "optional": false
32         }
33       ],
34       "return": {
35         "type": "Mixed",
36         "doc": "<p>Returns the result after calling the overridden method</p>\n"
37       },
38       "private": false,
39       "static": false,
40       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
41       "linenr": 279,
42       "html_filename": "Base3.html",
43       "href": "Base3.html#Ext-Base-method-callOverridden",
44       "shortDoc": "Call the original method that was previously overridden with override\n\nExt.define('My.Cat', {\n    constructor: functi..."
45     },
46     {
47       "tagname": "method",
48       "name": "getName",
49       "member": "Ext.Base",
50       "doc": "<p>Get the current class' name in string format.</p>\n\n<pre><code>Ext.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</code></pre>\n",
51       "params": [
52
53       ],
54       "return": {
55         "type": "String",
56         "doc": "<p>className</p>\n"
57       },
58       "private": false,
59       "static": false,
60       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
61       "linenr": 652,
62       "html_filename": "Base3.html",
63       "href": "Base3.html#Ext-Base-method-getName",
64       "shortDoc": "Get the current class' name in string format.\n\nExt.define('My.cool.Class', {\n    constructor: function() {\n        al..."
65     }
66   ],
67   "property": [
68     {
69       "tagname": "property",
70       "name": "addStatics",
71       "member": "Ext.Base",
72       "type": "Function",
73       "doc": "<p>Add / override static properties of this class.</p>\n\n<pre><code>Ext.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</code></pre>\n",
74       "private": false,
75       "static": true,
76       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
77       "linenr": 399,
78       "html_filename": "Base3.html",
79       "href": "Base3.html#Ext-Base-property-addStatics",
80       "shortDoc": "Add / override static properties of this class.\n\nExt.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics(..."
81     },
82     {
83       "tagname": "property",
84       "name": "borrow",
85       "member": "Ext.Base",
86       "type": "Function",
87       "doc": "<p>Borrow another class' members to the prototype of this class.</p>\n\n<pre><code>Ext.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</code></pre>\n",
88       "private": false,
89       "static": true,
90       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
91       "linenr": 492,
92       "html_filename": "Base3.html",
93       "href": "Base3.html#Ext-Base-property-borrow",
94       "shortDoc": "Borrow another class' members to the prototype of this class.\n\nExt.define('Bank', {\n    money: '$$$',\n    printMoney:..."
95     },
96     {
97       "tagname": "property",
98       "name": "create",
99       "member": "Ext.Base",
100       "type": "Function",
101       "doc": "<p>Create a new instance of this Class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n</code></pre>\n",
102       "private": false,
103       "static": true,
104       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
105       "linenr": 340,
106       "html_filename": "Base3.html",
107       "href": "Base3.html#Ext-Base-property-create",
108       "shortDoc": "Create a new instance of this Class.\n\nExt.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfi..."
109     },
110     {
111       "tagname": "property",
112       "name": "createAlias",
113       "member": "Ext.Base",
114       "type": "Function",
115       "doc": "<p>Create aliases for existing prototype methods. Example:</p>\n\n<pre><code>Ext.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() -&gt; test.method1()\n</code></pre>\n",
116       "private": false,
117       "static": true,
118       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
119       "linenr": 670,
120       "html_filename": "Base3.html",
121       "href": "Base3.html#Ext-Base-property-createAlias",
122       "shortDoc": "Create aliases for existing prototype methods. Example:\n\nExt.define('My.cool.Class', {\n    method1: function() { ... ..."
123     },
124     {
125       "tagname": "property",
126       "name": "implement",
127       "member": "Ext.Base",
128       "type": "Function",
129       "doc": "<p>Add methods / properties to the prototype of this class.</p>\n\n<pre><code>Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.implement({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n</code></pre>\n",
130       "private": false,
131       "static": true,
132       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
133       "linenr": 428,
134       "html_filename": "Base3.html",
135       "href": "Base3.html#Ext-Base-property-implement",
136       "shortDoc": "Add methods / properties to the prototype of this class.\n\nExt.define('My.awesome.Cat', {\n    constructor: function() ..."
137     },
138     {
139       "tagname": "property",
140       "name": "override",
141       "member": "Ext.Base",
142       "type": "Function",
143       "doc": "<p>Override prototype members of this class. Overridden methods can be invoked via\n<a href=\"#/api/Ext.Base-method-callOverridden\" rel=\"Ext.Base-method-callOverridden\" class=\"docClass\">callOverridden</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\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</code></pre>\n",
144       "private": false,
145       "static": true,
146       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
147       "linenr": 536,
148       "html_filename": "Base3.html",
149       "href": "Base3.html#Ext-Base-property-override",
150       "shortDoc": "Override prototype members of this class. Overridden methods can be invoked via\ncallOverridden\n\nExt.define('My.Cat', ..."
151     }
152   ],
153   "event": [
154
155   ],
156   "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/Base.js",
157   "linenr": 1,
158   "html_filename": "Base3.html",
159   "href": "Base3.html#Ext-Base",
160   "cssVar": [
161
162   ],
163   "cssMixin": [
164
165   ],
166   "component": false,
167   "superclasses": [
168
169   ],
170   "subclasses": [
171     "Ext.form.action.Action",
172     "Ext.slider.Thumb",
173     "Ext.env.Browser"
174   ],
175   "mixedInto": [
176
177   ],
178   "allMixins": [
179
180   ]
181 });