X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/output/Ext.ClassManager.js diff --git a/docs/output/Ext.ClassManager.js b/docs/output/Ext.ClassManager.js new file mode 100644 index 00000000..ef9563b3 --- /dev/null +++ b/docs/output/Ext.ClassManager.js @@ -0,0 +1,592 @@ +Ext.data.JsonP.Ext_ClassManager({ + "tagname": "class", + "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", + "extends": null, + "mixins": [ + + ], + "alternateClassNames": [ + + ], + "xtype": null, + "author": "Jacky Nguyen ", + "docauthor": "Jacky Nguyen ", + "singleton": true, + "private": false, + "cfg": [ + + ], + "method": [ + { + "tagname": "method", + "name": "create", + "member": "Ext.ClassManager", + "doc": "

Defines a class. This is usually invoked via the alias Ext.define

\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", + "params": [ + { + "type": "String", + "name": "className", + "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", + "optional": false + }, + { + "type": "Object", + "name": "data", + "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 listed below:

\n\n\n\n", + "optional": false + }, + { + "type": "Function", + "name": "createdFn", + "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", + "optional": false + } + ], + "return": { + "type": "Ext.Base", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 398, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-create", + "shortDoc": "Defines a class. This is usually invoked via the alias Ext.define\n\nExt.ClassManager.create('My.awesome.Class', {\n ..." + }, + { + "tagname": "method", + "name": "get", + "member": "Ext.ClassManager", + "doc": "

Retrieve a class by its name.

\n", + "params": [ + { + "type": "String", + "name": "name", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "Class", + "doc": "

class

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 257, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-get", + "shortDoc": "

Retrieve a class by its name.

\n" + }, + { + "tagname": "method", + "name": "getAliasesByName", + "member": "Ext.ClassManager", + "doc": "

Get the aliases of a class by the class name

\n", + "params": [ + { + "type": "String", + "name": "name", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "Array", + "doc": "

aliases

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 358, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-getAliasesByName", + "shortDoc": "

Get the aliases of a class by the class name

\n" + }, + { + "tagname": "method", + "name": "getByAlias", + "member": "Ext.ClassManager", + "doc": "

Get a reference to the class by its alias.

\n", + "params": [ + { + "type": "String", + "name": "alias", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "Class", + "doc": "

class

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 328, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-getByAlias", + "shortDoc": "

Get a reference to the class by its alias.

\n" + }, + { + "tagname": "method", + "name": "getClass", + "member": "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. This is usually invoked by the shorthand Ext.getClass

\n\n
var component = new Ext.Component();\n\nExt.ClassManager.getClass(component); // returns Ext.Component\n
\n", + "params": [ + { + "type": "Object", + "name": "object", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "Class", + "doc": "

class

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 382, + "html_filename": "ClassManager.html", + "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. This..." + }, + { + "tagname": "method", + "name": "getDisplayName", + "member": "Ext.ClassManager", + "doc": "\n", + "params": [ + { + "type": "Mixed", + "name": "object", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 1006, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-getDisplayName", + "shortDoc": "\n" + }, + { + "tagname": "method", + "name": "getName", + "member": "Ext.ClassManager", + "doc": "

Get the name of the class by its reference or its instance;\nusually invoked by the shorthand Ext.getClassName

\n\n
Ext.ClassManager.getName(Ext.Action); // returns \"Ext.Action\"\n
\n", + "params": [ + { + "type": "Class/Object", + "name": "object", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "String", + "doc": "

className

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 368, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-getName", + "shortDoc": "Get the name of the class by its reference or its instance;\nusually invoked by the shorthand Ext.getClassName\n\nExt.Cl..." + }, + { + "tagname": "method", + "name": "getNameByAlias", + "member": "Ext.ClassManager", + "doc": "

Get the name of a class by its alias.

\n", + "params": [ + { + "type": "String", + "name": "alias", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "String", + "doc": "

className

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 338, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-getNameByAlias", + "shortDoc": "

Get the name of a class by its alias.

\n" + }, + { + "tagname": "method", + "name": "getNameByAlternate", + "member": "Ext.ClassManager", + "doc": "

Get the name of a class by its alternate name.

\n", + "params": [ + { + "type": "String", + "name": "alternate", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "String", + "doc": "

className

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 348, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-getNameByAlternate", + "shortDoc": "

Get the name of a class by its alternate name.

\n" + }, + { + "tagname": "method", + "name": "getNamesByExpression", + "member": "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", + "params": [ + { + "type": "String", + "name": "expression", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "Array", + "doc": "

classNames

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 769, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-getNamesByExpression", + "shortDoc": "Converts a string expression to an array of matching class names. An expression can either refers to class aliases\nor..." + }, + { + "tagname": "method", + "name": "instantiate", + "member": "Ext.ClassManager", + "doc": "

Instantiate a class by either full name, alias or alternate name; usually invoked by the convenient\nshorthand Ext.create

\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", + "params": [ + { + "type": "String", + "name": "name", + "doc": "\n", + "optional": false + }, + { + "type": "Mixed", + "name": "args", + "doc": "

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

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

instance

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 550, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-instantiate", + "shortDoc": "Instantiate a class by either full name, alias or alternate name; usually invoked by the convenient\nshorthand Ext.cre..." + }, + { + "tagname": "method", + "name": "instantiateByAlias", + "member": "Ext.ClassManager", + "doc": "

Instantiate a class by its alias; usually invoked by the convenient shorthand Ext.createByAlias\nIf 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", + "params": [ + { + "type": "String", + "name": "alias", + "doc": "\n", + "optional": false + }, + { + "type": "Mixed", + "name": "args", + "doc": "

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

\n", + "optional": false + } + ], + "return": { + "type": "Object", + "doc": "

instance

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 504, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-instantiateByAlias", + "shortDoc": "Instantiate a class by its alias; usually invoked by the convenient shorthand Ext.createByAlias\nIf Ext.Loader is enab..." + }, + { + "tagname": "method", + "name": "isCreated", + "member": "Ext.ClassManager", + "doc": "

Checks if a class has already been created.

\n", + "params": [ + { + "type": "String", + "name": "className", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "Boolean", + "doc": "

exist

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 70, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-isCreated", + "shortDoc": "

Checks if a class has already been created.

\n" + }, + { + "tagname": "method", + "name": "registerPostprocessor", + "member": "Ext.ClassManager", + "doc": "

Register a post-processor function.

\n", + "params": [ + { + "type": "String", + "name": "name", + "doc": "\n", + "optional": false + }, + { + "type": "Function", + "name": "postprocessor", + "doc": "\n", + "optional": false + }, + { + "type": "Object", + "name": "always", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 702, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-registerPostprocessor", + "shortDoc": "

Register a post-processor function.

\n" + }, + { + "tagname": "method", + "name": "set", + "member": "Ext.ClassManager", + "doc": "

Sets a name reference to a class.

\n", + "params": [ + { + "type": "String", + "name": "name", + "doc": "\n", + "optional": false + }, + { + "type": "Object", + "name": "value", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "Ext.ClassManager", + "doc": "

this

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 238, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-set", + "shortDoc": "

Sets a name reference to a class.

\n" + }, + { + "tagname": "method", + "name": "setAlias", + "member": "Ext.ClassManager", + "doc": "

Register the alias for a class.

\n", + "params": [ + { + "type": "Class/String", + "name": "cls", + "doc": "

a reference to a class or a className

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

Alias to use when referring to this class

\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 289, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-setAlias", + "shortDoc": "

Register the alias for a class.

\n" + }, + { + "tagname": "method", + "name": "setDefaultPostprocessorPosition", + "member": "Ext.ClassManager", + "doc": "

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

\n", + "params": [ + { + "type": "String", + "name": "name", + "doc": "

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

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

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

\n", + "optional": false + }, + { + "type": "String", + "name": "relativeName", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "Ext.ClassManager", + "doc": "

this

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 730, + "html_filename": "ClassManager.html", + "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

\n" + }, + { + "tagname": "method", + "name": "setDefaultPostprocessors", + "member": "Ext.ClassManager", + "doc": "

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

\n", + "params": [ + { + "type": "String/Array", + "name": "The", + "doc": "

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

\n", + "optional": false + } + ], + "return": { + "type": "Ext.ClassManager", + "doc": "

this

\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 718, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager-method-setDefaultPostprocessors", + "shortDoc": "

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

\n" + }, + { + "tagname": "method", + "name": "setNamespace", + "member": "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", + "params": [ + { + "type": "String", + "name": "name", + "doc": "\n", + "optional": false + }, + { + "type": "Mixed", + "name": "value", + "doc": "\n", + "optional": false + } + ], + "return": { + "type": "void", + "doc": "\n" + }, + "private": false, + "static": false, + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 173, + "html_filename": "ClassManager.html", + "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'..." + } + ], + "property": [ + + ], + "event": [ + + ], + "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/class/ClassManager.js", + "linenr": 1, + "html_filename": "ClassManager.html", + "href": "ClassManager.html#Ext-ClassManager", + "cssVar": [ + + ], + "cssMixin": [ + + ], + "component": false, + "superclasses": [ + + ], + "subclasses": [ + + ], + "mixedInto": [ + + ], + "allMixins": [ + + ] +}); \ No newline at end of file