X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/docs/output/Ext.ClassManager.js diff --git a/docs/output/Ext.ClassManager.js b/docs/output/Ext.ClassManager.js index 232e5983..9e1e0db6 100644 --- a/docs/output/Ext.ClassManager.js +++ b/docs/output/Ext.ClassManager.js @@ -1,657 +1 @@ -Ext.data.JsonP.Ext_ClassManager({ - "allMixins": [ - - ], - "deprecated": null, - "docauthor": "Jacky Nguyen ", - "members": { - "cfg": [ - - ], - "method": [ - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-create", - "shortDoc": "Defines a class. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

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:

\n\n\n\n", - "name": "className" - }, - { - "type": "Object", - "optional": false, - "doc": "

The key - value pairs of properties to apply to this class. Property names can be of any valid\nstrings, except those in the reserved list below:

\n\n\n\n", - "name": "data" - }, - { - "type": "Function", - "optional": false, - "doc": "

Optional callback to execute after the class is created, the execution scope of which\n(this) will be the newly created class itself.

\n", - "name": "createdFn" - } - ], - "name": "create", - "owner": "Ext.ClassManager", - "doc": "

Defines a class.

\n\n
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
\n\n

Ext.define is alias for Ext.ClassManager.create.

\n", - "linenr": 396, - "return": { - "type": "Ext.Base", - "doc": "\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-get", - "shortDoc": "Retrieve a class by its name. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "name" - } - ], - "name": "get", - "owner": "Ext.ClassManager", - "doc": "

Retrieve a class by its name.

\n", - "linenr": 254, - "return": { - "type": "Class", - "doc": "

class

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-getAliasesByName", - "shortDoc": "Get the aliases of a class by the class name ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "name" - } - ], - "name": "getAliasesByName", - "owner": "Ext.ClassManager", - "doc": "

Get the aliases of a class by the class name

\n", - "linenr": 355, - "return": { - "type": "Array", - "doc": "

aliases

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-getByAlias", - "shortDoc": "Get a reference to the class by its alias. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "alias" - } - ], - "name": "getByAlias", - "owner": "Ext.ClassManager", - "doc": "

Get a reference to the class by its alias.

\n", - "linenr": 325, - "return": { - "type": "Class", - "doc": "

class

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-getClass", - "shortDoc": "Get the class of the provided object; returns null if it's not an instance\nof any class created with Ext.define. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "Object", - "optional": false, - "doc": "\n", - "name": "object" - } - ], - "name": "getClass", - "owner": "Ext.ClassManager", - "doc": "

Get the class of the provided object; returns null if it's not an instance\nof any class created with Ext.define.

\n\n
var component = new Ext.Component();\n\nExt.ClassManager.getClass(component); // returns Ext.Component\n
\n\n

Ext.getClass is alias for Ext.ClassManager.getClass.

\n", - "linenr": 379, - "return": { - "type": "Class", - "doc": "

class

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-getDisplayName", - "shortDoc": " ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "Mixed", - "optional": false, - "doc": "\n", - "name": "object" - } - ], - "name": "getDisplayName", - "owner": "Ext.ClassManager", - "doc": "\n", - "linenr": 1065, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-getName", - "shortDoc": "Get the name of the class by its reference or its instance. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "Class/Object", - "optional": false, - "doc": "\n", - "name": "object" - } - ], - "name": "getName", - "owner": "Ext.ClassManager", - "doc": "

Get the name of the class by its reference or its instance.

\n\n
Ext.ClassManager.getName(Ext.Action); // returns \"Ext.Action\"\n
\n\n

Ext.getClassName is alias for Ext.ClassManager.getName.

\n", - "linenr": 365, - "return": { - "type": "String", - "doc": "

className

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-getNameByAlias", - "shortDoc": "Get the name of a class by its alias. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "alias" - } - ], - "name": "getNameByAlias", - "owner": "Ext.ClassManager", - "doc": "

Get the name of a class by its alias.

\n", - "linenr": 335, - "return": { - "type": "String", - "doc": "

className

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-getNameByAlternate", - "shortDoc": "Get the name of a class by its alternate name. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "alternate" - } - ], - "name": "getNameByAlternate", - "owner": "Ext.ClassManager", - "doc": "

Get the name of a class by its alternate name.

\n", - "linenr": 345, - "return": { - "type": "String", - "doc": "

className

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-getNamesByExpression", - "shortDoc": "Converts a string expression to an array of matching class names. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "expression" - } - ], - "name": "getNamesByExpression", - "owner": "Ext.ClassManager", - "doc": "

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:

\n\n
// 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
\n", - "linenr": 774, - "return": { - "type": "Array", - "doc": "

classNames

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-instantiate", - "shortDoc": "Instantiate a class by either full name, alias or alternate name. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "name" - }, - { - "type": "Mixed", - "optional": false, - "doc": "

,... Additional arguments after the name will be passed to the class' constructor.

\n", - "name": "args" - } - ], - "name": "instantiate", - "owner": "Ext.ClassManager", - "doc": "

Instantiate a class by either full name, alias or alternate name.

\n\n

If Ext.Loader is enabled and the class has not been defined yet, it will\nattempt to load the class via synchronous loading.

\n\n

For example, all these three lines return the same result:

\n\n
// 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
\n\n

Ext.create is alias for Ext.ClassManager.instantiate.

\n", - "linenr": 555, - "return": { - "type": "Object", - "doc": "

instance

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-instantiateByAlias", - "shortDoc": "Instantiate a class by its alias. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "alias" - }, - { - "type": "Mixed", - "optional": false, - "doc": "

,... Additional arguments after the alias will be passed to the\nclass constructor.

\n", - "name": "args" - } - ], - "name": "instantiateByAlias", - "owner": "Ext.ClassManager", - "doc": "

Instantiate a class by its alias.

\n\n

If Ext.Loader is enabled and the class has not been defined yet, it will\nattempt to load the class via synchronous loading.

\n\n
var window = Ext.ClassManager.instantiateByAlias('widget.window', { width: 600, height: 800, ... });\n
\n\n

Ext.createByAlias is alias for Ext.ClassManager.instantiateByAlias.

\n", - "linenr": 507, - "return": { - "type": "Object", - "doc": "

instance

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-isCreated", - "shortDoc": "Checks if a class has already been created. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "className" - } - ], - "name": "isCreated", - "owner": "Ext.ClassManager", - "doc": "

Checks if a class has already been created.

\n", - "linenr": 68, - "return": { - "type": "Boolean", - "doc": "

exist

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-registerPostprocessor", - "shortDoc": "Register a post-processor function. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "name" - }, - { - "type": "Function", - "optional": false, - "doc": "\n", - "name": "postprocessor" - }, - { - "type": "Object", - "optional": false, - "doc": "\n", - "name": "always" - } - ], - "name": "registerPostprocessor", - "owner": "Ext.ClassManager", - "doc": "

Register a post-processor function.

\n", - "linenr": 707, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-set", - "shortDoc": "Sets a name reference to a class. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "name" - }, - { - "type": "Object", - "optional": false, - "doc": "\n", - "name": "value" - } - ], - "name": "set", - "owner": "Ext.ClassManager", - "doc": "

Sets a name reference to a class.

\n", - "linenr": 235, - "return": { - "type": "Ext.ClassManager", - "doc": "

this

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-setAlias", - "shortDoc": "Register the alias for a class. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "Class/String", - "optional": false, - "doc": "

a reference to a class or a className

\n", - "name": "cls" - }, - { - "type": "String", - "optional": false, - "doc": "

Alias to use when referring to this class

\n", - "name": "alias" - } - ], - "name": "setAlias", - "owner": "Ext.ClassManager", - "doc": "

Register the alias for a class.

\n", - "linenr": 286, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-setDefaultPostprocessorPosition", - "shortDoc": "Insert this post-processor at a specific position in the stack, optionally relative to\nany existing post-processor ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "

The post-processor name. Note that it needs to be registered with\nregisterPostprocessor before this

\n", - "name": "name" - }, - { - "type": "String", - "optional": false, - "doc": "

The insertion position. Four possible values are:\n'first', 'last', or: 'before', 'after' (relative to the name provided in the third argument)

\n", - "name": "offset" - }, - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "relativeName" - } - ], - "name": "setDefaultPostprocessorPosition", - "owner": "Ext.ClassManager", - "doc": "

Insert this post-processor at a specific position in the stack, optionally relative to\nany existing post-processor

\n", - "linenr": 735, - "return": { - "type": "Ext.ClassManager", - "doc": "

this

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-setDefaultPostprocessors", - "shortDoc": "Set the default post processors array stack which are applied to every class. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String/Array", - "optional": false, - "doc": "

name of a registered post processor or an array of registered names.

\n", - "name": "The" - } - ], - "name": "setDefaultPostprocessors", - "owner": "Ext.ClassManager", - "doc": "

Set the default post processors array stack which are applied to every class.

\n", - "linenr": 723, - "return": { - "type": "Ext.ClassManager", - "doc": "

this

\n" - }, - "html_filename": "ClassManager.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "ClassManager.html#Ext-ClassManager-method-setNamespace", - "shortDoc": "Creates a namespace and assign the value to the created object\n\nExt.ClassManager.setNamespace('MyCompany.pkg.Example'...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "\n", - "name": "name" - }, - { - "type": "Mixed", - "optional": false, - "doc": "\n", - "name": "value" - } - ], - "name": "setNamespace", - "owner": "Ext.ClassManager", - "doc": "

Creates a namespace and assign the value to the created object

\n\n
Ext.ClassManager.setNamespace('MyCompany.pkg.Example', someObject);\n\nalert(MyCompany.pkg.Example === someObject); // alerts true\n
\n", - "linenr": 171, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "ClassManager.html" - } - ], - "property": [ - - ], - "cssVar": [ - - ], - "cssMixin": [ - - ], - "event": [ - - ] - }, - "singleton": true, - "alias": null, - "superclasses": [ - - ], - "protected": false, - "tagname": "class", - "mixins": [ - - ], - "href": "ClassManager.html#Ext-ClassManager", - "subclasses": [ - - ], - "static": false, - "author": "Jacky Nguyen ", - "component": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/ClassManager.js", - "private": false, - "alternateClassNames": [ - - ], - "name": "Ext.ClassManager", - "doc": "

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:

\n\n\n\n", - "mixedInto": [ - - ], - "linenr": 1, - "xtypes": [ - - ], - "html_filename": "ClassManager.html", - "extends": null -}); \ No newline at end of file +Ext.data.JsonP.Ext_ClassManager({"tagname":"class","html":"

Files

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:

\n\n\n\n\n

Basic syntax:

\n\n
Ext.define(className, properties);\n
\n\n

in which properties is an object represent a collection of properties that apply to the class. See\ncreate for more detailed instructions.

\n\n
Ext.define('Person', {\n     name: 'Unknown',\n\n     constructor: function(name) {\n         if (name) {\n             this.name = name;\n         }\n\n         return this;\n     },\n\n     eat: function(foodType) {\n         alert(\"I'm eating: \" + foodType);\n\n         return this;\n     }\n});\n\nvar aaron = new Person(\"Aaron\");\naaron.eat(\"Sandwich\"); // alert(\"I'm eating: Sandwich\");\n
\n\n

Ext.Class has a powerful set of extensible pre-processors which takes care of\neverything related to class creation, including but not limited to inheritance, mixins, configuration, statics, etc.

\n\n

Inheritance:

\n\n
Ext.define('Developer', {\n     extend: 'Person',\n\n     constructor: function(name, isGeek) {\n         this.isGeek = isGeek;\n\n         // Apply a method from the parent class' prototype\n         this.callParent([name]);\n\n         return this;\n\n     },\n\n     code: function(language) {\n         alert(\"I'm coding in: \" + language);\n\n         this.eat(\"Bugs\");\n\n         return this;\n     }\n});\n\nvar jacky = new Developer(\"Jacky\", true);\njacky.code(\"JavaScript\"); // alert(\"I'm coding in: JavaScript\");\n                          // alert(\"I'm eating: Bugs\");\n
\n\n

See Ext.Base.callParent for more details on calling superclass' methods

\n\n

Mixins:

\n\n
Ext.define('CanPlayGuitar', {\n     playGuitar: function() {\n        alert(\"F#...G...D...A\");\n     }\n});\n\nExt.define('CanComposeSongs', {\n     composeSongs: function() { ... }\n});\n\nExt.define('CanSing', {\n     sing: function() {\n         alert(\"I'm on the highway to hell...\")\n     }\n});\n\nExt.define('Musician', {\n     extend: 'Person',\n\n     mixins: {\n         canPlayGuitar: 'CanPlayGuitar',\n         canComposeSongs: 'CanComposeSongs',\n         canSing: 'CanSing'\n     }\n})\n\nExt.define('CoolPerson', {\n     extend: 'Person',\n\n     mixins: {\n         canPlayGuitar: 'CanPlayGuitar',\n         canSing: 'CanSing'\n     },\n\n     sing: function() {\n         alert(\"Ahem....\");\n\n         this.mixins.canSing.sing.call(this);\n\n         alert(\"[Playing guitar at the same time...]\");\n\n         this.playGuitar();\n     }\n});\n\nvar me = new CoolPerson(\"Jacky\");\n\nme.sing(); // alert(\"Ahem...\");\n           // alert(\"I'm on the highway to hell...\");\n           // alert(\"[Playing guitar at the same time...]\");\n           // alert(\"F#...G...D...A\");\n
\n\n

Config:

\n\n
Ext.define('SmartPhone', {\n     config: {\n         hasTouchScreen: false,\n         operatingSystem: 'Other',\n         price: 500\n     },\n\n     isExpensive: false,\n\n     constructor: function(config) {\n         this.initConfig(config);\n\n         return this;\n     },\n\n     applyPrice: function(price) {\n         this.isExpensive = (price > 500);\n\n         return price;\n     },\n\n     applyOperatingSystem: function(operatingSystem) {\n         if (!(/^(iOS|Android|BlackBerry)$/i).test(operatingSystem)) {\n             return 'Other';\n         }\n\n         return operatingSystem;\n     }\n});\n\nvar iPhone = new SmartPhone({\n     hasTouchScreen: true,\n     operatingSystem: 'iOS'\n});\n\niPhone.getPrice(); // 500;\niPhone.getOperatingSystem(); // 'iOS'\niPhone.getHasTouchScreen(); // true;\niPhone.hasTouchScreen(); // true\n\niPhone.isExpensive; // false;\niPhone.setPrice(600);\niPhone.getPrice(); // 600\niPhone.isExpensive; // true;\n\niPhone.setOperatingSystem('AlienOS');\niPhone.getOperatingSystem(); // 'Other'\n
\n\n

Statics:

\n\n
Ext.define('Computer', {\n     statics: {\n         factory: function(brand) {\n            // 'this' in static methods refer to the class itself\n             return new this(brand);\n         }\n     },\n\n     constructor: function() { ... }\n});\n\nvar dellComputer = Computer.factory('Dell');\n
\n\n

Also see Ext.Base.statics and Ext.Base.self for more details on accessing\nstatic properties within class methods

\n
Defined By

Methods

Defines a class. ...

Defines a class.

\n\n

Ext.define and Ext.ClassManager.create are almost aliases\nof each other, with the only exception that Ext.define allows definition of overrides.\nTo avoid trouble, always use Ext.define.

\n\n
Ext.define('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
\n

Parameters

  • className : String

    The class name to create in string dot-namespaced format, for example:\nMy.very.awesome.Class, FeedViewer.plugin.CoolPager. It is highly recommended to follow this simple convention:

    \n\n
      \n
    • The root and the class name are 'CamelCased'
    • \n
    • Everything else is lower-cased
    • \n
    \n\n
  • data : Object

    The key-value pairs of properties to apply to this class. Property names can be of any valid\nstrings, except those in the reserved list below:

    \n\n\n\n
  • createdFn : Function (optional)

    callback to execute after the class is created, the execution scope of which\n(this) will be the newly created class itself.

    \n

Returns

Retrieve a class by its name. ...

Retrieve a class by its name.

\n

Parameters

Returns

Get the aliases of a class by the class name ...

Get the aliases of a class by the class name

\n

Parameters

Returns

Get a reference to the class by its alias. ...

Get a reference to the class by its alias.

\n

Parameters

Returns

Get the class of the provided object; returns null if it's not an instance\nof any class created with Ext.define. ...

Get the class of the provided object; returns null if it's not an instance\nof any class created with Ext.define.

\n\n
var component = new Ext.Component();\n\nExt.ClassManager.getClass(component); // returns Ext.Component\n
\n\n

Ext.getClass is alias for Ext.ClassManager.getClass.

\n

Parameters

Returns

Returns the displayName property or className or object. ...

Returns the displayName property or className or object.\nWhen all else fails, returns \"Anonymous\".

\n

Parameters

Returns

Get the name of the class by its reference or its instance. ...

Get the name of the class by its reference or its instance.

\n\n
Ext.ClassManager.getName(Ext.Action); // returns \"Ext.Action\"\n
\n\n

Ext.getClassName is alias for Ext.ClassManager.getName.

\n

Parameters

Returns

Get the name of a class by its alias. ...

Get the name of a class by its alias.

\n

Parameters

Returns

Get the name of a class by its alternate name. ...

Get the name of a class by its alternate name.

\n

Parameters

Returns

Converts a string expression to an array of matching class names. ...

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:

\n\n
// 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
\n

Parameters

Returns

Instantiate a class by either full name, alias or alternate name. ...

Instantiate a class by either full name, alias or alternate name.

\n\n

If Ext.Loader is enabled and the class has not been defined yet, it will\nattempt to load the class via synchronous loading.

\n\n

For example, all these three lines return the same result:

\n\n
// 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
\n\n

Ext.create is alias for Ext.ClassManager.instantiate.

\n

Parameters

  • name : String
    \n
  • args : Object...

    Additional arguments after the name will be passed to the class' constructor.

    \n

Returns

Instantiate a class by its alias. ...

Instantiate a class by its alias.

\n\n

If Ext.Loader is enabled and the class has not been defined yet, it will\nattempt to load the class via synchronous loading.

\n\n
var window = Ext.ClassManager.instantiateByAlias('widget.window', { width: 600, height: 800, ... });\n
\n\n

Ext.createByAlias is alias for Ext.ClassManager.instantiateByAlias.

\n

Parameters

  • alias : String
    \n
  • args : Object...

    Additional arguments after the alias will be passed to the\nclass constructor.

    \n

Returns

Checks if a class has already been created. ...

Checks if a class has already been created.

\n

Parameters

Returns

Register a post-processor function. ...

Register a post-processor function.

\n

Parameters

Sets a name reference to a class. ...

Sets a name reference to a class.

\n

Parameters

Returns

Register the alias for a class. ...

Register the alias for a class.

\n

Parameters

  • cls : Ext.Class/String

    a reference to a class or a className

    \n
  • alias : String

    Alias to use when referring to this class

    \n
Insert this post-processor at a specific position in the stack, optionally relative to\nany existing post-processor ...

Insert this post-processor at a specific position in the stack, optionally relative to\nany existing post-processor

\n

Parameters

  • name : String

    The post-processor name. Note that it needs to be registered with\nregisterPostprocessor before this

    \n
  • offset : String

    The insertion position. Four possible values are:\n'first', 'last', or: 'before', 'after' (relative to the name provided in the third argument)

    \n
  • relativeName : String
    \n

Returns

Set the default post processors array stack which are applied to every class. ...

Set the default post processors array stack which are applied to every class.

\n

Parameters

  • The : String/String[]

    name of a registered post processor or an array of registered names.

    \n

Returns

Creates a namespace and assign the value to the created object\n\nExt.ClassManager.setNamespace('MyCompany.pkg.Example'...

Creates a namespace and assign the value to the created object

\n\n
Ext.ClassManager.setNamespace('MyCompany.pkg.Example', someObject);\n\nalert(MyCompany.pkg.Example === someObject); // alerts true\n
\n

Parameters

","allMixins":[],"meta":{"author":["Jacky Nguyen "],"docauthor":["Jacky Nguyen "]},"requires":[],"deprecated":null,"extends":null,"inheritable":false,"static":false,"superclasses":[],"singleton":true,"code_type":"nop","alias":null,"statics":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[],"event":[]},"subclasses":[],"uses":[],"protected":false,"mixins":[],"members":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"create","id":"method-create"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"get","id":"method-get"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"getAliasesByName","id":"method-getAliasesByName"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"getByAlias","id":"method-getByAlias"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"getClass","id":"method-getClass"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"getDisplayName","id":"method-getDisplayName"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"getName","id":"method-getName"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"getNameByAlias","id":"method-getNameByAlias"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"getNameByAlternate","id":"method-getNameByAlternate"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"getNamesByExpression","id":"method-getNamesByExpression"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"instantiate","id":"method-instantiate"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"instantiateByAlias","id":"method-instantiateByAlias"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"isCreated","id":"method-isCreated"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"registerPostprocessor","id":"method-registerPostprocessor"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"set","id":"method-set"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"setAlias","id":"method-setAlias"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"setDefaultPostprocessorPosition","id":"method-setDefaultPostprocessorPosition"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"setDefaultPostprocessors","id":"method-setDefaultPostprocessors"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.ClassManager","template":false,"required":null,"protected":false,"name":"setNamespace","id":"method-setNamespace"}],"event":[]},"private":false,"component":false,"name":"Ext.ClassManager","alternateClassNames":[],"id":"class-Ext.ClassManager","mixedInto":[],"xtypes":{},"files":[{"href":"ClassManager.html#Ext-ClassManager","filename":"ClassManager.js"}]}); \ No newline at end of file