1 Ext.data.JsonP.Ext_ClassManager({
3 "name": "Ext.ClassManager",
4 "doc": "<p>Ext.ClassManager manages all classes and handles mapping from string class name to\nactual class objects throughout the whole framework. It is not generally accessed directly, rather through\nthese convenient shorthands:</p>\n\n<ul>\n<li><a href=\"#/api/Ext-method-define\" rel=\"Ext-method-define\" class=\"docClass\">Ext.define</a></li>\n<li><a href=\"#/api/Ext-method-create\" rel=\"Ext-method-create\" class=\"docClass\">Ext.create</a></li>\n<li><a href=\"#/api/Ext-method-widget\" rel=\"Ext-method-widget\" class=\"docClass\">Ext.widget</a></li>\n<li><a href=\"#/api/Ext--getClass\" rel=\"Ext--getClass\" class=\"docClass\">Ext.getClass</a></li>\n<li><a href=\"#/api/Ext-method-getClassName\" rel=\"Ext-method-getClassName\" class=\"docClass\">Ext.getClassName</a></li>\n</ul>\n\n",
9 "alternateClassNames": [
13 "author": "Jacky Nguyen <jacky@sencha.com>",
14 "docauthor": "Jacky Nguyen <jacky@sencha.com>",
24 "member": "Ext.ClassManager",
25 "doc": "<p>Defines a class. This is usually invoked via the alias <a href=\"#/api/Ext-method-define\" rel=\"Ext-method-define\" class=\"docClass\">Ext.define</a></p>\n\n<pre><code>Ext.ClassManager.create('My.awesome.Class', {\n someProperty: 'something',\n someMethod: function() { ... }\n ...\n\n}, function() {\n alert('Created!');\n alert(this === My.awesome.Class); // alerts true\n\n var myInstance = new this();\n});\n</code></pre>\n",
30 "doc": "<p>The class name to create in string dot-namespaced format, for example:\n'My.very.awesome.Class', 'FeedViewer.plugin.CoolPager'\nIt is highly recommended to follow this simple convention:</p>\n\n<ul>\n<li>The root and the class name are 'CamelCased'</li>\n<li>Everything else is lower-cased</li>\n</ul>\n\n",
36 "doc": "<p>The key - value pairs of properties to apply to this class. Property names can be of any valid\nstrings, except those in the reserved listed below:</p>\n\n<ul>\n<li><code>mixins</code></li>\n<li><code>statics</code></li>\n<li><code>config</code></li>\n<li><code>alias</code></li>\n<li><code>self</code></li>\n<li><code>singleton</code></li>\n<li><code>alternateClassName</code></li>\n</ul>\n\n",
42 "doc": "<p>Optional callback to execute after the class is created, the execution scope of which\n(<code>this</code>) will be the newly created class itself.</p>\n",
52 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
54 "html_filename": "ClassManager.html",
55 "href": "ClassManager.html#Ext-ClassManager-method-create",
56 "shortDoc": "Defines a class. This is usually invoked via the alias Ext.define\n\nExt.ClassManager.create('My.awesome.Class', {\n ..."
61 "member": "Ext.ClassManager",
62 "doc": "<p>Retrieve a class by its name.</p>\n",
73 "doc": "<p>class</p>\n"
77 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
79 "html_filename": "ClassManager.html",
80 "href": "ClassManager.html#Ext-ClassManager-method-get",
81 "shortDoc": "<p>Retrieve a class by its name.</p>\n"
85 "name": "getAliasesByName",
86 "member": "Ext.ClassManager",
87 "doc": "<p>Get the aliases of a class by the class name</p>\n",
98 "doc": "<p>aliases</p>\n"
102 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
104 "html_filename": "ClassManager.html",
105 "href": "ClassManager.html#Ext-ClassManager-method-getAliasesByName",
106 "shortDoc": "<p>Get the aliases of a class by the class name</p>\n"
110 "name": "getByAlias",
111 "member": "Ext.ClassManager",
112 "doc": "<p>Get a reference to the class by its alias.</p>\n",
123 "doc": "<p>class</p>\n"
127 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
129 "html_filename": "ClassManager.html",
130 "href": "ClassManager.html#Ext-ClassManager-method-getByAlias",
131 "shortDoc": "<p>Get a reference to the class by its alias.</p>\n"
136 "member": "Ext.ClassManager",
137 "doc": "<p>Get the class of the provided object; returns null if it's not an instance\nof any class created with Ext.define. This is usually invoked by the shorthand <a href=\"#/api/Ext--getClass\" rel=\"Ext--getClass\" class=\"docClass\">Ext.getClass</a></p>\n\n<pre><code>var component = new Ext.Component();\n\nExt.ClassManager.getClass(component); // returns <a href=\"#/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Ext.Component</a>\n</code></pre>\n",
148 "doc": "<p>class</p>\n"
152 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
154 "html_filename": "ClassManager.html",
155 "href": "ClassManager.html#Ext-ClassManager-method-getClass",
156 "shortDoc": "Get the class of the provided object; returns null if it's not an instance\nof any class created with Ext.define. This..."
160 "name": "getDisplayName",
161 "member": "Ext.ClassManager",
177 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
179 "html_filename": "ClassManager.html",
180 "href": "ClassManager.html#Ext-ClassManager-method-getDisplayName",
186 "member": "Ext.ClassManager",
187 "doc": "<p>Get the name of the class by its reference or its instance;\nusually invoked by the shorthand <a href=\"#/api/Ext-method-getClassName\" rel=\"Ext-method-getClassName\" class=\"docClass\">Ext.getClassName</a></p>\n\n<pre><code>Ext.ClassManager.getName(Ext.Action); // returns \"Ext.Action\"\n</code></pre>\n",
190 "type": "Class/Object",
198 "doc": "<p>className</p>\n"
202 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
204 "html_filename": "ClassManager.html",
205 "href": "ClassManager.html#Ext-ClassManager-method-getName",
206 "shortDoc": "Get the name of the class by its reference or its instance;\nusually invoked by the shorthand Ext.getClassName\n\nExt.Cl..."
210 "name": "getNameByAlias",
211 "member": "Ext.ClassManager",
212 "doc": "<p>Get the name of a class by its alias.</p>\n",
223 "doc": "<p>className</p>\n"
227 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
229 "html_filename": "ClassManager.html",
230 "href": "ClassManager.html#Ext-ClassManager-method-getNameByAlias",
231 "shortDoc": "<p>Get the name of a class by its alias.</p>\n"
235 "name": "getNameByAlternate",
236 "member": "Ext.ClassManager",
237 "doc": "<p>Get the name of a class by its alternate name.</p>\n",
248 "doc": "<p>className</p>\n"
252 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
254 "html_filename": "ClassManager.html",
255 "href": "ClassManager.html#Ext-ClassManager-method-getNameByAlternate",
256 "shortDoc": "<p>Get the name of a class by its alternate name.</p>\n"
260 "name": "getNamesByExpression",
261 "member": "Ext.ClassManager",
262 "doc": "<p>Converts a string expression to an array of matching class names. An expression can either refers to class aliases\nor class names. Expressions support wildcards:</p>\n\n<pre><code> // returns ['Ext.window.Window']\nvar window = Ext.ClassManager.getNamesByExpression('widget.window');\n\n// returns ['widget.panel', 'widget.window', ...]\nvar allWidgets = Ext.ClassManager.getNamesByExpression('widget.*');\n\n// returns ['Ext.data.Store', 'Ext.data.ArrayProxy', ...]\nvar allData = Ext.ClassManager.getNamesByExpression('Ext.data.*');\n</code></pre>\n",
266 "name": "expression",
273 "doc": "<p>classNames</p>\n"
277 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
279 "html_filename": "ClassManager.html",
280 "href": "ClassManager.html#Ext-ClassManager-method-getNamesByExpression",
281 "shortDoc": "Converts a string expression to an array of matching class names. An expression can either refers to class aliases\nor..."
285 "name": "instantiate",
286 "member": "Ext.ClassManager",
287 "doc": "<p>Instantiate a class by either full name, alias or alternate name; usually invoked by the convenient\nshorthand <a href=\"#/api/Ext-method-create\" rel=\"Ext-method-create\" class=\"docClass\">Ext.create</a></p>\n\n<p>If <a href=\"#/api/Ext.Loader\" rel=\"Ext.Loader\" class=\"docClass\">Ext.Loader</a> is <a href=\"#/api/Ext.Loader-method-setConfig\" rel=\"Ext.Loader-method-setConfig\" class=\"docClass\">enabled</a> and the class has not been defined yet, it will\nattempt to load the class via synchronous loading.</p>\n\n<p>For example, all these three lines return the same result:</p>\n\n<pre><code>// alias\nvar window = Ext.ClassManager.instantiate('widget.window', { width: 600, height: 800, ... });\n\n// alternate name\nvar window = Ext.ClassManager.instantiate('Ext.Window', { width: 600, height: 800, ... });\n\n// full class name\nvar window = Ext.ClassManager.instantiate('Ext.window.Window', { width: 600, height: 800, ... });\n</code></pre>\n",
298 "doc": "<p>,... Additional arguments after the name will be passed to the class' constructor.</p>\n",
304 "doc": "<p>instance</p>\n"
308 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
310 "html_filename": "ClassManager.html",
311 "href": "ClassManager.html#Ext-ClassManager-method-instantiate",
312 "shortDoc": "Instantiate a class by either full name, alias or alternate name; usually invoked by the convenient\nshorthand Ext.cre..."
316 "name": "instantiateByAlias",
317 "member": "Ext.ClassManager",
318 "doc": "<p>Instantiate a class by its alias; usually invoked by the convenient shorthand <a href=\"#/api/Ext-method-createByAlias\" rel=\"Ext-method-createByAlias\" class=\"docClass\">Ext.createByAlias</a>\nIf <a href=\"#/api/Ext.Loader\" rel=\"Ext.Loader\" class=\"docClass\">Ext.Loader</a> is <a href=\"#/api/Ext.Loader-method-setConfig\" rel=\"Ext.Loader-method-setConfig\" class=\"docClass\">enabled</a> and the class has not been defined yet, it will\nattempt to load the class via synchronous loading.</p>\n\n<pre><code>var window = Ext.ClassManager.instantiateByAlias('widget.window', { width: 600, height: 800, ... });\n</code></pre>\n",
329 "doc": "<p>,... Additional arguments after the alias will be passed to the\nclass constructor.</p>\n",
335 "doc": "<p>instance</p>\n"
339 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
341 "html_filename": "ClassManager.html",
342 "href": "ClassManager.html#Ext-ClassManager-method-instantiateByAlias",
343 "shortDoc": "Instantiate a class by its alias; usually invoked by the convenient shorthand Ext.createByAlias\nIf Ext.Loader is enab..."
348 "member": "Ext.ClassManager",
349 "doc": "<p>Checks if a class has already been created.</p>\n",
360 "doc": "<p>exist</p>\n"
364 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
366 "html_filename": "ClassManager.html",
367 "href": "ClassManager.html#Ext-ClassManager-method-isCreated",
368 "shortDoc": "<p>Checks if a class has already been created.</p>\n"
372 "name": "registerPostprocessor",
373 "member": "Ext.ClassManager",
374 "doc": "<p>Register a post-processor function.</p>\n",
384 "name": "postprocessor",
401 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
403 "html_filename": "ClassManager.html",
404 "href": "ClassManager.html#Ext-ClassManager-method-registerPostprocessor",
405 "shortDoc": "<p>Register a post-processor function.</p>\n"
410 "member": "Ext.ClassManager",
411 "doc": "<p>Sets a name reference to a class.</p>\n",
427 "type": "Ext.ClassManager",
428 "doc": "<p>this</p>\n"
432 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
434 "html_filename": "ClassManager.html",
435 "href": "ClassManager.html#Ext-ClassManager-method-set",
436 "shortDoc": "<p>Sets a name reference to a class.</p>\n"
441 "member": "Ext.ClassManager",
442 "doc": "<p>Register the alias for a class.</p>\n",
445 "type": "Class/String",
447 "doc": "<p>a reference to a class or a className</p>\n",
453 "doc": "<p>Alias to use when referring to this class</p>\n",
463 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
465 "html_filename": "ClassManager.html",
466 "href": "ClassManager.html#Ext-ClassManager-method-setAlias",
467 "shortDoc": "<p>Register the alias for a class.</p>\n"
471 "name": "setDefaultPostprocessorPosition",
472 "member": "Ext.ClassManager",
473 "doc": "<p>Insert this post-processor at a specific position in the stack, optionally relative to\nany existing post-processor</p>\n",
478 "doc": "<p>The post-processor name. Note that it needs to be registered with\n<a href=\"#/api/Ext.ClassManager-method-registerPostprocessor\" rel=\"Ext.ClassManager-method-registerPostprocessor\" class=\"docClass\">registerPostprocessor</a> before this</p>\n",
484 "doc": "<p>The insertion position. Four possible values are:\n'first', 'last', or: 'before', 'after' (relative to the name provided in the third argument)</p>\n",
489 "name": "relativeName",
495 "type": "Ext.ClassManager",
496 "doc": "<p>this</p>\n"
500 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
502 "html_filename": "ClassManager.html",
503 "href": "ClassManager.html#Ext-ClassManager-method-setDefaultPostprocessorPosition",
504 "shortDoc": "<p>Insert this post-processor at a specific position in the stack, optionally relative to\nany existing post-processor</p>\n"
508 "name": "setDefaultPostprocessors",
509 "member": "Ext.ClassManager",
510 "doc": "<p>Set the default post processors array stack which are applied to every class.</p>\n",
513 "type": "String/Array",
515 "doc": "<p>name of a registered post processor or an array of registered names.</p>\n",
520 "type": "Ext.ClassManager",
521 "doc": "<p>this</p>\n"
525 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
527 "html_filename": "ClassManager.html",
528 "href": "ClassManager.html#Ext-ClassManager-method-setDefaultPostprocessors",
529 "shortDoc": "<p>Set the default post processors array stack which are applied to every class.</p>\n"
533 "name": "setNamespace",
534 "member": "Ext.ClassManager",
535 "doc": "<p>Creates a namespace and assign the <code>value</code> to the created object</p>\n\n<pre><code>Ext.ClassManager.setNamespace('MyCompany.pkg.Example', someObject);\n\nalert(MyCompany.pkg.Example === someObject); // alerts true\n</code></pre>\n",
556 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
558 "html_filename": "ClassManager.html",
559 "href": "ClassManager.html#Ext-ClassManager-method-setNamespace",
560 "shortDoc": "Creates a namespace and assign the value to the created object\n\nExt.ClassManager.setNamespace('MyCompany.pkg.Example'..."
569 "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js",
571 "html_filename": "ClassManager.html",
572 "href": "ClassManager.html#Ext-ClassManager",