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