Subversion Repositories eFlore/Applications.cel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 aperonnet 1
        <div class="body-wrap">
2
        <div class="top-tools">
3
            <a class="inner-link" href="#Ext.ComponentMgr-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4
            <a class="inner-link" href="#Ext.ComponentMgr-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5
            <a class="inner-link" href="#Ext.ComponentMgr-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6
                        <a class="bookmark" href="../docs/?class=Ext.ComponentMgr"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
7
        </div>
8
                <h1>Class Ext.ComponentMgr</h1>
9
        <table cellspacing="0">
10
            <tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
11
            <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/ComponentMgr.js" target="_blank">ComponentMgr.js</a></td></tr>
12
            <tr><td class="label">Class:</td><td class="hd-info">ComponentMgr</td></tr>
13
                                    <tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
14
                    </table>
15
        <div class="description">
16
            <p>Provides a registry of all Components (specifically subclasses of
17
<a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a>) on a page so that they can be easily accessed by
18
component id (see <a ext:cls="Ext.getCmp" href="output/Ext.getCmp.html">Ext.getCmp</a>).</p>
19
<p>This object also provides a registry of available Component <i>classes</i>
20
indexed by a mnemonic code known as the Component's <a ext:cls="Ext.Component" ext:member="xtype" href="output/Ext.Component.html#xtype">Ext.Component.xtype</a>.
21
The <tt>xtype</tt> provides a way to avoid instantiating child Components
22
when creating a full, nested config object for a complete Ext page.</p>
23
<p>
24
A child Component may be specified simply as a <i>config object</i>
25
as long as the correct xtype is specified so that if and when the Component
26
needs rendering, the correct type can be looked up for lazy instantiation.</p>
27
<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>
28
 
29
        <div class="hr"></div>
30
                <a id="Ext.ComponentMgr-props"></a>
31
        <h2>Public Properties</h2>
32
                <table cellspacing="0" class="member-table">
33
            <tr>
34
                <th class="sig-header" colspan="2">Property</th>
35
                <th class="msource-header">Defined By</th>
36
            </tr>
37
                <tr class="property-row expandable">
38
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
39
        <td class="sig">
40
        <a id="Ext.ComponentMgr-all"></a>
41
            <b>all</b> : MixedCollection            <div class="mdesc">
42
                        <div class="short">The MixedCollection used internally for the component cache. An example usage may be subscribing to
43
events on the Mix...</div>
44
            <div class="long">
45
                The MixedCollection used internally for the component cache. An example usage may be subscribing to
46
events on the MixedCollection to monitor addition or removal.  Read-only.            </div>
47
                        </div>
48
        </td>
49
        <td class="msource">ComponentMgr</td>
50
    </tr>
51
            </table>
52
                <a id="Ext.ComponentMgr-methods"></a>
53
        <h2>Public Methods</h2>
54
                <table cellspacing="0" class="member-table">
55
            <tr>
56
                <th class="sig-header" colspan="2">Method</th>
57
                <th class="msource-header">Defined By</th>
58
            </tr>
59
                <tr class="method-row expandable">
60
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
61
        <td class="sig">
62
        <a id="Ext.ComponentMgr-get"></a>
63
            <b>get</b>(&nbsp;<code>String id</code>&nbsp;) : Ext.Component            <div class="mdesc">
64
                        <div class="short">Returns a component by id</div>
65
            <div class="long">
66
                Returns a component by id    <div class="mdetail-params">
67
        <strong>Parameters:</strong>
68
        <ul><li><code>id</code> : String<div class="sub-desc">The component id</div></li>        </ul>
69
        <strong>Returns:</strong>
70
        <ul>
71
            <li><code>Ext.Component</code></li>
72
        </ul>
73
    </div>
74
                </div>
75
                        </div>
76
        </td>
77
        <td class="msource">ComponentMgr</td>
78
    </tr>
79
        <tr class="method-row alt expandable">
80
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
81
        <td class="sig">
82
        <a id="Ext.ComponentMgr-onAvailable"></a>
83
            <b>onAvailable</b>(&nbsp;<code>String id</code>, <code>Function fn</code>, <code>Object scope</code>&nbsp;) : void            <div class="mdesc">
84
                        <div class="short">Registers a function that will be called when a specified component is added to ComponentMgr</div>
85
            <div class="long">
86
                Registers a function that will be called when a specified component is added to ComponentMgr    <div class="mdetail-params">
87
        <strong>Parameters:</strong>
88
        <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>
89
        <strong>Returns:</strong>
90
        <ul>
91
            <li><code>void</code></li>
92
        </ul>
93
    </div>
94
                </div>
95
                        </div>
96
        </td>
97
        <td class="msource">ComponentMgr</td>
98
    </tr>
99
        <tr class="method-row expandable">
100
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
101
        <td class="sig">
102
        <a id="Ext.ComponentMgr-register"></a>
103
            <b>register</b>(&nbsp;<code>Ext.Component c</code>&nbsp;) : void            <div class="mdesc">
104
                        <div class="short">Registers a component.</div>
105
            <div class="long">
106
                Registers a component.    <div class="mdetail-params">
107
        <strong>Parameters:</strong>
108
        <ul><li><code>c</code> : Ext.Component<div class="sub-desc">The component</div></li>        </ul>
109
        <strong>Returns:</strong>
110
        <ul>
111
            <li><code>void</code></li>
112
        </ul>
113
    </div>
114
                </div>
115
                        </div>
116
        </td>
117
        <td class="msource">ComponentMgr</td>
118
    </tr>
119
        <tr class="method-row alt expandable">
120
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
121
        <td class="sig">
122
        <a id="Ext.ComponentMgr-registerType"></a>
123
            <b>registerType</b>(&nbsp;<code>String xtype</code>, <code>Constructor cls</code>&nbsp;) : void            <div class="mdesc">
124
                        <div class="short">Registers a new Component constructor, keyed by a new
125
Ext.Component.xtype.
126
Use this method to register new subclasses...</div>
127
            <div class="long">
128
                Registers a new Component constructor, keyed by a new
129
<a ext:cls="Ext.Component" ext:member="xtype" href="output/Ext.Component.html#xtype">Ext.Component.xtype</a>.<br><br>
130
Use this method to register new subclasses of <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> so
131
that lazy instantiation may be used when specifying child Components.
132
see <a ext:cls="Ext.Container" ext:member="items" href="output/Ext.Container.html#items">Ext.Container.items</a>    <div class="mdetail-params">
133
        <strong>Parameters:</strong>
134
        <ul><li><code>xtype</code> : String<div class="sub-desc">The mnemonic string by which the Component class
135
may be looked up.</div></li><li><code>cls</code> : Constructor<div class="sub-desc">The new Component class.</div></li>        </ul>
136
        <strong>Returns:</strong>
137
        <ul>
138
            <li><code>void</code></li>
139
        </ul>
140
    </div>
141
                </div>
142
                        </div>
143
        </td>
144
        <td class="msource">ComponentMgr</td>
145
    </tr>
146
        <tr class="method-row expandable">
147
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
148
        <td class="sig">
149
        <a id="Ext.ComponentMgr-unregister"></a>
150
            <b>unregister</b>(&nbsp;<code>Ext.Component c</code>&nbsp;) : void            <div class="mdesc">
151
                        <div class="short">Unregisters a component.</div>
152
            <div class="long">
153
                Unregisters a component.    <div class="mdetail-params">
154
        <strong>Parameters:</strong>
155
        <ul><li><code>c</code> : Ext.Component<div class="sub-desc">The component</div></li>        </ul>
156
        <strong>Returns:</strong>
157
        <ul>
158
            <li><code>void</code></li>
159
        </ul>
160
    </div>
161
                </div>
162
                        </div>
163
        </td>
164
        <td class="msource">ComponentMgr</td>
165
    </tr>
166
            </table>
167
                <a id="Ext.ComponentMgr-events"></a>
168
        <h2>Public Events</h2>
169
        <div class="no-members">This class has no public events.</div>
170
        </div>