Ext.data.JsonP.Ext_Class({"mixins":[],"code_type":"nop","inheritable":false,"component":false,"meta":{"author":["Jacky Nguyen "],"docauthor":["Jacky Nguyen "]},"mixedInto":[],"uses":[],"aliases":{},"parentMixins":[],"superclasses":[],"members":{"event":[],"property":[{"meta":{"private":true},"owner":"Ext.Class","tagname":"property","name":"defaultPreprocessors","id":"property-defaultPreprocessors"},{"meta":{"private":true},"owner":"Ext.Class","tagname":"property","name":"preprocessors","id":"property-preprocessors"}],"css_var":[],"method":[{"meta":{},"owner":"Ext.Class","tagname":"method","name":"constructor","id":"method-constructor"},{"meta":{"private":true},"owner":"Ext.Class","tagname":"method","name":"create","id":"method-create"},{"meta":{"private":true},"owner":"Ext.Class","tagname":"method","name":"getPreprocessors","id":"method-getPreprocessors"},{"meta":{"private":true},"owner":"Ext.Class","tagname":"method","name":"onBeforeCreated","id":"method-onBeforeCreated"},{"meta":{"private":true},"owner":"Ext.Class","tagname":"method","name":"process","id":"method-process"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"alias","id":"cfg-alias"},{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"alternateClassName","id":"cfg-alternateClassName"},{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"config","id":"cfg-config"},{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"extend","id":"cfg-extend"},{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"inheritableStatics","id":"cfg-inheritableStatics"},{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"mixins","id":"cfg-mixins"},{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"requires","id":"cfg-requires"},{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"singleton","id":"cfg-singleton"},{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"statics","id":"cfg-statics"},{"meta":{},"owner":"Ext.Class","tagname":"cfg","name":"uses","id":"cfg-uses"}]},"tagname":"class","extends":null,"html":"

Files

Handles class creation throughout the framework. This is a low level factory that is used by Ext.ClassManager and generally\nshould not be used directly. If you choose to use Ext.Class you will lose out on the namespace, aliasing and depency loading\nfeatures made available by Ext.ClassManager. The only time you would use Ext.Class directly is to create an anonymous class.

\n\n

If you wish to create a class you should use Ext.define which aliases\nExt.ClassManager.create to enable namespacing and dynamic dependency resolution.

\n\n

Ext.Class is the factory and not the superclass of everything. For the base class that all Ext classes inherit\nfrom, see Ext.Base.

\n
Defined By

Config options

List of short aliases for class names. ...

List of short aliases for class names. Most useful for defining xtypes for widgets:

\n\n
Ext.define('MyApp.CoolPanel', {\n    extend: 'Ext.panel.Panel',\n    alias: ['widget.coolpanel'],\n    title: 'Yeah!'\n});\n\n// Using Ext.create\nExt.create('widget.coolpanel');\n\n// Using the shorthand for defining widgets by xtype\nExt.widget('panel', {\n    items: [\n        {xtype: 'coolpanel', html: 'Foo'},\n        {xtype: 'coolpanel', html: 'Bar'}\n    ]\n});\n
\n\n

Besides \"widget\" for xtype there are alias namespaces like \"feature\" for ftype and \"plugin\" for ptype.

\n
Defines alternate names for this class. ...

Defines alternate names for this class. For example:

\n\n
Ext.define('Developer', {\n    alternateClassName: ['Coder', 'Hacker'],\n    code: function(msg) {\n        alert('Typing... ' + msg);\n    }\n});\n\nvar joe = Ext.create('Developer');\njoe.code('stackoverflow');\n\nvar rms = Ext.create('Hacker');\nrms.code('hack hack');\n
\n
List of configuration options with their default values, for which automatically\naccessor methods are generated. ...

List of configuration options with their default values, for which automatically\naccessor methods are generated. For example:

\n\n
Ext.define('SmartPhone', {\n     config: {\n         hasTouchScreen: false,\n         operatingSystem: 'Other',\n         price: 500\n     },\n     constructor: function(cfg) {\n         this.initConfig(cfg);\n     }\n});\n\nvar iPhone = new SmartPhone({\n     hasTouchScreen: true,\n     operatingSystem: 'iOS'\n});\n\niPhone.getPrice(); // 500;\niPhone.getOperatingSystem(); // 'iOS'\niPhone.getHasTouchScreen(); // true;\n
\n
The parent class that this class extends. ...

The parent class that this class extends. For example:

\n\n
Ext.define('Person', {\n    say: function(text) { alert(text); }\n});\n\nExt.define('Developer', {\n    extend: 'Person',\n    say: function(text) { this.callParent([\"print \"+text]); }\n});\n
\n
List of inheritable static methods for this class. ...

List of inheritable static methods for this class.\nOtherwise just like statics but subclasses inherit these methods.

\n
List of classes to mix into this class. ...

List of classes to mix into this class. For example:

\n\n
Ext.define('CanSing', {\n     sing: function() {\n         alert(\"I'm on the highway to hell...\")\n     }\n});\n\nExt.define('Musician', {\n     mixins: ['CanSing']\n})\n
\n\n

In this case the Musician class will get a sing method from CanSing mixin.

\n\n

But what if the Musician already has a sing method? Or you want to mix\nin two classes, both of which define sing? In such a cases it's good\nto define mixins as an object, where you assign a name to each mixin:

\n\n
Ext.define('Musician', {\n     mixins: {\n         canSing: 'CanSing'\n     },\n\n     sing: function() {\n         // delegate singing operation to mixin\n         this.mixins.canSing.sing.call(this);\n     }\n})\n
\n\n

In this case the sing method of Musician will overwrite the\nmixed in sing method. But you can access the original mixed in method\nthrough special mixins property.

\n
List of classes that have to be loaded before instantiating this class. ...

List of classes that have to be loaded before instantiating this class.\nFor example:

\n\n
Ext.define('Mother', {\n    requires: ['Child'],\n    giveBirth: function() {\n        // we can be sure that child class is available.\n        return new Child();\n    }\n});\n
\n
When set to true, the class will be instantiated as singleton. ...

When set to true, the class will be instantiated as singleton. For example:

\n\n
Ext.define('Logger', {\n    singleton: true,\n    log: function(msg) {\n        console.log(msg);\n    }\n});\n\nLogger.log('Hello');\n
\n
List of static methods for this class. ...

List of static methods for this class. For example:

\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
Ext.Class
view source
: String[]
List of optional classes to load together with this class. ...

List of optional classes to load together with this class. These aren't neccessarily loaded before\nthis class is created, but are guaranteed to be available before Ext.onReady listeners are\ninvoked. For example:

\n\n
Ext.define('Mother', {\n    uses: ['Child'],\n    giveBirth: function() {\n        // This code might, or might not work:\n        // return new Child();\n\n        // Instead use Ext.create() to load the class at the spot if not loaded already:\n        return Ext.create('Child');\n    }\n});\n
\n
Defined By

Properties

...
\n

Defaults to: []

...
\n

Defaults to: {}

Methods

Defined By

Instance Methods

Ext.Class
view source
new( Object data, Function onCreated ) : Ext.Base
Create a new anonymous class. ...

Create a new anonymous class.

\n

Parameters

  • data : Object

    An object represent the properties of this class

    \n
  • onCreated : Function

    Optional, the callback function to be executed when this class is fully created.\nNote that the creation process can be asynchronous depending on the pre-processors used.

    \n

Returns

Ext.Class
view source
( Object Class, Object classData, Object onClassCreated )private
...
\n

Parameters

Ext.Class
view source
( )private
...
\n
Ext.Class
view source
( Object Class, Object data, Object hooks )private
...
\n

Parameters

Ext.Class
view source
( Object Class, Object data, Object onCreated )private
...
\n

Parameters

Defined By

Static Methods

Ext.Class
view source
( ) : Function[]privatestatic
Retrieve the array stack of default pre-processors ...

Retrieve the array stack of default pre-processors

\n

Returns

Ext.Class
view source
( String name ) : Functionprivatestatic
Retrieve a pre-processor callback function by its name, which has been registered before ...

Retrieve a pre-processor callback function by its name, which has been registered before

\n

Parameters

Returns

Ext.Class
view source
( String name, Function fn ) : Ext.Classprivatestatic
Register a new pre-processor to be used during the class creation process ...

Register a new pre-processor to be used during the class creation process

\n

Parameters

  • name : String

    The pre-processor's name

    \n
  • fn : Function

    The callback function to be executed. Typical format:

    \n\n
    function(cls, data, fn) {\n    // Your code here\n\n    // Execute this when the processing is finished.\n    // Asynchronous processing is perfectly ok\n    if (fn) {\n        fn.call(this, cls, data);\n    }\n});\n
    \n

    Parameters

    • cls : Function

      The created class

      \n
    • data : Object

      The set of properties passed in Ext.Class constructor

      \n
    • fn : Function

      The callback function that must to be executed when this\npre-processor finishes, regardless of whether the processing is synchronous or aynchronous.

      \n

Returns

Ext.Class
view source
( String name, String offset, String relativeName ) : Ext.Classprivatestatic
Insert this pre-processor at a specific position in the stack, optionally relative to\nany existing pre-processor. ...

Insert this pre-processor at a specific position in the stack, optionally relative to\nany existing pre-processor. For example:

\n\n
Ext.Class.registerPreprocessor('debug', function(cls, data, fn) {\n    // Your code here\n\n    if (fn) {\n        fn.call(this, cls, data);\n    }\n}).setDefaultPreprocessorPosition('debug', 'last');\n
\n

Parameters

  • name : String

    The pre-processor name. Note that it needs to be registered with\nregisterPreprocessor 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

Ext.Class
view source
( Array preprocessors ) : Ext.Classprivatestatic
Set the default array stack of default pre-processors ...

Set the default array stack of default pre-processors

\n

Parameters

Returns

","subclasses":[],"name":"Ext.Class","alternateClassNames":[],"inheritdoc":null,"files":[{"href":"Class.html#Ext-Class","filename":"Class.js"}],"html_meta":{"author":null,"docauthor":null},"singleton":false,"id":"class-Ext.Class","statics":{"property":[],"event":[],"css_var":[],"method":[{"meta":{"static":true,"private":true},"owner":"Ext.Class","tagname":"method","name":"getDefaultPreprocessors","id":"static-method-getDefaultPreprocessors"},{"meta":{"static":true,"private":true},"owner":"Ext.Class","tagname":"method","name":"getPreprocessor","id":"static-method-getPreprocessor"},{"meta":{"static":true,"private":true},"owner":"Ext.Class","tagname":"method","name":"registerPreprocessor","id":"static-method-registerPreprocessor"},{"meta":{"static":true,"private":true},"owner":"Ext.Class","tagname":"method","name":"setDefaultPreprocessorPosition","id":"static-method-setDefaultPreprocessorPosition"},{"meta":{"static":true,"private":true},"owner":"Ext.Class","tagname":"method","name":"setDefaultPreprocessors","id":"static-method-setDefaultPreprocessors"}],"css_mixin":[],"cfg":[]},"requires":[]});