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