1 <!DOCTYPE html><html><head><title>Ext.ClassManager | Ext JS 4.0 Documentation</title><script type="text/javascript" src="../ext-all.js"></script><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../scrollbars.css" type="text/css"><link rel="stylesheet" href="../docs.css" type="text/css"><link id="styleCss" rel="stylesheet" href="../style.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script><link rel="stylesheet" href="../prettify.css" type="text/css"><!-- link(rel: 'stylesheet', href: req.baseURL + '/css/ext4.css', type: 'text/css')--><link rel="shortcut icon" type="image/ico" href="../favicon.ico"><!--[if IE]>
2 <style type="text/css">.head-band { display: none; }
3 .header { border: 0; top: 0; left: 0px; background: url(../header.gif) repeat-x; }
4 .doc-tab .members .member a.more { background-color: #efefef; }
5 </style><link rel="stylesheet" href="/new/css/ie.css" type="text/css"><![endif]-->
6 </head><body id="ext-body" class="iScroll"><div id="notice" class="notice">For up to date documentation and features, visit
7 <a href="http://docs.sencha.com/ext-js/4-0">http://docs.sencha.com/ext-js/4-0</a></div><div class="wrapper"><div class="head-band"></div><div class="header"><h2><a href="../index.html">Sencha Documentation</a></h2></div><div id="search"><form><input type="text" placeholder="Search" id="search-field" autocomplete="off" name="q"></form><div id="search-box"></div></div><div id="treePanel"></div><div id="container"><script type="text/javascript">
12 origDocClass: 'Ext.ClassManager',
13 docClass: 'Ext.ClassManager',
14 docReq: 'Ext.ClassManager',
27 <script type="text/javascript" src="../search.js"></script>
28 <!--script type="text/javascript" src="/new/javascripts/app/examples.js"></script-->
29 <script type="text/javascript" src="../class_tree.js"></script>
30 <script type="text/javascript" src="../class_doc.js"></script>
31 <script type="text/javascript">
32 req.source = 'ClassManager.html#Ext-ClassManager';
33 clsInfo = {"methods":["create","get","getAliasesByName","getByAlias","getClass","getDisplayName","getName","getNameByAlias","getNameByAlternate","getNamesByExpression","instantiate","instantiateByAlias","isCreated","registerPostprocessor","set","setAlias","setDefaultPostprocessorPosition","setDefaultPostprocessors","setNamespace"],"cfgs":[],"properties":[],"events":[],"subclasses":[]};
34 Ext.onReady(function() {
35 Ext.create('Docs.classPanel');
37 </script><div id="top-block" class="top-block"><h1 id="clsTitle" class="cls"><a href="../source/ClassManager.html#Ext-ClassManager" target="_blank">Ext.ClassManager</a></h1></div><div id="docContent"><div id="doc-overview-content"><div class="lft"><p>Ext.ClassManager manages all classes and handles mapping from string class name to
38 actual class objects throughout the whole framework. It is not generally accessed directly, rather through
39 these convenient shorthands:</p>
42 <li><a href="Ext.html#define" rel="Ext#define" class="docClass">Ext.define</a></li>
43 <li><a href="Ext.html#create" rel="Ext#create" class="docClass">Ext.create</a></li>
44 <li><a href="Ext.html#widget" rel="Ext#widget" class="docClass">Ext.widget</a></li>
45 <li><a href="Ext.html#getClass" rel="Ext#getClass" class="docClass">Ext.getClass</a></li>
46 <li><a href="Ext.html#getClassName" rel="Ext#getClassName" class="docClass">Ext.getClassName</a></li>
49 <div class="members"><div class="m-methods"><a name="methods"></a><div class="definedBy">Defined By</div><h3 class="mth p">Methods</h3><div id="method-create" class="member f ni"><a href="Ext.ClassManager.html#method-create" rel="method-create" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-create" class="viewSource">view source</a></div><a name="create"></a><a name="method-create"></a><a href="Ext.ClassManager.html#" rel="method-create" class="cls expand">create</a>(
50 <span class="pre">String className, Object data, Function createdFn</span>)
51 : Ext.Base</div><div class="description"><div class="short">Defines a class. This is usually invoked via the alias Ext.define
53 Ext.ClassManager.create('My.awesome.Class', {
54 ...</div><div class="long"><p>Defines a class. This is usually invoked via the alias <a href="Ext.html#define" rel="Ext#define" class="docClass">Ext.define</a></p>
56 <pre><code>Ext.ClassManager.create('My.awesome.Class', {
57 someProperty: 'something',
58 someMethod: function() { ... }
63 alert(this === My.awesome.Class); // alerts true
65 var myInstance = new this();
68 <h3 class="pa">Parameters</h3><ul><li><span class="pre">className</span> : String<div class="sub-desc"><p>The class name to create in string dot-namespaced format, for example:
69 'My.very.awesome.Class', 'FeedViewer.plugin.CoolPager'
70 It is highly recommended to follow this simple convention:</p>
73 <li>The root and the class name are 'CamelCased'</li>
74 <li>Everything else is lower-cased</li>
77 </div></li><li><span class="pre">data</span> : Object<div class="sub-desc"><p>The key - value pairs of properties to apply to this class. Property names can be of any valid
78 strings, except those in the reserved listed below:</p>
81 <li><code>mixins</code></li>
82 <li><code>statics</code></li>
83 <li><code>config</code></li>
84 <li><code>alias</code></li>
85 <li><code>self</code></li>
86 <li><code>singleton</code></li>
87 <li><code>alternateClassName</code></li>
90 </div></li><li><span class="pre">createdFn</span> : Function<div class="sub-desc"><p>Optional callback to execute after the class is created, the execution scope of which
91 (<code>this</code>) will be the newly created class itself.</p>
92 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.Base</span>
93 </li></ul></div></div></div><div id="method-get" class="member ni"><a href="Ext.ClassManager.html#method-get" rel="method-get" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-get" class="viewSource">view source</a></div><a name="get"></a><a name="method-get"></a><a href="Ext.ClassManager.html#" rel="method-get" class="cls expand">get</a>(
94 <span class="pre">String name</span>)
95 : Class</div><div class="description"><div class="short"><p>Retrieve a class by its name.</p>
96 </div><div class="long"><p>Retrieve a class by its name.</p>
97 <h3 class="pa">Parameters</h3><ul><li><span class="pre">name</span> : String<div class="sub-desc">
98 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Class</span> <p>class</p>
99 </li></ul></div></div></div><div id="method-getAliasesByName" class="member ni"><a href="Ext.ClassManager.html#method-getAliasesByName" rel="method-getAliasesByName" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-getAliasesByName" class="viewSource">view source</a></div><a name="getAliasesByName"></a><a name="method-getAliasesByName"></a><a href="Ext.ClassManager.html#" rel="method-getAliasesByName" class="cls expand">getAliasesByName</a>(
100 <span class="pre">String name</span>)
101 : Array</div><div class="description"><div class="short"><p>Get the aliases of a class by the class name</p>
102 </div><div class="long"><p>Get the aliases of a class by the class name</p>
103 <h3 class="pa">Parameters</h3><ul><li><span class="pre">name</span> : String<div class="sub-desc">
104 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span> <p>aliases</p>
105 </li></ul></div></div></div><div id="method-getByAlias" class="member ni"><a href="Ext.ClassManager.html#method-getByAlias" rel="method-getByAlias" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-getByAlias" class="viewSource">view source</a></div><a name="getByAlias"></a><a name="method-getByAlias"></a><a href="Ext.ClassManager.html#" rel="method-getByAlias" class="cls expand">getByAlias</a>(
106 <span class="pre">String alias</span>)
107 : Class</div><div class="description"><div class="short"><p>Get a reference to the class by its alias.</p>
108 </div><div class="long"><p>Get a reference to the class by its alias.</p>
109 <h3 class="pa">Parameters</h3><ul><li><span class="pre">alias</span> : String<div class="sub-desc">
110 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Class</span> <p>class</p>
111 </li></ul></div></div></div><div id="method-getClass" class="member ni"><a href="Ext.ClassManager.html#method-getClass" rel="method-getClass" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-getClass" class="viewSource">view source</a></div><a name="getClass"></a><a name="method-getClass"></a><a href="Ext.ClassManager.html#" rel="method-getClass" class="cls expand">getClass</a>(
112 <span class="pre">Object object</span>)
113 : Class</div><div class="description"><div class="short">Get the class of the provided object; returns null if it's not an instance
114 of any class created with Ext.define. This...</div><div class="long"><p>Get the class of the provided object; returns null if it's not an instance
115 of any class created with Ext.define. This is usually invoked by the shorthand <a href="Ext.html#getClass" rel="Ext#getClass" class="docClass">Ext.getClass</a></p>
117 <pre><code>var component = new Ext.Component();
119 Ext.ClassManager.getClass(component); // returns <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Ext.Component</a>
121 <h3 class="pa">Parameters</h3><ul><li><span class="pre">object</span> : Object<div class="sub-desc">
122 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Class</span> <p>class</p>
123 </li></ul></div></div></div><div id="method-getDisplayName" class="member ni"><a href="Ext.ClassManager.html#method-getDisplayName" rel="method-getDisplayName" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-getDisplayName" class="viewSource">view source</a></div><a name="getDisplayName"></a><a name="method-getDisplayName"></a><a href="Ext.ClassManager.html#" rel="method-getDisplayName" class="cls expand">getDisplayName</a>(
124 <span class="pre">Mixed object</span>)
125 : void</div><div class="description"><div class="short"><p> </p></div><div class="long">
126 <h3 class="pa">Parameters</h3><ul><li><span class="pre">object</span> : Mixed<div class="sub-desc">
127 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>
128 </li></ul></div></div></div><div id="method-getName" class="member ni"><a href="Ext.ClassManager.html#method-getName" rel="method-getName" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-getName" class="viewSource">view source</a></div><a name="getName"></a><a name="method-getName"></a><a href="Ext.ClassManager.html#" rel="method-getName" class="cls expand">getName</a>(
129 <span class="pre">Class/Object object</span>)
130 : String</div><div class="description"><div class="short">Get the name of the class by its reference or its instance;
131 usually invoked by the shorthand Ext.getClassName
133 Ext.Cl...</div><div class="long"><p>Get the name of the class by its reference or its instance;
134 usually invoked by the shorthand <a href="Ext.html#getClassName" rel="Ext#getClassName" class="docClass">Ext.getClassName</a></p>
136 <pre><code>Ext.ClassManager.getName(Ext.Action); // returns "Ext.Action"
138 <h3 class="pa">Parameters</h3><ul><li><span class="pre">object</span> : Class/Object<div class="sub-desc">
139 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">String</span> <p>className</p>
140 </li></ul></div></div></div><div id="method-getNameByAlias" class="member ni"><a href="Ext.ClassManager.html#method-getNameByAlias" rel="method-getNameByAlias" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-getNameByAlias" class="viewSource">view source</a></div><a name="getNameByAlias"></a><a name="method-getNameByAlias"></a><a href="Ext.ClassManager.html#" rel="method-getNameByAlias" class="cls expand">getNameByAlias</a>(
141 <span class="pre">String alias</span>)
142 : String</div><div class="description"><div class="short"><p>Get the name of a class by its alias.</p>
143 </div><div class="long"><p>Get the name of a class by its alias.</p>
144 <h3 class="pa">Parameters</h3><ul><li><span class="pre">alias</span> : String<div class="sub-desc">
145 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">String</span> <p>className</p>
146 </li></ul></div></div></div><div id="method-getNameByAlternate" class="member ni"><a href="Ext.ClassManager.html#method-getNameByAlternate" rel="method-getNameByAlternate" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-getNameByAlternate" class="viewSource">view source</a></div><a name="getNameByAlternate"></a><a name="method-getNameByAlternate"></a><a href="Ext.ClassManager.html#" rel="method-getNameByAlternate" class="cls expand">getNameByAlternate</a>(
147 <span class="pre">String alternate</span>)
148 : String</div><div class="description"><div class="short"><p>Get the name of a class by its alternate name.</p>
149 </div><div class="long"><p>Get the name of a class by its alternate name.</p>
150 <h3 class="pa">Parameters</h3><ul><li><span class="pre">alternate</span> : String<div class="sub-desc">
151 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">String</span> <p>className</p>
152 </li></ul></div></div></div><div id="method-getNamesByExpression" class="member ni"><a href="Ext.ClassManager.html#method-getNamesByExpression" rel="method-getNamesByExpression" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-getNamesByExpression" class="viewSource">view source</a></div><a name="getNamesByExpression"></a><a name="method-getNamesByExpression"></a><a href="Ext.ClassManager.html#" rel="method-getNamesByExpression" class="cls expand">getNamesByExpression</a>(
153 <span class="pre">String expression</span>)
154 : Array</div><div class="description"><div class="short">Converts a string expression to an array of matching class names. An expression can either refers to class aliases
155 or...</div><div class="long"><p>Converts a string expression to an array of matching class names. An expression can either refers to class aliases
156 or class names. Expressions support wildcards:</p>
158 <pre><code> // returns ['Ext.window.Window']
159 var window = Ext.ClassManager.getNamesByExpression('widget.window');
161 // returns ['widget.panel', 'widget.window', ...]
162 var allWidgets = Ext.ClassManager.getNamesByExpression('widget.*');
164 // returns ['Ext.data.Store', 'Ext.data.ArrayProxy', ...]
165 var allData = Ext.ClassManager.getNamesByExpression('Ext.data.*');
167 <h3 class="pa">Parameters</h3><ul><li><span class="pre">expression</span> : String<div class="sub-desc">
168 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span> <p>classNames</p>
169 </li></ul></div></div></div><div id="method-instantiate" class="member ni"><a href="Ext.ClassManager.html#method-instantiate" rel="method-instantiate" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-instantiate" class="viewSource">view source</a></div><a name="instantiate"></a><a name="method-instantiate"></a><a href="Ext.ClassManager.html#" rel="method-instantiate" class="cls expand">instantiate</a>(
170 <span class="pre">String name, Mixed args</span>)
171 : Object</div><div class="description"><div class="short">Instantiate a class by either full name, alias or alternate name; usually invoked by the convenient
172 shorthand Ext.cre...</div><div class="long"><p>Instantiate a class by either full name, alias or alternate name; usually invoked by the convenient
173 shorthand <a href="Ext.html#create" rel="Ext#create" class="docClass">Ext.create</a></p>
175 <p>If <a href="Ext.Loader.html" rel="Ext.Loader" class="docClass">Ext.Loader</a> is <a href="Ext.Loader.html#setConfig" rel="Ext.Loader#setConfig" class="docClass">enabled</a> and the class has not been defined yet, it will
176 attempt to load the class via synchronous loading.</p>
178 <p>For example, all these three lines return the same result:</p>
181 var window = Ext.ClassManager.instantiate('widget.window', { width: 600, height: 800, ... });
184 var window = Ext.ClassManager.instantiate('Ext.Window', { width: 600, height: 800, ... });
187 var window = Ext.ClassManager.instantiate('Ext.window.Window', { width: 600, height: 800, ... });
189 <h3 class="pa">Parameters</h3><ul><li><span class="pre">name</span> : String<div class="sub-desc">
190 </div></li><li><span class="pre">args</span> : Mixed<div class="sub-desc"><p>,... Additional arguments after the name will be passed to the class' constructor.</p>
191 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span> <p>instance</p>
192 </li></ul></div></div></div><div id="method-instantiateByAlias" class="member ni"><a href="Ext.ClassManager.html#method-instantiateByAlias" rel="method-instantiateByAlias" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-instantiateByAlias" class="viewSource">view source</a></div><a name="instantiateByAlias"></a><a name="method-instantiateByAlias"></a><a href="Ext.ClassManager.html#" rel="method-instantiateByAlias" class="cls expand">instantiateByAlias</a>(
193 <span class="pre">String alias, Mixed args</span>)
194 : Object</div><div class="description"><div class="short">Instantiate a class by its alias; usually invoked by the convenient shorthand Ext.createByAlias
195 If Ext.Loader is enab...</div><div class="long"><p>Instantiate a class by its alias; usually invoked by the convenient shorthand <a href="Ext.html#createByAlias" rel="Ext#createByAlias" class="docClass">Ext.createByAlias</a>
196 If <a href="Ext.Loader.html" rel="Ext.Loader" class="docClass">Ext.Loader</a> is <a href="Ext.Loader.html#setConfig" rel="Ext.Loader#setConfig" class="docClass">enabled</a> and the class has not been defined yet, it will
197 attempt to load the class via synchronous loading.</p>
199 <pre><code>var window = Ext.ClassManager.instantiateByAlias('widget.window', { width: 600, height: 800, ... });
201 <h3 class="pa">Parameters</h3><ul><li><span class="pre">alias</span> : String<div class="sub-desc">
202 </div></li><li><span class="pre">args</span> : Mixed<div class="sub-desc"><p>,... Additional arguments after the alias will be passed to the
203 class constructor.</p>
204 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span> <p>instance</p>
205 </li></ul></div></div></div><div id="method-isCreated" class="member ni"><a href="Ext.ClassManager.html#method-isCreated" rel="method-isCreated" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-isCreated" class="viewSource">view source</a></div><a name="isCreated"></a><a name="method-isCreated"></a><a href="Ext.ClassManager.html#" rel="method-isCreated" class="cls expand">isCreated</a>(
206 <span class="pre">String className</span>)
207 : Boolean</div><div class="description"><div class="short"><p>Checks if a class has already been created.</p>
208 </div><div class="long"><p>Checks if a class has already been created.</p>
209 <h3 class="pa">Parameters</h3><ul><li><span class="pre">className</span> : String<div class="sub-desc">
210 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span> <p>exist</p>
211 </li></ul></div></div></div><div id="method-registerPostprocessor" class="member ni"><a href="Ext.ClassManager.html#method-registerPostprocessor" rel="method-registerPostprocessor" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-registerPostprocessor" class="viewSource">view source</a></div><a name="registerPostprocessor"></a><a name="method-registerPostprocessor"></a><a href="Ext.ClassManager.html#" rel="method-registerPostprocessor" class="cls expand">registerPostprocessor</a>(
212 <span class="pre">String name, Function postprocessor, Object always</span>)
213 : void</div><div class="description"><div class="short"><p>Register a post-processor function.</p>
214 </div><div class="long"><p>Register a post-processor function.</p>
215 <h3 class="pa">Parameters</h3><ul><li><span class="pre">name</span> : String<div class="sub-desc">
216 </div></li><li><span class="pre">postprocessor</span> : Function<div class="sub-desc">
217 </div></li><li><span class="pre">always</span> : Object<div class="sub-desc">
218 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>
219 </li></ul></div></div></div><div id="method-set" class="member ni"><a href="Ext.ClassManager.html#method-set" rel="method-set" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-set" class="viewSource">view source</a></div><a name="set"></a><a name="method-set"></a><a href="Ext.ClassManager.html#" rel="method-set" class="cls expand">set</a>(
220 <span class="pre">String name, Object value</span>)
221 : Ext.ClassManager</div><div class="description"><div class="short"><p>Sets a name reference to a class.</p>
222 </div><div class="long"><p>Sets a name reference to a class.</p>
223 <h3 class="pa">Parameters</h3><ul><li><span class="pre">name</span> : String<div class="sub-desc">
224 </div></li><li><span class="pre">value</span> : Object<div class="sub-desc">
225 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.ClassManager</span> <p>this</p>
226 </li></ul></div></div></div><div id="method-setAlias" class="member ni"><a href="Ext.ClassManager.html#method-setAlias" rel="method-setAlias" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-setAlias" class="viewSource">view source</a></div><a name="setAlias"></a><a name="method-setAlias"></a><a href="Ext.ClassManager.html#" rel="method-setAlias" class="cls expand">setAlias</a>(
227 <span class="pre">Class/String cls, String alias</span>)
228 : void</div><div class="description"><div class="short"><p>Register the alias for a class.</p>
229 </div><div class="long"><p>Register the alias for a class.</p>
230 <h3 class="pa">Parameters</h3><ul><li><span class="pre">cls</span> : Class/String<div class="sub-desc"><p>a reference to a class or a className</p>
231 </div></li><li><span class="pre">alias</span> : String<div class="sub-desc"><p>Alias to use when referring to this class</p>
232 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>
233 </li></ul></div></div></div><div id="method-setDefaultPostprocessorPosition" class="member ni"><a href="Ext.ClassManager.html#method-setDefaultPostprocessorPosition" rel="method-setDefaultPostprocessorPosition" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-setDefaultPostprocessorPosition" class="viewSource">view source</a></div><a name="setDefaultPostprocessorPosition"></a><a name="method-setDefaultPostprocessorPosition"></a><a href="Ext.ClassManager.html#" rel="method-setDefaultPostprocessorPosition" class="cls expand">setDefaultPostprocessorPosition</a>(
234 <span class="pre">String name, String offset, String relativeName</span>)
235 : Ext.ClassManager</div><div class="description"><div class="short"><p>Insert this post-processor at a specific position in the stack, optionally relative to
236 any existing post-processor</p>
237 </div><div class="long"><p>Insert this post-processor at a specific position in the stack, optionally relative to
238 any existing post-processor</p>
239 <h3 class="pa">Parameters</h3><ul><li><span class="pre">name</span> : String<div class="sub-desc"><p>The post-processor name. Note that it needs to be registered with
240 <a href="Ext.ClassManager.html#registerPostprocessor" rel="Ext.ClassManager#registerPostprocessor" class="docClass">registerPostprocessor</a> before this</p>
241 </div></li><li><span class="pre">offset</span> : String<div class="sub-desc"><p>The insertion position. Four possible values are:
242 'first', 'last', or: 'before', 'after' (relative to the name provided in the third argument)</p>
243 </div></li><li><span class="pre">relativeName</span> : String<div class="sub-desc">
244 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.ClassManager</span> <p>this</p>
245 </li></ul></div></div></div><div id="method-setDefaultPostprocessors" class="member ni"><a href="Ext.ClassManager.html#method-setDefaultPostprocessors" rel="method-setDefaultPostprocessors" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-setDefaultPostprocessors" class="viewSource">view source</a></div><a name="setDefaultPostprocessors"></a><a name="method-setDefaultPostprocessors"></a><a href="Ext.ClassManager.html#" rel="method-setDefaultPostprocessors" class="cls expand">setDefaultPostprocessors</a>(
246 <span class="pre">String/Array The</span>)
247 : Ext.ClassManager</div><div class="description"><div class="short"><p>Set the default post processors array stack which are applied to every class.</p>
248 </div><div class="long"><p>Set the default post processors array stack which are applied to every class.</p>
249 <h3 class="pa">Parameters</h3><ul><li><span class="pre">The</span> : String/Array<div class="sub-desc"><p>name of a registered post processor or an array of registered names.</p>
250 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.ClassManager</span> <p>this</p>
251 </li></ul></div></div></div><div id="method-setNamespace" class="member ni"><a href="Ext.ClassManager.html#method-setNamespace" rel="method-setNamespace" class="expand more ar"><span> </span></a><div class="title"><div class="meta"><a href="Ext.ClassManager.html" class="definedIn docClass">Ext.ClassManager</a><br/><a href="../source/ClassManager.html#Ext-ClassManager-method-setNamespace" class="viewSource">view source</a></div><a name="setNamespace"></a><a name="method-setNamespace"></a><a href="Ext.ClassManager.html#" rel="method-setNamespace" class="cls expand">setNamespace</a>(
252 <span class="pre">String name, Mixed value</span>)
253 : void</div><div class="description"><div class="short">Creates a namespace and assign the value to the created object
255 Ext.ClassManager.setNamespace('MyCompany.pkg.Example'...</div><div class="long"><p>Creates a namespace and assign the <code>value</code> to the created object</p>
257 <pre><code>Ext.ClassManager.setNamespace('MyCompany.pkg.Example', someObject);
259 alert(MyCompany.pkg.Example === someObject); // alerts true
261 <h3 class="pa">Parameters</h3><ul><li><span class="pre">name</span> : String<div class="sub-desc">
262 </div></li><li><span class="pre">value</span> : Mixed<div class="sub-desc">
263 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>
264 </li></ul></div></div></div></div></div></div></div><div id="pageContent"></div></div></div></div></body></html>