+++ /dev/null
- <div class="body-wrap">
- <div class="top-tools">
- <a class="inner-link" href="#Ext.ComponentMgr-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
- <a class="inner-link" href="#Ext.ComponentMgr-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
- <a class="inner-link" href="#Ext.ComponentMgr-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
- <a class="bookmark" href="../docs/?class=Ext.ComponentMgr"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
- </div>
- <h1>Class Ext.ComponentMgr</h1>
- <table cellspacing="0">
- <tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
- <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/ComponentMgr.js" target="_blank">ComponentMgr.js</a></td></tr>
- <tr><td class="label">Class:</td><td class="hd-info">ComponentMgr</td></tr>
- <tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
- </table>
- <div class="description">
- *
-<p>Provides a registry of all Components (instances of <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> or any subclass
-thereof) on a page so that they can be easily accessed by component id (see <a ext:cls="Ext.ComponentMgr" ext:member="get" href="output/Ext.ComponentMgr.html#get">get</a>, or
-the convenience method <a ext:cls="Ext" ext:member="getCmp" href="output/Ext.html#getCmp">Ext.getCmp</a>).</p>
-<p>This object also provides a registry of available Component <i>classes</i>
-indexed by a mnemonic code known as the Component's <a ext:cls="Ext.Component" ext:member="xtype" href="output/Ext.Component.html#xtype">xtype</a>.
-The <tt>xtype</tt> provides a way to avoid instantiating child Components
-when creating a full, nested config object for a complete Ext page.</p>
-<p>A child Component may be specified simply as a <i>config object</i>
-as long as the correct xtype is specified so that if and when the Component
-needs rendering, the correct type can be looked up for lazy instantiation.</p>
-<p>For a list of all available xtypes, see <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a>.</p><br><br><i>This class is a singleton and cannot be created directly.</i> </div>
-
- <div class="hr"></div>
- <a id="Ext.ComponentMgr-props"></a>
- <h2>Public Properties</h2>
- <table cellspacing="0" class="member-table">
- <tr>
- <th class="sig-header" colspan="2">Property</th>
- <th class="msource-header">Defined By</th>
- </tr>
- <tr class="property-row expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.ComponentMgr-all"></a>\r
- <b>all</b> : MixedCollection <div class="mdesc">\r
- <div class="short">The MixedCollection used internally for the component cache. An example usage may be subscribing to
-events on the Mix...</div>\r
- <div class="long">\r
- The MixedCollection used internally for the component cache. An example usage may be subscribing to
-events on the MixedCollection to monitor addition or removal. Read-only. </div>\r
- </div>\r
- </td>\r
- <td class="msource">ComponentMgr</td>\r
- </tr>\r
- </table>
- <a id="Ext.ComponentMgr-methods"></a>
- <h2>Public Methods</h2>
- <table cellspacing="0" class="member-table">
- <tr>
- <th class="sig-header" colspan="2">Method</th>
- <th class="msource-header">Defined By</th>
- </tr>
- <tr class="method-row expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.ComponentMgr-create"></a>\r
- <b>create</b>( <code>config {Object}</code>, <code>defaultType {Constructor}</code> ) : Ext.Component <div class="mdesc">\r
- <div class="short">Creates a new Component from the specified config object using the
-config object's xtype to determine the class to in...</div>\r
- <div class="long">\r
- Creates a new Component from the specified config object using the
-config object's <a ext:cls="Ext.component" ext:member="xtype" href="output/Ext.component.html#xtype">xtype</a> to determine the class to instantiate. <div class="mdetail-params">\r
- <strong>Parameters:</strong>\r
- <ul><li><code>{Object}</code> : config<div class="sub-desc">A configuration object for the Component you wish to create.</div></li><li><code>{Constructor}</code> : defaultType<div class="sub-desc">The constructor to provide the default Component type if
-the config object does not contain an xtype. (Optional if the config contains an xtype).</div></li> </ul>\r
- <strong>Returns:</strong>\r
- <ul>\r
- <li><code>Ext.Component</code><div class="sub-desc">The newly instantiated Component.</div></li>\r
- </ul>\r
- </div>\r
- </div>\r
- </div>\r
- </td>\r
- <td class="msource">ComponentMgr</td>\r
- </tr>\r
- <tr class="method-row alt expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.ComponentMgr-get"></a>\r
- <b>get</b>( <code>String id</code> ) : Ext.Component <div class="mdesc">\r
- <div class="short">Returns a component by id</div>\r
- <div class="long">\r
- Returns a component by id <div class="mdetail-params">\r
- <strong>Parameters:</strong>\r
- <ul><li><code>id</code> : String<div class="sub-desc">The component id</div></li> </ul>\r
- <strong>Returns:</strong>\r
- <ul>\r
- <li><code>Ext.Component</code></li>\r
- </ul>\r
- </div>\r
- </div>\r
- </div>\r
- </td>\r
- <td class="msource">ComponentMgr</td>\r
- </tr>\r
- <tr class="method-row expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.ComponentMgr-onAvailable"></a>\r
- <b>onAvailable</b>( <code>String id</code>, <code>Function fn</code>, <code>Object scope</code> ) : void <div class="mdesc">\r
- <div class="short">Registers a function that will be called when a specified component is added to ComponentMgr</div>\r
- <div class="long">\r
- Registers a function that will be called when a specified component is added to ComponentMgr <div class="mdetail-params">\r
- <strong>Parameters:</strong>\r
- <ul><li><code>id</code> : String<div class="sub-desc">The component id</div></li><li><code>fn</code> : Function<div class="sub-desc">The callback function</div></li><li><code>scope</code> : Object<div class="sub-desc">The scope of the callback</div></li> </ul>\r
- <strong>Returns:</strong>\r
- <ul>\r
- <li><code>void</code></li>\r
- </ul>\r
- </div>\r
- </div>\r
- </div>\r
- </td>\r
- <td class="msource">ComponentMgr</td>\r
- </tr>\r
- <tr class="method-row alt expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.ComponentMgr-register"></a>\r
- <b>register</b>( <code>Ext.Component c</code> ) : void <div class="mdesc">\r
- <div class="short">Registers a component.</div>\r
- <div class="long">\r
- Registers a component. <div class="mdetail-params">\r
- <strong>Parameters:</strong>\r
- <ul><li><code>c</code> : Ext.Component<div class="sub-desc">The component</div></li> </ul>\r
- <strong>Returns:</strong>\r
- <ul>\r
- <li><code>void</code></li>\r
- </ul>\r
- </div>\r
- </div>\r
- </div>\r
- </td>\r
- <td class="msource">ComponentMgr</td>\r
- </tr>\r
- <tr class="method-row expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.ComponentMgr-registerType"></a>\r
- <b>registerType</b>( <code>String xtype</code>, <code>Constructor cls</code> ) : void <div class="mdesc">\r
- <div class="short">Registers a new Component constructor, keyed by a new
-Ext.Component.xtype.
-Use this method to register new subclasses...</div>\r
- <div class="long">\r
- <p>Registers a new Component constructor, keyed by a new
-<a ext:cls="Ext.Component" ext:member="xtype" href="output/Ext.Component.html#xtype">Ext.Component.xtype</a>.</p>
-<p>Use this method to register new subclasses of <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> so
-that lazy instantiation may be used when specifying child Components.
-see <a ext:cls="Ext.Container" ext:member="items" href="output/Ext.Container.html#items">Ext.Container.items</a></p> <div class="mdetail-params">\r
- <strong>Parameters:</strong>\r
- <ul><li><code>xtype</code> : String<div class="sub-desc">The mnemonic string by which the Component class
-may be looked up.</div></li><li><code>cls</code> : Constructor<div class="sub-desc">The new Component class.</div></li> </ul>\r
- <strong>Returns:</strong>\r
- <ul>\r
- <li><code>void</code></li>\r
- </ul>\r
- </div>\r
- </div>\r
- </div>\r
- </td>\r
- <td class="msource">ComponentMgr</td>\r
- </tr>\r
- <tr class="method-row alt expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.ComponentMgr-unregister"></a>\r
- <b>unregister</b>( <code>Ext.Component c</code> ) : void <div class="mdesc">\r
- <div class="short">Unregisters a component.</div>\r
- <div class="long">\r
- Unregisters a component. <div class="mdetail-params">\r
- <strong>Parameters:</strong>\r
- <ul><li><code>c</code> : Ext.Component<div class="sub-desc">The component</div></li> </ul>\r
- <strong>Returns:</strong>\r
- <ul>\r
- <li><code>void</code></li>\r
- </ul>\r
- </div>\r
- </div>\r
- </div>\r
- </td>\r
- <td class="msource">ComponentMgr</td>\r
- </tr>\r
- </table>
- <a id="Ext.ComponentMgr-events"></a>
- <h2>Public Events</h2>
- <div class="no-members">This class has no public events.</div>
- </div>
\ No newline at end of file