Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | 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.util.MixedCollection-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4
            <a class="inner-link" href="#Ext.util.MixedCollection-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5
            <a class="inner-link" href="#Ext.util.MixedCollection-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6
                            <a class="inner-link" href="#Ext.util.MixedCollection-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7
                        <a class="bookmark" href="../docs/?class=Ext.util.MixedCollection"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
8
        </div>
9
                <div class="inheritance res-block">
10
<pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
11
  <img src="resources/elbow-end.gif"/>MixedCollection</pre></div>
12
                <h1>Class Ext.util.MixedCollection</h1>
13
        <table cellspacing="0">
14
            <tr><td class="label">Package:</td><td class="hd-info">Ext.util</td></tr>
15
            <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/util/MixedCollection.js" target="_blank">MixedCollection.js</a></td></tr>
16
            <tr><td class="label">Class:</td><td class="hd-info">MixedCollection</td></tr>
17
                        <tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.StoreMgr" href="output/Ext.StoreMgr.html">StoreMgr</a></td></tr>
18
                                    <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a></td></tr>
19
                    </table>
20
        <div class="description">
21
            A Collection class that maintains both numeric indexes and keys and exposes events.        </div>
22
 
23
        <div class="hr"></div>
24
                <a id="Ext.util.MixedCollection-configs"></a>
25
        <h2>Config Options</h2>
26
        <table cellspacing="0" class="member-table">
27
            <tr>
28
                <th class="sig-header" colspan="2">Config Options</th>
29
                <th class="msource-header">Defined By</th>
30
            </tr>
31
                <tr class="config-row inherited expandable">
32
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
33
        <td class="sig">
34
        <a id="Ext.util.MixedCollection-listeners"></a>
35
            <b>listeners</b> : Object            <div class="mdesc">
36
                        <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
37
            <div class="long">
38
                A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once.            </div>
39
                        </div>
40
        </td>
41
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
42
    </tr>
43
            </table>
44
                <a id="Ext.util.MixedCollection-props"></a>
45
        <h2>Public Properties</h2>
46
        <div class="no-members">This class has no public properties.</div>        <a id="Ext.util.MixedCollection-methods"></a>
47
        <h2>Public Methods</h2>
48
                <table cellspacing="0" class="member-table">
49
            <tr>
50
                <th class="sig-header" colspan="2">Method</th>
51
                <th class="msource-header">Defined By</th>
52
            </tr>
53
                <tr class="method-row expandable">
54
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
55
        <td class="sig">
56
        <a id="Ext.util.MixedCollection-MixedCollection"></a>
57
            <b>MixedCollection</b>(&nbsp;<code>Boolean allowFunctions</code>, <code>Function keyFn</code>&nbsp;)            <div class="mdesc">
58
                        <div class="short"></div>
59
            <div class="long">
60
                    <div class="mdetail-params">
61
        <strong>Parameters:</strong>
62
        <ul><li><code>allowFunctions</code> : Boolean<div class="sub-desc">True if the addAll function should add function references to the
63
collection (defaults to false)</div></li><li><code>keyFn</code> : Function<div class="sub-desc">A function that can accept an item of the type(s) stored in this MixedCollection
64
and return the key value for that item. This is used when available to look up the key on items that
65
were passed without an explicit key parameter to a MixedCollection method. Passing this parameter is
66
equivalent to providing an implementation for the <a ext:cls="Ext.util.MixedCollection" ext:member="getKey" href="output/Ext.util.MixedCollection.html#getKey">getKey</a> method.</div></li>        </ul>
67
        <strong>Returns:</strong>
68
        <ul>
69
            <li><code></code></li>
70
        </ul>
71
    </div>
72
                </div>
73
                        </div>
74
        </td>
75
        <td class="msource">MixedCollection</td>
76
    </tr>
77
        <tr class="method-row alt expandable">
78
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
79
        <td class="sig">
80
        <a id="Ext.util.MixedCollection-add"></a>
81
            <b>add</b>(&nbsp;<code>String key</code>, <code>Object o</code>&nbsp;) : Object            <div class="mdesc">
82
                        <div class="short">Adds an item to the collection. Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="add" href="output/Ext.util.MixedCollection.html#add">add</a> event when complete.</div>
83
            <div class="long">
84
                Adds an item to the collection. Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="add" href="output/Ext.util.MixedCollection.html#add">add</a> event when complete.    <div class="mdetail-params">
85
        <strong>Parameters:</strong>
86
        <ul><li><code>key</code> : String<div class="sub-desc">The key to associate with the item</div></li><li><code>o</code> : Object<div class="sub-desc">The item to add.</div></li>        </ul>
87
        <strong>Returns:</strong>
88
        <ul>
89
            <li><code>Object</code><div class="sub-desc">The item added.</div></li>
90
        </ul>
91
    </div>
92
                </div>
93
                        </div>
94
        </td>
95
        <td class="msource">MixedCollection</td>
96
    </tr>
97
        <tr class="method-row expandable">
98
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
99
        <td class="sig">
100
        <a id="Ext.util.MixedCollection-addAll"></a>
101
            <b>addAll</b>(&nbsp;<code>Object/Array objs</code>&nbsp;) : void            <div class="mdesc">
102
                        <div class="short">Adds all elements of an Array or an Object to the collection.</div>
103
            <div class="long">
104
                Adds all elements of an Array or an Object to the collection.    <div class="mdetail-params">
105
        <strong>Parameters:</strong>
106
        <ul><li><code>objs</code> : Object/Array<div class="sub-desc">An Object containing properties which will be added to the collection, or
107
an Array of values, each of which are added to the collection.</div></li>        </ul>
108
        <strong>Returns:</strong>
109
        <ul>
110
            <li><code>void</code></li>
111
        </ul>
112
    </div>
113
                </div>
114
                        </div>
115
        </td>
116
        <td class="msource">MixedCollection</td>
117
    </tr>
118
        <tr class="method-row inherited alt expandable">
119
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
120
        <td class="sig">
121
        <a id="Ext.util.MixedCollection-addEvents"></a>
122
            <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void            <div class="mdesc">
123
                        <div class="short">Used to define events on this Observable</div>
124
            <div class="long">
125
                Used to define events on this Observable    <div class="mdetail-params">
126
        <strong>Parameters:</strong>
127
        <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li>        </ul>
128
        <strong>Returns:</strong>
129
        <ul>
130
            <li><code>void</code></li>
131
        </ul>
132
    </div>
133
                </div>
134
                        </div>
135
        </td>
136
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
137
    </tr>
138
        <tr class="method-row inherited expandable">
139
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
140
        <td class="sig">
141
        <a id="Ext.util.MixedCollection-addListener"></a>
142
            <b>addListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
143
                        <div class="short">Appends an event handler to this component</div>
144
            <div class="long">
145
                Appends an event handler to this component    <div class="mdetail-params">
146
        <strong>Parameters:</strong>
147
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
148
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
149
properties. This may contain any of the following properties:<ul>
150
<li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
151
<li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
152
<li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
153
<li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
154
by the specified number of milliseconds. If the event fires again within that time, the original
155
handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
156
</ul><br>
157
<p>
158
<b>Combining Options</b><br>
159
Using the options argument, it is possible to combine different types of listeners:<br>
160
<br>
161
A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
162
<pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
163
    single: true,
164
    delay: 100,
165
    forumId: 4
166
});</code></pre>
167
<p>
168
<b>Attaching multiple handlers in 1 call</b><br>
169
The method also allows for a single argument to be passed which is a config object containing properties
170
which specify multiple handlers.
171
<p>
172
<pre><code>foo.on({
173
    <em>'click'</em> : {
174
        fn: <b>this</b>.onClick,
175
        scope: <b>this</b>,
176
        delay: 100
177
    },
178
    <em>'mouseover'</em> : {
179
        fn: <b>this</b>.onMouseOver,
180
        scope: <b>this</b>
181
    },
182
    <em>'mouseout'</em> : {
183
        fn: <b>this</b>.onMouseOut,
184
        scope: <b>this</b>
185
    }
186
});</code></pre>
187
<p>
188
Or a shorthand syntax:<br>
189
<pre><code>foo.on({
190
    <em>'click'</em> : <b>this</b>.onClick,
191
    <em>'mouseover'</em> : <b>this</b>.onMouseOver,
192
    <em>'mouseout'</em> : <b>this</b>.onMouseOut,
193
     scope: <b>this</b>
194
});</code></pre></div></li>        </ul>
195
        <strong>Returns:</strong>
196
        <ul>
197
            <li><code>void</code></li>
198
        </ul>
199
    </div>
200
                </div>
201
                        </div>
202
        </td>
203
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
204
    </tr>
205
        <tr class="method-row alt expandable">
206
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
207
        <td class="sig">
208
        <a id="Ext.util.MixedCollection-clear"></a>
209
            <b>clear</b>() : void            <div class="mdesc">
210
                        <div class="short">Removes all items from the collection.  Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="clear" href="output/Ext.util.MixedCollection.html#clear">clear</a> event when complete.</div>
211
            <div class="long">
212
                Removes all items from the collection.  Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="clear" href="output/Ext.util.MixedCollection.html#clear">clear</a> event when complete.    <div class="mdetail-params">
213
        <strong>Parameters:</strong>
214
        <ul><li>None.</li>        </ul>
215
        <strong>Returns:</strong>
216
        <ul>
217
            <li><code>void</code></li>
218
        </ul>
219
    </div>
220
                </div>
221
                        </div>
222
        </td>
223
        <td class="msource">MixedCollection</td>
224
    </tr>
225
        <tr class="method-row expandable">
226
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
227
        <td class="sig">
228
        <a id="Ext.util.MixedCollection-clone"></a>
229
            <b>clone</b>() : MixedCollection            <div class="mdesc">
230
                        <div class="short">Creates a duplicate of this collection</div>
231
            <div class="long">
232
                Creates a duplicate of this collection    <div class="mdetail-params">
233
        <strong>Parameters:</strong>
234
        <ul><li>None.</li>        </ul>
235
        <strong>Returns:</strong>
236
        <ul>
237
            <li><code>MixedCollection</code></li>
238
        </ul>
239
    </div>
240
                </div>
241
                        </div>
242
        </td>
243
        <td class="msource">MixedCollection</td>
244
    </tr>
245
        <tr class="method-row alt expandable">
246
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
247
        <td class="sig">
248
        <a id="Ext.util.MixedCollection-contains"></a>
249
            <b>contains</b>(&nbsp;<code>Object o</code>&nbsp;) : Boolean            <div class="mdesc">
250
                        <div class="short">Returns true if the collection contains the passed Object as an item.</div>
251
            <div class="long">
252
                Returns true if the collection contains the passed Object as an item.    <div class="mdetail-params">
253
        <strong>Parameters:</strong>
254
        <ul><li><code>o</code> : Object<div class="sub-desc">The Object to look for in the collection.</div></li>        </ul>
255
        <strong>Returns:</strong>
256
        <ul>
257
            <li><code>Boolean</code><div class="sub-desc">True if the collection contains the Object as an item.</div></li>
258
        </ul>
259
    </div>
260
                </div>
261
                        </div>
262
        </td>
263
        <td class="msource">MixedCollection</td>
264
    </tr>
265
        <tr class="method-row expandable">
266
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
267
        <td class="sig">
268
        <a id="Ext.util.MixedCollection-containsKey"></a>
269
            <b>containsKey</b>(&nbsp;<code>String key</code>&nbsp;) : Boolean            <div class="mdesc">
270
                        <div class="short">Returns true if the collection contains the passed Object as a key.</div>
271
            <div class="long">
272
                Returns true if the collection contains the passed Object as a key.    <div class="mdetail-params">
273
        <strong>Parameters:</strong>
274
        <ul><li><code>key</code> : String<div class="sub-desc">The key to look for in the collection.</div></li>        </ul>
275
        <strong>Returns:</strong>
276
        <ul>
277
            <li><code>Boolean</code><div class="sub-desc">True if the collection contains the Object as a key.</div></li>
278
        </ul>
279
    </div>
280
                </div>
281
                        </div>
282
        </td>
283
        <td class="msource">MixedCollection</td>
284
    </tr>
285
        <tr class="method-row alt expandable">
286
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
287
        <td class="sig">
288
        <a id="Ext.util.MixedCollection-each"></a>
289
            <b>each</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
290
                        <div class="short">Executes the specified function once for every item in the collection, passing the following arguments:
291
 
292
item : Mixed...</div>
293
            <div class="long">
294
                Executes the specified function once for every item in the collection, passing the following arguments:
295
<div class="mdetail-params"><ul>
296
<li><b>item</b> : Mixed<p class="sub-desc">The collection item</p></li>
297
<li><b>index</b> : Number<p class="sub-desc">The item's index</p></li>
298
<li><b>length</b> : Number<p class="sub-desc">The total number of items in the collection</p></li>
299
</ul></div>
300
The function should return a boolean value. Returning false from the function will stop the iteration.    <div class="mdetail-params">
301
        <strong>Parameters:</strong>
302
        <ul><li><code>fn</code> : Function<div class="sub-desc">The function to execute for each item.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the function.</div></li>        </ul>
303
        <strong>Returns:</strong>
304
        <ul>
305
            <li><code>void</code></li>
306
        </ul>
307
    </div>
308
                </div>
309
                        </div>
310
        </td>
311
        <td class="msource">MixedCollection</td>
312
    </tr>
313
        <tr class="method-row expandable">
314
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
315
        <td class="sig">
316
        <a id="Ext.util.MixedCollection-eachKey"></a>
317
            <b>eachKey</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
318
                        <div class="short">Executes the specified function once for every key in the collection, passing each
319
key, and its associated item as th...</div>
320
            <div class="long">
321
                Executes the specified function once for every key in the collection, passing each
322
key, and its associated item as the first two parameters.    <div class="mdetail-params">
323
        <strong>Parameters:</strong>
324
        <ul><li><code>fn</code> : Function<div class="sub-desc">The function to execute for each item.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the function.</div></li>        </ul>
325
        <strong>Returns:</strong>
326
        <ul>
327
            <li><code>void</code></li>
328
        </ul>
329
    </div>
330
                </div>
331
                        </div>
332
        </td>
333
        <td class="msource">MixedCollection</td>
334
    </tr>
335
        <tr class="method-row alt expandable">
336
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
337
        <td class="sig">
338
        <a id="Ext.util.MixedCollection-filter"></a>
339
            <b>filter</b>(&nbsp;<code>String property</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span>&nbsp;) : MixedCollection            <div class="mdesc">
340
                        <div class="short">Filter the <i>objects</i> in this collection by a specific property.
341
Returns a new collection that has been filtered.</div>
342
            <div class="long">
343
                Filter the <i>objects</i> in this collection by a specific property.
344
Returns a new collection that has been filtered.    <div class="mdetail-params">
345
        <strong>Parameters:</strong>
346
        <ul><li><code>property</code> : String<div class="sub-desc">A property on your objects</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either string that the property values
347
should start with or a RegExp to test against the property</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part of the string, not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison (defaults to False).</div></li>        </ul>
348
        <strong>Returns:</strong>
349
        <ul>
350
            <li><code>MixedCollection</code><div class="sub-desc">The new filtered collection</div></li>
351
        </ul>
352
    </div>
353
                </div>
354
                        </div>
355
        </td>
356
        <td class="msource">MixedCollection</td>
357
    </tr>
358
        <tr class="method-row expandable">
359
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
360
        <td class="sig">
361
        <a id="Ext.util.MixedCollection-filterBy"></a>
362
            <b>filterBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : MixedCollection            <div class="mdesc">
363
                        <div class="short">Filter by a function. Returns a new collection that has been filtered.
364
The passed function will be called with each o...</div>
365
            <div class="long">
366
                Filter by a function. Returns a <i>new</i> collection that has been filtered.
367
The passed function will be called with each object in the collection.
368
If the function returns true, the value is included otherwise it is filtered.    <div class="mdetail-params">
369
        <strong>Parameters:</strong>
370
        <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called, it will receive the args o (the object), k (the key)</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li>        </ul>
371
        <strong>Returns:</strong>
372
        <ul>
373
            <li><code>MixedCollection</code><div class="sub-desc">The new filtered collection</div></li>
374
        </ul>
375
    </div>
376
                </div>
377
                        </div>
378
        </td>
379
        <td class="msource">MixedCollection</td>
380
    </tr>
381
        <tr class="method-row alt expandable">
382
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
383
        <td class="sig">
384
        <a id="Ext.util.MixedCollection-find"></a>
385
            <b>find</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : Object            <div class="mdesc">
386
                        <div class="short">Returns the first item in the collection which elicits a true return value from the
387
passed selection function.</div>
388
            <div class="long">
389
                Returns the first item in the collection which elicits a true return value from the
390
passed selection function.    <div class="mdetail-params">
391
        <strong>Parameters:</strong>
392
        <ul><li><code>fn</code> : Function<div class="sub-desc">The selection function to execute for each item.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the function.</div></li>        </ul>
393
        <strong>Returns:</strong>
394
        <ul>
395
            <li><code>Object</code><div class="sub-desc">The first item in the collection which returned true from the selection function.</div></li>
396
        </ul>
397
    </div>
398
                </div>
399
                        </div>
400
        </td>
401
        <td class="msource">MixedCollection</td>
402
    </tr>
403
        <tr class="method-row expandable">
404
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
405
        <td class="sig">
406
        <a id="Ext.util.MixedCollection-findIndex"></a>
407
            <b>findIndex</b>(&nbsp;<code>String property</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Number start</code>]</span>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span>&nbsp;) : Number            <div class="mdesc">
408
                        <div class="short">Finds the index of the first matching object in this collection by a specific property/value.</div>
409
            <div class="long">
410
                Finds the index of the first matching object in this collection by a specific property/value.    <div class="mdetail-params">
411
        <strong>Parameters:</strong>
412
        <ul><li><code>property</code> : String<div class="sub-desc">The name of a property on your objects.</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">A string that the property values
413
should start with or a RegExp to test against the property.</div></li><li><code>start</code> : Number<div class="sub-desc">(optional) The index to start searching at (defaults to 0).</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part of the string, not just the beginning.</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison.</div></li>        </ul>
414
        <strong>Returns:</strong>
415
        <ul>
416
            <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>
417
        </ul>
418
    </div>
419
                </div>
420
                        </div>
421
        </td>
422
        <td class="msource">MixedCollection</td>
423
    </tr>
424
        <tr class="method-row alt expandable">
425
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
426
        <td class="sig">
427
        <a id="Ext.util.MixedCollection-findIndexBy"></a>
428
            <b>findIndexBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Number start</code>]</span>&nbsp;) : Number            <div class="mdesc">
429
                        <div class="short">Find the index of the first matching object in this collection by a function.
430
If the function returns true it is cons...</div>
431
            <div class="long">
432
                Find the index of the first matching object in this collection by a function.
433
If the function returns <i>true</i> it is considered a match.    <div class="mdetail-params">
434
        <strong>Parameters:</strong>
435
        <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called, it will receive the args o (the object), k (the key).</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this).</div></li><li><code>start</code> : Number<div class="sub-desc">(optional) The index to start searching at (defaults to 0).</div></li>        </ul>
436
        <strong>Returns:</strong>
437
        <ul>
438
            <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>
439
        </ul>
440
    </div>
441
                </div>
442
                        </div>
443
        </td>
444
        <td class="msource">MixedCollection</td>
445
    </tr>
446
        <tr class="method-row inherited expandable">
447
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
448
        <td class="sig">
449
        <a id="Ext.util.MixedCollection-fireEvent"></a>
450
            <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean            <div class="mdesc">
451
                        <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
452
            <div class="long">
453
                Fires the specified event with the passed parameters (minus the event name).    <div class="mdetail-params">
454
        <strong>Parameters:</strong>
455
        <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li>        </ul>
456
        <strong>Returns:</strong>
457
        <ul>
458
            <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
459
        </ul>
460
    </div>
461
                </div>
462
                        </div>
463
        </td>
464
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
465
    </tr>
466
        <tr class="method-row alt expandable">
467
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
468
        <td class="sig">
469
        <a id="Ext.util.MixedCollection-first"></a>
470
            <b>first</b>() : Object            <div class="mdesc">
471
                        <div class="short">Returns the first item in the collection.</div>
472
            <div class="long">
473
                Returns the first item in the collection.    <div class="mdetail-params">
474
        <strong>Parameters:</strong>
475
        <ul><li>None.</li>        </ul>
476
        <strong>Returns:</strong>
477
        <ul>
478
            <li><code>Object</code><div class="sub-desc">the first item in the collection..</div></li>
479
        </ul>
480
    </div>
481
                </div>
482
                        </div>
483
        </td>
484
        <td class="msource">MixedCollection</td>
485
    </tr>
486
        <tr class="method-row expandable">
487
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
488
        <td class="sig">
489
        <a id="Ext.util.MixedCollection-get"></a>
490
            <b>get</b>(&nbsp;<code>String/Number key</code>&nbsp;) : Object            <div class="mdesc">
491
                        <div class="short">Returns the item associated with the passed key or index.</div>
492
            <div class="long">
493
                Returns the item associated with the passed key or index.    <div class="mdetail-params">
494
        <strong>Parameters:</strong>
495
        <ul><li><code>key</code> : String/Number<div class="sub-desc">The key or index of the item.</div></li>        </ul>
496
        <strong>Returns:</strong>
497
        <ul>
498
            <li><code>Object</code><div class="sub-desc">The item associated with the passed key.</div></li>
499
        </ul>
500
    </div>
501
                </div>
502
                        </div>
503
        </td>
504
        <td class="msource">MixedCollection</td>
505
    </tr>
506
        <tr class="method-row alt expandable">
507
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
508
        <td class="sig">
509
        <a id="Ext.util.MixedCollection-getCount"></a>
510
            <b>getCount</b>() : Number            <div class="mdesc">
511
                        <div class="short">Returns the number of items in the collection.</div>
512
            <div class="long">
513
                Returns the number of items in the collection.    <div class="mdetail-params">
514
        <strong>Parameters:</strong>
515
        <ul><li>None.</li>        </ul>
516
        <strong>Returns:</strong>
517
        <ul>
518
            <li><code>Number</code><div class="sub-desc">the number of items in the collection.</div></li>
519
        </ul>
520
    </div>
521
                </div>
522
                        </div>
523
        </td>
524
        <td class="msource">MixedCollection</td>
525
    </tr>
526
        <tr class="method-row expandable">
527
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
528
        <td class="sig">
529
        <a id="Ext.util.MixedCollection-getKey"></a>
530
            <b>getKey</b>(&nbsp;<code>Object item</code>&nbsp;) : Object            <div class="mdesc">
531
                        <div class="short">MixedCollection has a generic way to fetch keys if you implement getKey.  The default implementation
532
simply returns i...</div>
533
            <div class="long">
534
                MixedCollection has a generic way to fetch keys if you implement getKey.  The default implementation
535
simply returns <tt style="font-weight:bold;">item.id</tt> but you can provide your own implementation
536
to return a different value as in the following examples:
537
<pre><code><i>// normal way</i>
538
<b>var</b> mc = <b>new</b> Ext.util.MixedCollection();
539
mc.add(someEl.dom.id, someEl);
540
mc.add(otherEl.dom.id, otherEl);
541
<i>//and so on</i>
542
 
543
<i>// using getKey</i>
544
<b>var</b> mc = <b>new</b> Ext.util.MixedCollection();
545
mc.getKey = <b>function</b>(el){
546
   <b>return</b> el.dom.id;
547
};
548
mc.add(someEl);
549
mc.add(otherEl);
550
 
551
<i>// or via the constructor</i>
552
<b>var</b> mc = <b>new</b> Ext.util.MixedCollection(false, <b>function</b>(el){
553
   <b>return</b> el.dom.id;
554
});
555
mc.add(someEl);
556
mc.add(otherEl);</code></pre>    <div class="mdetail-params">
557
        <strong>Parameters:</strong>
558
        <ul><li><code>item</code> : Object<div class="sub-desc">The item for which to find the key.</div></li>        </ul>
559
        <strong>Returns:</strong>
560
        <ul>
561
            <li><code>Object</code><div class="sub-desc">The key for the passed item.</div></li>
562
        </ul>
563
    </div>
564
                </div>
565
                        </div>
566
        </td>
567
        <td class="msource">MixedCollection</td>
568
    </tr>
569
        <tr class="method-row alt expandable">
570
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
571
        <td class="sig">
572
        <a id="Ext.util.MixedCollection-getRange"></a>
573
            <b>getRange</b>(&nbsp;<span class="optional" title="Optional">[<code>Number startIndex</code>]</span>, <span class="optional" title="Optional">[<code>Number endIndex</code>]</span>&nbsp;) : Array            <div class="mdesc">
574
                        <div class="short">Returns a range of items in this collection</div>
575
            <div class="long">
576
                Returns a range of items in this collection    <div class="mdetail-params">
577
        <strong>Parameters:</strong>
578
        <ul><li><code>startIndex</code> : Number<div class="sub-desc">(optional) defaults to 0</div></li><li><code>endIndex</code> : Number<div class="sub-desc">(optional) default to the last item</div></li>        </ul>
579
        <strong>Returns:</strong>
580
        <ul>
581
            <li><code>Array</code><div class="sub-desc">An array of items</div></li>
582
        </ul>
583
    </div>
584
                </div>
585
                        </div>
586
        </td>
587
        <td class="msource">MixedCollection</td>
588
    </tr>
589
        <tr class="method-row inherited expandable">
590
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
591
        <td class="sig">
592
        <a id="Ext.util.MixedCollection-hasListener"></a>
593
            <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean            <div class="mdesc">
594
                        <div class="short">Checks to see if this object has any listeners for a specified event</div>
595
            <div class="long">
596
                Checks to see if this object has any listeners for a specified event    <div class="mdetail-params">
597
        <strong>Parameters:</strong>
598
        <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li>        </ul>
599
        <strong>Returns:</strong>
600
        <ul>
601
            <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
602
        </ul>
603
    </div>
604
                </div>
605
                        </div>
606
        </td>
607
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
608
    </tr>
609
        <tr class="method-row alt expandable">
610
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
611
        <td class="sig">
612
        <a id="Ext.util.MixedCollection-indexOf"></a>
613
            <b>indexOf</b>(&nbsp;<code>Object o</code>&nbsp;) : Number            <div class="mdesc">
614
                        <div class="short">Returns index within the collection of the passed Object.</div>
615
            <div class="long">
616
                Returns index within the collection of the passed Object.    <div class="mdetail-params">
617
        <strong>Parameters:</strong>
618
        <ul><li><code>o</code> : Object<div class="sub-desc">The item to find the index of.</div></li>        </ul>
619
        <strong>Returns:</strong>
620
        <ul>
621
            <li><code>Number</code><div class="sub-desc">index of the item.</div></li>
622
        </ul>
623
    </div>
624
                </div>
625
                        </div>
626
        </td>
627
        <td class="msource">MixedCollection</td>
628
    </tr>
629
        <tr class="method-row expandable">
630
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
631
        <td class="sig">
632
        <a id="Ext.util.MixedCollection-indexOfKey"></a>
633
            <b>indexOfKey</b>(&nbsp;<code>String key</code>&nbsp;) : Number            <div class="mdesc">
634
                        <div class="short">Returns index within the collection of the passed key.</div>
635
            <div class="long">
636
                Returns index within the collection of the passed key.    <div class="mdetail-params">
637
        <strong>Parameters:</strong>
638
        <ul><li><code>key</code> : String<div class="sub-desc">The key to find the index of.</div></li>        </ul>
639
        <strong>Returns:</strong>
640
        <ul>
641
            <li><code>Number</code><div class="sub-desc">index of the key.</div></li>
642
        </ul>
643
    </div>
644
                </div>
645
                        </div>
646
        </td>
647
        <td class="msource">MixedCollection</td>
648
    </tr>
649
        <tr class="method-row alt expandable">
650
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
651
        <td class="sig">
652
        <a id="Ext.util.MixedCollection-insert"></a>
653
            <b>insert</b>(&nbsp;<code>Number index</code>, <code>String key</code>, <span class="optional" title="Optional">[<code>Object o</code>]</span>&nbsp;) : Object            <div class="mdesc">
654
                        <div class="short">Inserts an item at the specified index in the collection. Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="add" href="output/Ext.util.MixedCollection.html#add">add</a> event when complete.</div>
655
            <div class="long">
656
                Inserts an item at the specified index in the collection. Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="add" href="output/Ext.util.MixedCollection.html#add">add</a> event when complete.    <div class="mdetail-params">
657
        <strong>Parameters:</strong>
658
        <ul><li><code>index</code> : Number<div class="sub-desc">The index to insert the item at.</div></li><li><code>key</code> : String<div class="sub-desc">The key to associate with the new item, or the item itself.</div></li><li><code>o</code> : Object<div class="sub-desc">(optional) If the second parameter was a key, the new item.</div></li>        </ul>
659
        <strong>Returns:</strong>
660
        <ul>
661
            <li><code>Object</code><div class="sub-desc">The item inserted.</div></li>
662
        </ul>
663
    </div>
664
                </div>
665
                        </div>
666
        </td>
667
        <td class="msource">MixedCollection</td>
668
    </tr>
669
        <tr class="method-row expandable">
670
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
671
        <td class="sig">
672
        <a id="Ext.util.MixedCollection-item"></a>
673
            <b>item</b>(&nbsp;<code>String/Number key</code>&nbsp;) : Object            <div class="mdesc">
674
                        <div class="short">Returns the item associated with the passed key OR index. Key has priority over index.  This is the equivalent
675
of cal...</div>
676
            <div class="long">
677
                Returns the item associated with the passed key OR index. Key has priority over index.  This is the equivalent
678
of calling <a ext:cls="Ext.util.MixedCollection" ext:member="key" href="output/Ext.util.MixedCollection.html#key">key</a> first, then if nothing matched calling <a ext:cls="Ext.util.MixedCollection" ext:member="itemAt" href="output/Ext.util.MixedCollection.html#itemAt">itemAt</a>.    <div class="mdetail-params">
679
        <strong>Parameters:</strong>
680
        <ul><li><code>key</code> : String/Number<div class="sub-desc">The key or index of the item.</div></li>        </ul>
681
        <strong>Returns:</strong>
682
        <ul>
683
            <li><code>Object</code><div class="sub-desc">The item associated with the passed key.</div></li>
684
        </ul>
685
    </div>
686
                </div>
687
                        </div>
688
        </td>
689
        <td class="msource">MixedCollection</td>
690
    </tr>
691
        <tr class="method-row alt expandable">
692
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
693
        <td class="sig">
694
        <a id="Ext.util.MixedCollection-itemAt"></a>
695
            <b>itemAt</b>(&nbsp;<code>Number index</code>&nbsp;) : Object            <div class="mdesc">
696
                        <div class="short">Returns the item at the specified index.</div>
697
            <div class="long">
698
                Returns the item at the specified index.    <div class="mdetail-params">
699
        <strong>Parameters:</strong>
700
        <ul><li><code>index</code> : Number<div class="sub-desc">The index of the item.</div></li>        </ul>
701
        <strong>Returns:</strong>
702
        <ul>
703
            <li><code>Object</code><div class="sub-desc">The item at the specified index.</div></li>
704
        </ul>
705
    </div>
706
                </div>
707
                        </div>
708
        </td>
709
        <td class="msource">MixedCollection</td>
710
    </tr>
711
        <tr class="method-row expandable">
712
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
713
        <td class="sig">
714
        <a id="Ext.util.MixedCollection-key"></a>
715
            <b>key</b>(&nbsp;<code>String/Number key</code>&nbsp;) : Object            <div class="mdesc">
716
                        <div class="short">Returns the item associated with the passed key.</div>
717
            <div class="long">
718
                Returns the item associated with the passed key.    <div class="mdetail-params">
719
        <strong>Parameters:</strong>
720
        <ul><li><code>key</code> : String/Number<div class="sub-desc">The key of the item.</div></li>        </ul>
721
        <strong>Returns:</strong>
722
        <ul>
723
            <li><code>Object</code><div class="sub-desc">The item associated with the passed key.</div></li>
724
        </ul>
725
    </div>
726
                </div>
727
                        </div>
728
        </td>
729
        <td class="msource">MixedCollection</td>
730
    </tr>
731
        <tr class="method-row alt expandable">
732
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
733
        <td class="sig">
734
        <a id="Ext.util.MixedCollection-keySort"></a>
735
            <b>keySort</b>(&nbsp;<span class="optional" title="Optional">[<code>String direction</code>]</span>, <span class="optional" title="Optional">[<code>Function fn</code>]</span>&nbsp;) : void            <div class="mdesc">
736
                        <div class="short">Sorts this collection by keys</div>
737
            <div class="long">
738
                Sorts this collection by keys    <div class="mdetail-params">
739
        <strong>Parameters:</strong>
740
        <ul><li><code>direction</code> : String<div class="sub-desc">(optional) "ASC" or "DESC"</div></li><li><code>fn</code> : Function<div class="sub-desc">(optional) a comparison function (defaults to case insensitive string)</div></li>        </ul>
741
        <strong>Returns:</strong>
742
        <ul>
743
            <li><code>void</code></li>
744
        </ul>
745
    </div>
746
                </div>
747
                        </div>
748
        </td>
749
        <td class="msource">MixedCollection</td>
750
    </tr>
751
        <tr class="method-row expandable">
752
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
753
        <td class="sig">
754
        <a id="Ext.util.MixedCollection-last"></a>
755
            <b>last</b>() : Object            <div class="mdesc">
756
                        <div class="short">Returns the last item in the collection.</div>
757
            <div class="long">
758
                Returns the last item in the collection.    <div class="mdetail-params">
759
        <strong>Parameters:</strong>
760
        <ul><li>None.</li>        </ul>
761
        <strong>Returns:</strong>
762
        <ul>
763
            <li><code>Object</code><div class="sub-desc">the last item in the collection..</div></li>
764
        </ul>
765
    </div>
766
                </div>
767
                        </div>
768
        </td>
769
        <td class="msource">MixedCollection</td>
770
    </tr>
771
        <tr class="method-row inherited alt expandable">
772
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
773
        <td class="sig">
774
        <a id="Ext.util.MixedCollection-on"></a>
775
            <b>on</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
776
                        <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
777
            <div class="long">
778
                Appends an event handler to this element (shorthand for addListener)    <div class="mdetail-params">
779
        <strong>Parameters:</strong>
780
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
781
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>
782
        <strong>Returns:</strong>
783
        <ul>
784
            <li><code>void</code></li>
785
        </ul>
786
    </div>
787
                </div>
788
                        </div>
789
        </td>
790
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
791
    </tr>
792
        <tr class="method-row inherited expandable">
793
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
794
        <td class="sig">
795
        <a id="Ext.util.MixedCollection-purgeListeners"></a>
796
            <b>purgeListeners</b>() : void            <div class="mdesc">
797
                        <div class="short">Removes all listeners for this object</div>
798
            <div class="long">
799
                Removes all listeners for this object    <div class="mdetail-params">
800
        <strong>Parameters:</strong>
801
        <ul><li>None.</li>        </ul>
802
        <strong>Returns:</strong>
803
        <ul>
804
            <li><code>void</code></li>
805
        </ul>
806
    </div>
807
                </div>
808
                        </div>
809
        </td>
810
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
811
    </tr>
812
        <tr class="method-row alt expandable">
813
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
814
        <td class="sig">
815
        <a id="Ext.util.MixedCollection-remove"></a>
816
            <b>remove</b>(&nbsp;<code>Object o</code>&nbsp;) : Object            <div class="mdesc">
817
                        <div class="short">Removed an item from the collection.</div>
818
            <div class="long">
819
                Removed an item from the collection.    <div class="mdetail-params">
820
        <strong>Parameters:</strong>
821
        <ul><li><code>o</code> : Object<div class="sub-desc">The item to remove.</div></li>        </ul>
822
        <strong>Returns:</strong>
823
        <ul>
824
            <li><code>Object</code><div class="sub-desc">The item removed or false if no item was removed.</div></li>
825
        </ul>
826
    </div>
827
                </div>
828
                        </div>
829
        </td>
830
        <td class="msource">MixedCollection</td>
831
    </tr>
832
        <tr class="method-row expandable">
833
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
834
        <td class="sig">
835
        <a id="Ext.util.MixedCollection-removeAt"></a>
836
            <b>removeAt</b>(&nbsp;<code>Number index</code>&nbsp;) : Object            <div class="mdesc">
837
                        <div class="short">Remove an item from a specified index in the collection. Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="remove" href="output/Ext.util.MixedCollection.html#remove">remove</a> event when complete.</div>
838
            <div class="long">
839
                Remove an item from a specified index in the collection. Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="remove" href="output/Ext.util.MixedCollection.html#remove">remove</a> event when complete.    <div class="mdetail-params">
840
        <strong>Parameters:</strong>
841
        <ul><li><code>index</code> : Number<div class="sub-desc">The index within the collection of the item to remove.</div></li>        </ul>
842
        <strong>Returns:</strong>
843
        <ul>
844
            <li><code>Object</code><div class="sub-desc">The item removed or false if no item was removed.</div></li>
845
        </ul>
846
    </div>
847
                </div>
848
                        </div>
849
        </td>
850
        <td class="msource">MixedCollection</td>
851
    </tr>
852
        <tr class="method-row alt expandable">
853
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
854
        <td class="sig">
855
        <a id="Ext.util.MixedCollection-removeKey"></a>
856
            <b>removeKey</b>(&nbsp;<code>String key</code>&nbsp;) : Object            <div class="mdesc">
857
                        <div class="short">Removed an item associated with the passed key fom the collection.</div>
858
            <div class="long">
859
                Removed an item associated with the passed key fom the collection.    <div class="mdetail-params">
860
        <strong>Parameters:</strong>
861
        <ul><li><code>key</code> : String<div class="sub-desc">The key of the item to remove.</div></li>        </ul>
862
        <strong>Returns:</strong>
863
        <ul>
864
            <li><code>Object</code><div class="sub-desc">The item removed or false if no item was removed.</div></li>
865
        </ul>
866
    </div>
867
                </div>
868
                        </div>
869
        </td>
870
        <td class="msource">MixedCollection</td>
871
    </tr>
872
        <tr class="method-row inherited expandable">
873
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
874
        <td class="sig">
875
        <a id="Ext.util.MixedCollection-removeListener"></a>
876
            <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
877
                        <div class="short">Removes a listener</div>
878
            <div class="long">
879
                Removes a listener    <div class="mdetail-params">
880
        <strong>Parameters:</strong>
881
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>
882
        <strong>Returns:</strong>
883
        <ul>
884
            <li><code>void</code></li>
885
        </ul>
886
    </div>
887
                </div>
888
                        </div>
889
        </td>
890
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
891
    </tr>
892
        <tr class="method-row alt expandable">
893
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
894
        <td class="sig">
895
        <a id="Ext.util.MixedCollection-replace"></a>
896
            <b>replace</b>(&nbsp;<code>String key</code>, <span class="optional" title="Optional">[<code>o {Object}</code>]</span>&nbsp;) : Object            <div class="mdesc">
897
                        <div class="short">Replaces an item in the collection. Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="replace" href="output/Ext.util.MixedCollection.html#replace">replace</a> event when complete.</div>
898
            <div class="long">
899
                Replaces an item in the collection. Fires the <a ext:cls="Ext.util.MixedCollection" ext:member="replace" href="output/Ext.util.MixedCollection.html#replace">replace</a> event when complete.    <div class="mdetail-params">
900
        <strong>Parameters:</strong>
901
        <ul><li><code>key</code> : String<div class="sub-desc">The key associated with the item to replace, or the item to replace.</div></li><li><code>{Object}</code> : o<div class="sub-desc">o (optional) If the first parameter passed was a key, the item to associate with that key.</div></li>        </ul>
902
        <strong>Returns:</strong>
903
        <ul>
904
            <li><code>Object</code><div class="sub-desc">The new item.</div></li>
905
        </ul>
906
    </div>
907
                </div>
908
                        </div>
909
        </td>
910
        <td class="msource">MixedCollection</td>
911
    </tr>
912
        <tr class="method-row inherited expandable">
913
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
914
        <td class="sig">
915
        <a id="Ext.util.MixedCollection-resumeEvents"></a>
916
            <b>resumeEvents</b>() : void            <div class="mdesc">
917
                        <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
918
            <div class="long">
919
                Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)    <div class="mdetail-params">
920
        <strong>Parameters:</strong>
921
        <ul><li>None.</li>        </ul>
922
        <strong>Returns:</strong>
923
        <ul>
924
            <li><code>void</code></li>
925
        </ul>
926
    </div>
927
                </div>
928
                        </div>
929
        </td>
930
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
931
    </tr>
932
        <tr class="method-row alt expandable">
933
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
934
        <td class="sig">
935
        <a id="Ext.util.MixedCollection-sort"></a>
936
            <b>sort</b>(&nbsp;<span class="optional" title="Optional">[<code>String direction</code>]</span>, <span class="optional" title="Optional">[<code>Function fn</code>]</span>&nbsp;) : void            <div class="mdesc">
937
                        <div class="short">Sorts this collection with the passed comparison function</div>
938
            <div class="long">
939
                Sorts this collection with the passed comparison function    <div class="mdetail-params">
940
        <strong>Parameters:</strong>
941
        <ul><li><code>direction</code> : String<div class="sub-desc">(optional) "ASC" or "DESC"</div></li><li><code>fn</code> : Function<div class="sub-desc">(optional) comparison function</div></li>        </ul>
942
        <strong>Returns:</strong>
943
        <ul>
944
            <li><code>void</code></li>
945
        </ul>
946
    </div>
947
                </div>
948
                        </div>
949
        </td>
950
        <td class="msource">MixedCollection</td>
951
    </tr>
952
        <tr class="method-row inherited expandable">
953
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
954
        <td class="sig">
955
        <a id="Ext.util.MixedCollection-suspendEvents"></a>
956
            <b>suspendEvents</b>() : void            <div class="mdesc">
957
                        <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
958
            <div class="long">
959
                Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)    <div class="mdetail-params">
960
        <strong>Parameters:</strong>
961
        <ul><li>None.</li>        </ul>
962
        <strong>Returns:</strong>
963
        <ul>
964
            <li><code>void</code></li>
965
        </ul>
966
    </div>
967
                </div>
968
                        </div>
969
        </td>
970
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
971
    </tr>
972
        <tr class="method-row inherited alt expandable">
973
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
974
        <td class="sig">
975
        <a id="Ext.util.MixedCollection-un"></a>
976
            <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
977
                        <div class="short">Removes a listener (shorthand for removeListener)</div>
978
            <div class="long">
979
                Removes a listener (shorthand for removeListener)    <div class="mdetail-params">
980
        <strong>Parameters:</strong>
981
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>
982
        <strong>Returns:</strong>
983
        <ul>
984
            <li><code>void</code></li>
985
        </ul>
986
    </div>
987
                </div>
988
                        </div>
989
        </td>
990
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
991
    </tr>
992
            </table>
993
                <a id="Ext.util.MixedCollection-events"></a>
994
        <h2>Public Events</h2>
995
                <table cellspacing="0" class="member-table">
996
            <tr>
997
                <th class="sig-header" colspan="2">Event</th>
998
                <th class="msource-header">Defined By</th>
999
            </tr>
1000
                <tr class="event-row expandable">
1001
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1002
        <td class="sig">
1003
        <a id="Ext.util.MixedCollection-add"></a>
1004
            <b>add</b> : (&nbsp;<code>Number index</code>, <code>Object o</code>, <code>String key</code>&nbsp;)            <div class="mdesc">
1005
                        <div class="short">Fires when an item is added to the collection.</div>
1006
            <div class="long">
1007
                Fires when an item is added to the collection.    <div class="mdetail-params">
1008
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1009
        <ul><li><code>index</code> : Number<div class="sub-desc">The index at which the item was added.</div></li><li><code>o</code> : Object<div class="sub-desc">The item added.</div></li><li><code>key</code> : String<div class="sub-desc">The key associated with the added item.</div></li>        </ul>
1010
    </div>
1011
                </div>
1012
                        </div>
1013
        </td>
1014
        <td class="msource">MixedCollection</td>
1015
    </tr>
1016
        <tr class="event-row alt expandable">
1017
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1018
        <td class="sig">
1019
        <a id="Ext.util.MixedCollection-clear"></a>
1020
            <b>clear</b> : ()            <div class="mdesc">
1021
                        <div class="short">Fires when the collection is cleared.</div>
1022
            <div class="long">
1023
                Fires when the collection is cleared.    <div class="mdetail-params">
1024
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1025
        <ul><li>None.</li>        </ul>
1026
    </div>
1027
                </div>
1028
                        </div>
1029
        </td>
1030
        <td class="msource">MixedCollection</td>
1031
    </tr>
1032
        <tr class="event-row expandable">
1033
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1034
        <td class="sig">
1035
        <a id="Ext.util.MixedCollection-remove"></a>
1036
            <b>remove</b> : (&nbsp;<code>Object o</code>, <span class="optional" title="Optional">[<code>String key</code>]</span>&nbsp;)            <div class="mdesc">
1037
                        <div class="short">Fires when an item is removed from the collection.</div>
1038
            <div class="long">
1039
                Fires when an item is removed from the collection.    <div class="mdetail-params">
1040
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1041
        <ul><li><code>o</code> : Object<div class="sub-desc">The item being removed.</div></li><li><code>key</code> : String<div class="sub-desc">(optional) The key associated with the removed item.</div></li>        </ul>
1042
    </div>
1043
                </div>
1044
                        </div>
1045
        </td>
1046
        <td class="msource">MixedCollection</td>
1047
    </tr>
1048
        <tr class="event-row alt expandable">
1049
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1050
        <td class="sig">
1051
        <a id="Ext.util.MixedCollection-replace"></a>
1052
            <b>replace</b> : (&nbsp;<code>String key</code>, <code>Object old</code>, <code>Object new</code>&nbsp;)            <div class="mdesc">
1053
                        <div class="short">Fires when an item is replaced in the collection.</div>
1054
            <div class="long">
1055
                Fires when an item is replaced in the collection.    <div class="mdetail-params">
1056
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1057
        <ul><li><code>key</code> : String<div class="sub-desc">he key associated with the new added.</div></li><li><code>old</code> : Object<div class="sub-desc">The item being replaced.</div></li><li><code>new</code> : Object<div class="sub-desc">The new item.</div></li>        </ul>
1058
    </div>
1059
                </div>
1060
                        </div>
1061
        </td>
1062
        <td class="msource">MixedCollection</td>
1063
    </tr>
1064
            </table>
1065
 
1066
        </div>