source: trunk/web/addons/job_monarch/lib/extjs/docs/output/Ext.data.SimpleStore.html @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 91.8 KB
Line 
1        <div class="body-wrap">
2        <div class="top-tools">
3            <a class="inner-link" href="#Ext.data.SimpleStore-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4            <a class="inner-link" href="#Ext.data.SimpleStore-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5            <a class="inner-link" href="#Ext.data.SimpleStore-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6                            <a class="inner-link" href="#Ext.data.SimpleStore-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7                        <a class="bookmark" href="../docs/?class=Ext.data.SimpleStore"><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.data.Store" ext:member="" href="output/Ext.data.Store.html">Store</a>
12    <img src="resources/elbow-end.gif"/>SimpleStore</pre></div>
13                <h1>Class Ext.data.SimpleStore</h1>
14        <table cellspacing="0">
15            <tr><td class="label">Package:</td><td class="hd-info">Ext.data</td></tr>
16            <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/SimpleStore.js" target="_blank">SimpleStore.js</a></td></tr>
17            <tr><td class="label">Class:</td><td class="hd-info">SimpleStore</td></tr>
18                                    <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.data.Store" ext:member="" href="output/Ext.data.Store.html">Store</a></td></tr>
19                    </table>
20        <div class="description">
21            *
22Small helper class to make creating Stores from Array data easier.        </div>
23       
24        <div class="hr"></div>
25                <a id="Ext.data.SimpleStore-configs"></a>
26        <h2>Config Options</h2>
27        <table cellspacing="0" class="member-table">
28            <tr>
29                <th class="sig-header" colspan="2">Config Options</th>
30                <th class="msource-header">Defined By</th>
31            </tr>
32                <tr class="config-row inherited">
33        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
34        <td class="sig">
35        <a id="Ext.data.SimpleStore-autoLoad"></a>
36            <b>autoLoad</b> : Boolean/Object            <div class="mdesc">
37                            If passed, this store's load method is automatically called after creation with the autoLoad object                        </div>
38        </td>
39        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#autoLoad" href="output/Ext.data.Store.html#autoLoad">Store</a></td>
40    </tr>
41        <tr class="config-row inherited alt">
42        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
43        <td class="sig">
44        <a id="Ext.data.SimpleStore-baseParams"></a>
45            <b>baseParams</b> : Object            <div class="mdesc">
46                            An object containing properties which are to be sent as parameters on any HTTP request                        </div>
47        </td>
48        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#baseParams" href="output/Ext.data.Store.html#baseParams">Store</a></td>
49    </tr>
50        <tr class="config-row">
51        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
52        <td class="sig">
53        <a id="Ext.data.SimpleStore-data"></a>
54            <b>data</b> : Array            <div class="mdesc">
55                            The multi-dimensional array of data.                        </div>
56        </td>
57        <td class="msource">SimpleStore</td>
58    </tr>
59        <tr class="config-row alt">
60        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
61        <td class="sig">
62        <a id="Ext.data.SimpleStore-fields"></a>
63            <b>fields</b> : Array            <div class="mdesc">
64                            An array of field definition objects, or field name string as specified to <a ext:cls="Ext.data.Record" ext:member="create" href="output/Ext.data.Record.html#create">Ext.data.Record.create</a>                        </div>
65        </td>
66        <td class="msource">SimpleStore</td>
67    </tr>
68        <tr class="config-row">
69        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
70        <td class="sig">
71        <a id="Ext.data.SimpleStore-id"></a>
72            <b>id</b> : Number            <div class="mdesc">
73                            The array index of the record id. Leave blank to auto generate ids.                        </div>
74        </td>
75        <td class="msource">SimpleStore</td>
76    </tr>
77        <tr class="config-row inherited alt expandable">
78        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
79        <td class="sig">
80        <a id="Ext.data.SimpleStore-listeners"></a>
81            <b>listeners</b> : Object            <div class="mdesc">
82                        <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div>
83            <div class="long">
84                (optional) 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>
85                        </div>
86        </td>
87        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
88    </tr>
89        <tr class="config-row inherited">
90        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
91        <td class="sig">
92        <a id="Ext.data.SimpleStore-proxy"></a>
93            <b>proxy</b> : Ext.data.DataProxy            <div class="mdesc">
94                            The Proxy object which provides access to a data object.                        </div>
95        </td>
96        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#proxy" href="output/Ext.data.Store.html#proxy">Store</a></td>
97    </tr>
98        <tr class="config-row inherited alt expandable">
99        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
100        <td class="sig">
101        <a id="Ext.data.SimpleStore-pruneModifiedRecords"></a>
102            <b>pruneModifiedRecords</b> : boolean            <div class="mdesc">
103                        <div class="short">True to clear all modified record information each time the store is loaded or when a record is removed. (defaults to...</div>
104            <div class="long">
105                True to clear all modified record information each time the store is loaded or when a record is removed. (defaults to false).            </div>
106                        </div>
107        </td>
108        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#pruneModifiedRecords" href="output/Ext.data.Store.html#pruneModifiedRecords">Store</a></td>
109    </tr>
110        <tr class="config-row inherited expandable">
111        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
112        <td class="sig">
113        <a id="Ext.data.SimpleStore-reader"></a>
114            <b>reader</b> : Ext.data.DataReader            <div class="mdesc">
115                        <div class="short">The DataReader object which processes the data object and returns an Array of Ext.data.Record objects which are cache...</div>
116            <div class="long">
117                The DataReader object which processes the data object and returns an Array of Ext.data.Record objects which are cached keyed by their <em>id</em> property.            </div>
118                        </div>
119        </td>
120        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#reader" href="output/Ext.data.Store.html#reader">Store</a></td>
121    </tr>
122        <tr class="config-row inherited alt expandable">
123        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
124        <td class="sig">
125        <a id="Ext.data.SimpleStore-remoteSort"></a>
126            <b>remoteSort</b> : boolean            <div class="mdesc">
127                        <div class="short">True if sorting is to be handled by requesting the Proxy to provide a refreshed version of the data object in sorted ...</div>
128            <div class="long">
129                True if sorting is to be handled by requesting the Proxy to provide a refreshed version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false). <p>If remote sorting is specified, then clicking on a column header causes the current page to be requested from the server with the addition of the following two parameters: <div class="mdetail-params"><ul> <li><b>sort</b> : String<p class="sub-desc">The name (as specified in the Record's Field definition) of the field to sort on.</p></li> <li><b>dir</b> : String<p class="sub-desc">The direction of the sort, "ASC" or "DESC" (case-sensitive).</p></li> </ul></div></p>            </div>
130                        </div>
131        </td>
132        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#remoteSort" href="output/Ext.data.Store.html#remoteSort">Store</a></td>
133    </tr>
134        <tr class="config-row inherited expandable">
135        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
136        <td class="sig">
137        <a id="Ext.data.SimpleStore-sortInfo"></a>
138            <b>sortInfo</b> : Object            <div class="mdesc">
139                        <div class="short">A config object in the format: {field: "fieldName", direction: "ASC|DESC"} to specify the sort order in the request o...</div>
140            <div class="long">
141                A config object in the format: {field: "fieldName", direction: "ASC|DESC"} to specify the sort order in the request of a remote Store's <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> operation. Note that for local sorting, the direction property is case-sensitive.            </div>
142                        </div>
143        </td>
144        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#sortInfo" href="output/Ext.data.Store.html#sortInfo">Store</a></td>
145    </tr>
146        <tr class="config-row inherited alt">
147        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
148        <td class="sig">
149        <a id="Ext.data.SimpleStore-storeId"></a>
150            <b>storeId</b> : String            <div class="mdesc">
151                            If passed, the id to use to register with the StoreMgr                        </div>
152        </td>
153        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#storeId" href="output/Ext.data.Store.html#storeId">Store</a></td>
154    </tr>
155        <tr class="config-row inherited">
156        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
157        <td class="sig">
158        <a id="Ext.data.SimpleStore-url"></a>
159            <b>url</b> : String            <div class="mdesc">
160                            If passed, an HttpProxy is created for the passed URL                        </div>
161        </td>
162        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#url" href="output/Ext.data.Store.html#url">Store</a></td>
163    </tr>
164            </table>
165                <a id="Ext.data.SimpleStore-props"></a>
166        <h2>Public Properties</h2>
167                <table cellspacing="0" class="member-table">
168            <tr>
169                <th class="sig-header" colspan="2">Property</th>
170                <th class="msource-header">Defined By</th>
171            </tr>
172                <tr class="property-row inherited expandable">
173        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
174        <td class="sig">
175        <a id="Ext.data.SimpleStore-baseParams"></a>
176            <b>baseParams</b> : Object            <div class="mdesc">
177                        <div class="short">An object containing properties which are used as parameters on any HTTP request.
178This property can be changed after ...</div>
179            <div class="long">
180                An object containing properties which are used as parameters on any HTTP request.
181This property can be changed after creating the Store to send different parameters.            </div>
182                        </div>
183        </td>
184        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#baseParams" href="output/Ext.data.Store.html#baseParams">Store</a></td>
185    </tr>
186        <tr class="property-row inherited alt">
187        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
188        <td class="sig">
189        <a id="Ext.data.SimpleStore-fields"></a>
190            <b>fields</b> : Ext.util.MixedCollection            <div class="mdesc">
191                            A MixedCollection containing the defined <a ext:cls="Ext.data.Field" href="output/Ext.data.Field.html">Field</a>s for the Records stored in this Store.  Read-only.                        </div>
192        </td>
193        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#fields" href="output/Ext.data.Store.html#fields">Store</a></td>
194    </tr>
195        <tr class="property-row inherited expandable">
196        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
197        <td class="sig">
198        <a id="Ext.data.SimpleStore-lastOptions"></a>
199            <b>lastOptions</b> : Object            <div class="mdesc">
200                        <div class="short">Contains the last options object used as the parameter to the load method. See load
201for the details of what this may ...</div>
202            <div class="long">
203                Contains the last options object used as the parameter to the load method. See <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a>
204for the details of what this may contain. This may be useful for accessing any params which
205were used to load the current Record cache.            </div>
206                        </div>
207        </td>
208        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#lastOptions" href="output/Ext.data.Store.html#lastOptions">Store</a></td>
209    </tr>
210        <tr class="property-row inherited alt expandable">
211        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
212        <td class="sig">
213        <a id="Ext.data.SimpleStore-paramNames"></a>
214            <b>paramNames</b> : Object            <div class="mdesc">
215                        <div class="short">An object containing properties which specify the names of the paging and
216sorting parameters passed to remote servers...</div>
217            <div class="long">
218                <p>An object containing properties which specify the names of the paging and
219sorting parameters passed to remote servers when loading blocks of data. By default, this
220object takes the following form:</p><pre><code>{
221    start : <em>"start"</em>,    <i>// The parameter name which specifies the start row</i>
222    limit : <em>"limit"</em>,    <i>// The parameter name which specifies number of rows to <b>return</b></i>
223    sort : <em>"sort"</em>,      <i>// The parameter name which specifies the column to sort on</i>
224    dir : <em>"dir"</em>         <i>// The parameter name which specifies the sort direction</i>
225}</code></pre>
226<p>The server must produce the requested data block upon receipt of these parameter names.
227If different parameter names are required, this property can be overriden using a configuration
228property.</p>
229<p>A <a ext:cls="Ext.PagingToolbar" href="output/Ext.PagingToolbar.html">PagingToolbar</a> bound to this grid uses this property to determine
230the parameter names to use in its requests.            </div>
231                        </div>
232        </td>
233        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#paramNames" href="output/Ext.data.Store.html#paramNames">Store</a></td>
234    </tr>
235        <tr class="property-row inherited expandable">
236        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
237        <td class="sig">
238        <a id="Ext.data.SimpleStore-recordType"></a>
239            <b>recordType</b> : Function            <div class="mdesc">
240                        <div class="short">The Record constructor as supplied to (or created by) the Reader.  Read-only.
241If the Reader was constructed by passin...</div>
242            <div class="long">
243                The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Record</a> constructor as supplied to (or created by) the <a ext:cls="Ext.data.Reader" ext:member="Reader" href="output/Ext.data.Reader.html#Reader">Reader</a>.  Read-only.
244<p>If the Reader was constructed by passing in an Array of field definition objects, instead of an created
245Record constructor it will have <a ext:cls="Ext.data.Record" ext:member="create" href="output/Ext.data.Record.html#create">created a constructor</a> from that Array.</p>
246<p>This property may be used to create new Records of the type held in this Store.</p>            </div>
247                        </div>
248        </td>
249        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#recordType" href="output/Ext.data.Store.html#recordType">Store</a></td>
250    </tr>
251            </table>
252                <a id="Ext.data.SimpleStore-methods"></a>
253        <h2>Public Methods</h2>
254                <table cellspacing="0" class="member-table">
255            <tr>
256                <th class="sig-header" colspan="2">Method</th>
257                <th class="msource-header">Defined By</th>
258            </tr>
259                <tr class="method-row expandable">
260        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
261        <td class="sig">
262        <a id="Ext.data.SimpleStore-SimpleStore"></a>
263            <b>SimpleStore</b>(&nbsp;<code>Object config</code>&nbsp;)            <div class="mdesc">
264                        <div class="short"></div>
265            <div class="long">
266                    <div class="mdetail-params">
267        <strong>Parameters:</strong>
268        <ul><li><code>config</code> : Object<div class="sub-desc"></div></li>        </ul>
269        <strong>Returns:</strong>
270        <ul>
271            <li><code></code></li>
272        </ul>
273    </div>
274                </div>
275                        </div>
276        </td>
277        <td class="msource">SimpleStore</td>
278    </tr>
279        <tr class="method-row inherited alt expandable">
280        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
281        <td class="sig">
282        <a id="Ext.data.SimpleStore-add"></a>
283            <b>add</b>(&nbsp;<code>Ext.data.Record[] records</code>&nbsp;) : void            <div class="mdesc">
284                        <div class="short">Add Records to the Store and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.</div>
285            <div class="long">
286                Add Records to the Store and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.    <div class="mdetail-params">
287        <strong>Parameters:</strong>
288        <ul><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">An Array of Ext.data.Record objects to add to the cache.</div></li>        </ul>
289        <strong>Returns:</strong>
290        <ul>
291            <li><code>void</code></li>
292        </ul>
293    </div>
294                </div>
295                        </div>
296        </td>
297        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#add" href="output/Ext.data.Store.html#add">Store</a></td>
298    </tr>
299        <tr class="method-row inherited expandable">
300        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
301        <td class="sig">
302        <a id="Ext.data.SimpleStore-addEvents"></a>
303            <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void            <div class="mdesc">
304                        <div class="short">Used to define events on this Observable</div>
305            <div class="long">
306                Used to define events on this Observable    <div class="mdetail-params">
307        <strong>Parameters:</strong>
308        <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li>        </ul>
309        <strong>Returns:</strong>
310        <ul>
311            <li><code>void</code></li>
312        </ul>
313    </div>
314                </div>
315                        </div>
316        </td>
317        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
318    </tr>
319        <tr class="method-row inherited alt expandable">
320        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
321        <td class="sig">
322        <a id="Ext.data.SimpleStore-addListener"></a>
323            <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">
324                        <div class="short">Appends an event handler to this component</div>
325            <div class="long">
326                Appends an event handler to this component    <div class="mdetail-params">
327        <strong>Parameters:</strong>
328        <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
329function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
330properties. This may contain any of the following properties:<ul>
331<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>
332<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>
333<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>
334<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
335by the specified number of milliseconds. If the event fires again within that time, the original
336handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
337</ul><br>
338<p>
339<b>Combining Options</b><br>
340Using the options argument, it is possible to combine different types of listeners:<br>
341<br>
342A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
343<pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
344    single: true,
345    delay: 100,
346    forumId: 4
347});</code></pre>
348<p>
349<b>Attaching multiple handlers in 1 call</b><br>
350The method also allows for a single argument to be passed which is a config object containing properties
351which specify multiple handlers.
352<p>
353<pre><code>foo.on({
354    <em>'click'</em> : {
355        fn: <b>this</b>.onClick,
356        scope: <b>this</b>,
357        delay: 100
358    },
359    <em>'mouseover'</em> : {
360        fn: <b>this</b>.onMouseOver,
361        scope: <b>this</b>
362    },
363    <em>'mouseout'</em> : {
364        fn: <b>this</b>.onMouseOut,
365        scope: <b>this</b>
366    }
367});</code></pre>
368<p>
369Or a shorthand syntax:<br>
370<pre><code>foo.on({
371    <em>'click'</em> : <b>this</b>.onClick,
372    <em>'mouseover'</em> : <b>this</b>.onMouseOver,
373    <em>'mouseout'</em> : <b>this</b>.onMouseOut,
374     scope: <b>this</b>
375});</code></pre></div></li>        </ul>
376        <strong>Returns:</strong>
377        <ul>
378            <li><code>void</code></li>
379        </ul>
380    </div>
381                </div>
382                        </div>
383        </td>
384        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
385    </tr>
386        <tr class="method-row inherited expandable">
387        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
388        <td class="sig">
389        <a id="Ext.data.SimpleStore-addSorted"></a>
390            <b>addSorted</b>(&nbsp;<code>Ext.data.Record record</code>&nbsp;) : void            <div class="mdesc">
391                        <div class="short">(Local sort only) Inserts the passed Record into the Store at the index where it
392should go based on the current sort ...</div>
393            <div class="long">
394                (Local sort only) Inserts the passed Record into the Store at the index where it
395should go based on the current sort information.    <div class="mdetail-params">
396        <strong>Parameters:</strong>
397        <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc"></div></li>        </ul>
398        <strong>Returns:</strong>
399        <ul>
400            <li><code>void</code></li>
401        </ul>
402    </div>
403                </div>
404                        </div>
405        </td>
406        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#addSorted" href="output/Ext.data.Store.html#addSorted">Store</a></td>
407    </tr>
408        <tr class="method-row inherited alt expandable">
409        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
410        <td class="sig">
411        <a id="Ext.data.SimpleStore-clearFilter"></a>
412            <b>clearFilter</b>(&nbsp;<code>Boolean suppressEvent</code>&nbsp;) : void            <div class="mdesc">
413                        <div class="short">Revert to a view of the Record cache with no filtering applied.</div>
414            <div class="long">
415                Revert to a view of the Record cache with no filtering applied.    <div class="mdetail-params">
416        <strong>Parameters:</strong>
417        <ul><li><code>suppressEvent</code> : Boolean<div class="sub-desc">If true the filter is cleared silently without notifying listeners</div></li>        </ul>
418        <strong>Returns:</strong>
419        <ul>
420            <li><code>void</code></li>
421        </ul>
422    </div>
423                </div>
424                        </div>
425        </td>
426        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#clearFilter" href="output/Ext.data.Store.html#clearFilter">Store</a></td>
427    </tr>
428        <tr class="method-row inherited expandable">
429        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
430        <td class="sig">
431        <a id="Ext.data.SimpleStore-collect"></a>
432            <b>collect</b>(&nbsp;<code>String dataIndex</code>, <span class="optional" title="Optional">[<code>Boolean allowNull</code>]</span>, <span class="optional" title="Optional">[<code>Boolean bypassFilter</code>]</span>&nbsp;) : Array            <div class="mdesc">
433                        <div class="short">Collects unique values for a particular dataIndex from this store.</div>
434            <div class="long">
435                Collects unique values for a particular dataIndex from this store.    <div class="mdetail-params">
436        <strong>Parameters:</strong>
437        <ul><li><code>dataIndex</code> : String<div class="sub-desc">The property to collect</div></li><li><code>allowNull</code> : Boolean<div class="sub-desc">(optional) Pass true to allow null, undefined or empty string values</div></li><li><code>bypassFilter</code> : Boolean<div class="sub-desc">(optional) Pass true to collect from all records, even ones which are filtered</div></li>        </ul>
438        <strong>Returns:</strong>
439        <ul>
440            <li><code>Array</code><div class="sub-desc">An array of the unique values</div></li>
441        </ul>
442    </div>
443                </div>
444                        </div>
445        </td>
446        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#collect" href="output/Ext.data.Store.html#collect">Store</a></td>
447    </tr>
448        <tr class="method-row inherited alt expandable">
449        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
450        <td class="sig">
451        <a id="Ext.data.SimpleStore-commitChanges"></a>
452            <b>commitChanges</b>() : void            <div class="mdesc">
453                        <div class="short">Commit all Records with outstanding changes. To handle updates for changes, subscribe to the
454Store's "update" event, ...</div>
455            <div class="long">
456                Commit all Records with outstanding changes. To handle updates for changes, subscribe to the
457Store's "update" event, and perform updating when the third parameter is Ext.data.Record.COMMIT.    <div class="mdetail-params">
458        <strong>Parameters:</strong>
459        <ul><li>None.</li>        </ul>
460        <strong>Returns:</strong>
461        <ul>
462            <li><code>void</code></li>
463        </ul>
464    </div>
465                </div>
466                        </div>
467        </td>
468        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#commitChanges" href="output/Ext.data.Store.html#commitChanges">Store</a></td>
469    </tr>
470        <tr class="method-row inherited expandable">
471        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
472        <td class="sig">
473        <a id="Ext.data.SimpleStore-each"></a>
474            <b>each</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
475                        <div class="short">Calls the specified function for each of the Records in the cache.</div>
476            <div class="long">
477                Calls the specified function for each of the Records in the cache.    <div class="mdetail-params">
478        <strong>Parameters:</strong>
479        <ul><li><code>fn</code> : Function<div class="sub-desc">The function to call. The Record is passed as the first parameter.
480Returning <tt>false</tt> aborts and exits the iteration.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to call the function (defaults to the Record).</div></li>        </ul>
481        <strong>Returns:</strong>
482        <ul>
483            <li><code>void</code></li>
484        </ul>
485    </div>
486                </div>
487                        </div>
488        </td>
489        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#each" href="output/Ext.data.Store.html#each">Store</a></td>
490    </tr>
491        <tr class="method-row inherited alt expandable">
492        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
493        <td class="sig">
494        <a id="Ext.data.SimpleStore-filter"></a>
495            <b>filter</b>(&nbsp;<code>String field</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;) : void            <div class="mdesc">
496                        <div class="short">Filter the records by a specified property.</div>
497            <div class="long">
498                Filter the records by a specified property.    <div class="mdetail-params">
499        <strong>Parameters:</strong>
500        <ul><li><code>field</code> : String<div class="sub-desc">A field on your records</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the field
501should begin with, or a RegExp to test against the field.</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li>        </ul>
502        <strong>Returns:</strong>
503        <ul>
504            <li><code>void</code></li>
505        </ul>
506    </div>
507                </div>
508                        </div>
509        </td>
510        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#filter" href="output/Ext.data.Store.html#filter">Store</a></td>
511    </tr>
512        <tr class="method-row inherited expandable">
513        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
514        <td class="sig">
515        <a id="Ext.data.SimpleStore-filterBy"></a>
516            <b>filterBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
517                        <div class="short">Filter by a function. The specified function will be called for each
518Record in this Store. If the function returns tr...</div>
519            <div class="long">
520                Filter by a function. The specified function will be called for each
521Record in this Store. If the function returns <tt>true</tt> the Record is included,
522otherwise it is filtered out.    <div class="mdetail-params">
523        <strong>Parameters:</strong>
524        <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
525<li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
526to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
527<li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
528</ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li>        </ul>
529        <strong>Returns:</strong>
530        <ul>
531            <li><code>void</code></li>
532        </ul>
533    </div>
534                </div>
535                        </div>
536        </td>
537        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#filterBy" href="output/Ext.data.Store.html#filterBy">Store</a></td>
538    </tr>
539        <tr class="method-row inherited alt expandable">
540        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
541        <td class="sig">
542        <a id="Ext.data.SimpleStore-find"></a>
543            <b>find</b>(&nbsp;<code>String property</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Number startIndex</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">
544                        <div class="short">Finds the index of the first matching record in this store by a specific property/value.</div>
545            <div class="long">
546                Finds the index of the first matching record in this store by a specific property/value.    <div class="mdetail-params">
547        <strong>Parameters:</strong>
548        <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 a string that the property value
549should begin with, or a RegExp to test against the property.</div></li><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The index to start searching at</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>
550        <strong>Returns:</strong>
551        <ul>
552            <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>
553        </ul>
554    </div>
555                </div>
556                        </div>
557        </td>
558        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#find" href="output/Ext.data.Store.html#find">Store</a></td>
559    </tr>
560        <tr class="method-row inherited expandable">
561        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
562        <td class="sig">
563        <a id="Ext.data.SimpleStore-findBy"></a>
564            <b>findBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Number startIndex</code>]</span>&nbsp;) : Number            <div class="mdesc">
565                        <div class="short">Find the index of the first matching Record in this Store by a function.
566If the function returns true it is considere...</div>
567            <div class="long">
568                Find the index of the first matching Record in this Store by a function.
569If the function returns <tt>true</tt> it is considered a match.    <div class="mdetail-params">
570        <strong>Parameters:</strong>
571        <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
572<li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
573to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
574<li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
575</ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The index to start searching at</div></li>        </ul>
576        <strong>Returns:</strong>
577        <ul>
578            <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>
579        </ul>
580    </div>
581                </div>
582                        </div>
583        </td>
584        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#findBy" href="output/Ext.data.Store.html#findBy">Store</a></td>
585    </tr>
586        <tr class="method-row inherited alt expandable">
587        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
588        <td class="sig">
589        <a id="Ext.data.SimpleStore-fireEvent"></a>
590            <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean            <div class="mdesc">
591                        <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
592            <div class="long">
593                Fires the specified event with the passed parameters (minus the event name).    <div class="mdetail-params">
594        <strong>Parameters:</strong>
595        <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>
596        <strong>Returns:</strong>
597        <ul>
598            <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
599        </ul>
600    </div>
601                </div>
602                        </div>
603        </td>
604        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
605    </tr>
606        <tr class="method-row inherited expandable">
607        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
608        <td class="sig">
609        <a id="Ext.data.SimpleStore-getAt"></a>
610            <b>getAt</b>(&nbsp;<code>Number index</code>&nbsp;) : Ext.data.Record            <div class="mdesc">
611                        <div class="short">Get the Record at the specified index.</div>
612            <div class="long">
613                Get the Record at the specified index.    <div class="mdetail-params">
614        <strong>Parameters:</strong>
615        <ul><li><code>index</code> : Number<div class="sub-desc">The index of the Record to find.</div></li>        </ul>
616        <strong>Returns:</strong>
617        <ul>
618            <li><code>Ext.data.Record</code><div class="sub-desc">The Record at the passed index. Returns undefined if not found.</div></li>
619        </ul>
620    </div>
621                </div>
622                        </div>
623        </td>
624        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getAt" href="output/Ext.data.Store.html#getAt">Store</a></td>
625    </tr>
626        <tr class="method-row inherited alt expandable">
627        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
628        <td class="sig">
629        <a id="Ext.data.SimpleStore-getById"></a>
630            <b>getById</b>(&nbsp;<code>String id</code>&nbsp;) : Ext.data.Record            <div class="mdesc">
631                        <div class="short">Get the Record with the specified id.</div>
632            <div class="long">
633                Get the Record with the specified id.    <div class="mdetail-params">
634        <strong>Parameters:</strong>
635        <ul><li><code>id</code> : String<div class="sub-desc">The id of the Record to find.</div></li>        </ul>
636        <strong>Returns:</strong>
637        <ul>
638            <li><code>Ext.data.Record</code><div class="sub-desc">The Record with the passed id. Returns undefined if not found.</div></li>
639        </ul>
640    </div>
641                </div>
642                        </div>
643        </td>
644        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getById" href="output/Ext.data.Store.html#getById">Store</a></td>
645    </tr>
646        <tr class="method-row inherited expandable">
647        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
648        <td class="sig">
649        <a id="Ext.data.SimpleStore-getCount"></a>
650            <b>getCount</b>() : Number            <div class="mdesc">
651                        <div class="short">Gets the number of cached records.
652If using paging, this may not be the total size of the dataset. If the data object...</div>
653            <div class="long">
654                Gets the number of cached records.
655<p>If using paging, this may not be the total size of the dataset. If the data object
656used by the Reader contains the dataset size, then the <a ext:cls="Ext.data.Store" ext:member="getTotalCount" href="output/Ext.data.Store.html#getTotalCount">getTotalCount</a> function returns
657the dataset size.</p>    <div class="mdetail-params">
658        <strong>Parameters:</strong>
659        <ul><li>None.</li>        </ul>
660        <strong>Returns:</strong>
661        <ul>
662            <li><code>Number</code><div class="sub-desc">The number of Records in the Store's cache.</div></li>
663        </ul>
664    </div>
665                </div>
666                        </div>
667        </td>
668        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getCount" href="output/Ext.data.Store.html#getCount">Store</a></td>
669    </tr>
670        <tr class="method-row inherited alt expandable">
671        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
672        <td class="sig">
673        <a id="Ext.data.SimpleStore-getModifiedRecords"></a>
674            <b>getModifiedRecords</b>() : Ext.data.Record[]            <div class="mdesc">
675                        <div class="short">Gets all records modified since the last commit.  Modified records are persisted across load operations
676(e.g., during...</div>
677            <div class="long">
678                Gets all records modified since the last commit.  Modified records are persisted across load operations
679(e.g., during paging).    <div class="mdetail-params">
680        <strong>Parameters:</strong>
681        <ul><li>None.</li>        </ul>
682        <strong>Returns:</strong>
683        <ul>
684            <li><code>Ext.data.Record[]</code><div class="sub-desc">An array of Records containing outstanding modifications.</div></li>
685        </ul>
686    </div>
687                </div>
688                        </div>
689        </td>
690        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getModifiedRecords" href="output/Ext.data.Store.html#getModifiedRecords">Store</a></td>
691    </tr>
692        <tr class="method-row inherited expandable">
693        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
694        <td class="sig">
695        <a id="Ext.data.SimpleStore-getRange"></a>
696            <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;) : Ext.data.Record[]            <div class="mdesc">
697                        <div class="short">Returns a range of Records between specified indices.</div>
698            <div class="long">
699                Returns a range of Records between specified indices.    <div class="mdetail-params">
700        <strong>Parameters:</strong>
701        <ul><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The starting index (defaults to 0)</div></li><li><code>endIndex</code> : Number<div class="sub-desc">(optional) The ending index (defaults to the last Record in the Store)</div></li>        </ul>
702        <strong>Returns:</strong>
703        <ul>
704            <li><code>Ext.data.Record[]</code><div class="sub-desc">An array of Records</div></li>
705        </ul>
706    </div>
707                </div>
708                        </div>
709        </td>
710        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getRange" href="output/Ext.data.Store.html#getRange">Store</a></td>
711    </tr>
712        <tr class="method-row inherited alt expandable">
713        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
714        <td class="sig">
715        <a id="Ext.data.SimpleStore-getSortState"></a>
716            <b>getSortState</b>() : Object            <div class="mdesc">
717                        <div class="short">Returns an object describing the current sort state of this Store.</div>
718            <div class="long">
719                Returns an object describing the current sort state of this Store.    <div class="mdetail-params">
720        <strong>Parameters:</strong>
721        <ul><li>None.</li>        </ul>
722        <strong>Returns:</strong>
723        <ul>
724            <li><code>Object</code><div class="sub-desc">The sort state of the Store. An object with two properties:<ul> <li><b>field : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li> <li><b>direction : String<p class="sub-desc">The sort order, "ASC" or "DESC" (case-sensitive).</p></li> </ul></div></li>
725        </ul>
726    </div>
727                </div>
728                        </div>
729        </td>
730        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getSortState" href="output/Ext.data.Store.html#getSortState">Store</a></td>
731    </tr>
732        <tr class="method-row inherited expandable">
733        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
734        <td class="sig">
735        <a id="Ext.data.SimpleStore-getTotalCount"></a>
736            <b>getTotalCount</b>() : Number            <div class="mdesc">
737                        <div class="short">Gets the total number of records in the dataset as returned by the server.
738If using paging, for this to be accurate, ...</div>
739            <div class="long">
740                Gets the total number of records in the dataset as returned by the server.
741<p>If using paging, for this to be accurate, the data object used by the Reader must contain
742the dataset size. For remote data sources, this is provided by a query on the server.</p>    <div class="mdetail-params">
743        <strong>Parameters:</strong>
744        <ul><li>None.</li>        </ul>
745        <strong>Returns:</strong>
746        <ul>
747            <li><code>Number</code><div class="sub-desc">The number of Records as specified in the data object passed to the Reader by the Proxy <p><b>This value is not updated when changing the contents of the Store locally.</b></p></div></li>
748        </ul>
749    </div>
750                </div>
751                        </div>
752        </td>
753        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getTotalCount" href="output/Ext.data.Store.html#getTotalCount">Store</a></td>
754    </tr>
755        <tr class="method-row inherited alt expandable">
756        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
757        <td class="sig">
758        <a id="Ext.data.SimpleStore-hasListener"></a>
759            <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean            <div class="mdesc">
760                        <div class="short">Checks to see if this object has any listeners for a specified event</div>
761            <div class="long">
762                Checks to see if this object has any listeners for a specified event    <div class="mdetail-params">
763        <strong>Parameters:</strong>
764        <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li>        </ul>
765        <strong>Returns:</strong>
766        <ul>
767            <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
768        </ul>
769    </div>
770                </div>
771                        </div>
772        </td>
773        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
774    </tr>
775        <tr class="method-row inherited expandable">
776        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
777        <td class="sig">
778        <a id="Ext.data.SimpleStore-indexOf"></a>
779            <b>indexOf</b>(&nbsp;<code>Ext.data.Record record</code>&nbsp;) : Number            <div class="mdesc">
780                        <div class="short">Get the index within the cache of the passed Record.</div>
781            <div class="long">
782                Get the index within the cache of the passed Record.    <div class="mdetail-params">
783        <strong>Parameters:</strong>
784        <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Ext.data.Record object to find.</div></li>        </ul>
785        <strong>Returns:</strong>
786        <ul>
787            <li><code>Number</code><div class="sub-desc">The index of the passed Record. Returns -1 if not found.</div></li>
788        </ul>
789    </div>
790                </div>
791                        </div>
792        </td>
793        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#indexOf" href="output/Ext.data.Store.html#indexOf">Store</a></td>
794    </tr>
795        <tr class="method-row inherited alt expandable">
796        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
797        <td class="sig">
798        <a id="Ext.data.SimpleStore-indexOfId"></a>
799            <b>indexOfId</b>(&nbsp;<code>String id</code>&nbsp;) : Number            <div class="mdesc">
800                        <div class="short">Get the index within the cache of the Record with the passed id.</div>
801            <div class="long">
802                Get the index within the cache of the Record with the passed id.    <div class="mdetail-params">
803        <strong>Parameters:</strong>
804        <ul><li><code>id</code> : String<div class="sub-desc">The id of the Record to find.</div></li>        </ul>
805        <strong>Returns:</strong>
806        <ul>
807            <li><code>Number</code><div class="sub-desc">The index of the Record. Returns -1 if not found.</div></li>
808        </ul>
809    </div>
810                </div>
811                        </div>
812        </td>
813        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#indexOfId" href="output/Ext.data.Store.html#indexOfId">Store</a></td>
814    </tr>
815        <tr class="method-row inherited expandable">
816        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
817        <td class="sig">
818        <a id="Ext.data.SimpleStore-insert"></a>
819            <b>insert</b>(&nbsp;<code>Number index</code>, <code>Ext.data.Record[] records</code>&nbsp;) : void            <div class="mdesc">
820                        <div class="short">Inserts Records into the Store at the given index and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.</div>
821            <div class="long">
822                Inserts Records into the Store at the given index and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.    <div class="mdetail-params">
823        <strong>Parameters:</strong>
824        <ul><li><code>index</code> : Number<div class="sub-desc">The start index at which to insert the passed Records.</div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">An Array of Ext.data.Record objects to add to the cache.</div></li>        </ul>
825        <strong>Returns:</strong>
826        <ul>
827            <li><code>void</code></li>
828        </ul>
829    </div>
830                </div>
831                        </div>
832        </td>
833        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#insert" href="output/Ext.data.Store.html#insert">Store</a></td>
834    </tr>
835        <tr class="method-row inherited alt expandable">
836        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
837        <td class="sig">
838        <a id="Ext.data.SimpleStore-isFiltered"></a>
839            <b>isFiltered</b>() : Boolean            <div class="mdesc">
840                        <div class="short">Returns true if this store is currently filtered</div>
841            <div class="long">
842                Returns true if this store is currently filtered    <div class="mdetail-params">
843        <strong>Parameters:</strong>
844        <ul><li>None.</li>        </ul>
845        <strong>Returns:</strong>
846        <ul>
847            <li><code>Boolean</code></li>
848        </ul>
849    </div>
850                </div>
851                        </div>
852        </td>
853        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#isFiltered" href="output/Ext.data.Store.html#isFiltered">Store</a></td>
854    </tr>
855        <tr class="method-row inherited expandable">
856        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
857        <td class="sig">
858        <a id="Ext.data.SimpleStore-load"></a>
859            <b>load</b>(&nbsp;<code>Object options</code>&nbsp;) : Boolean            <div class="mdesc">
860                        <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.
861If using remote paging, then the first ...</div>
862            <div class="long">
863                Loads the Record cache from the configured Proxy using the configured Reader.
864<p>If using remote paging, then the first load call must specify the <tt>start</tt>
865and <tt>limit</tt> properties in the options.params property to establish the initial
866position within the dataset, and the number of Records to cache on each read from the Proxy.</p>
867<p><b>It is important to note that for remote data sources, loading is asynchronous,
868and this call will return before the new data has been loaded. Perform any post-processing
869in a callback function, or in a "load" event handler.</b></p>    <div class="mdetail-params">
870        <strong>Parameters:</strong>
871        <ul><li><code>options</code> : Object<div class="sub-desc">An object containing properties which control loading options:<ul>
872<li><b>params</b> :Object<p class="sub-desc">An object containing properties to pass as HTTP parameters to a remote data source.</p></li>
873<li><b>callback</b> : Function<p class="sub-desc">A function to be called after the Records have been loaded. The callback is
874passed the following arguments:<ul>
875<li>r : Ext.data.Record[]</li>
876<li>options: Options object from the load call</li>
877<li>success: Boolean success indicator</li></ul></p></li>
878<li><b>scope</b> : Object<p class="sub-desc">Scope with which to call the callback (defaults to the Store object)</p></li>
879<li><b>add</b> : Boolean<p class="sub-desc">Indicator to append loaded records rather than replace the current cache.</p></li>
880</ul></div></li>        </ul>
881        <strong>Returns:</strong>
882        <ul>
883            <li><code>Boolean</code><div class="sub-desc">Whether the load fired (if beforeload failed).</div></li>
884        </ul>
885    </div>
886                </div>
887                        </div>
888        </td>
889        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#load" href="output/Ext.data.Store.html#load">Store</a></td>
890    </tr>
891        <tr class="method-row inherited alt expandable">
892        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
893        <td class="sig">
894        <a id="Ext.data.SimpleStore-loadData"></a>
895            <b>loadData</b>(&nbsp;<code>Object data</code>, <span class="optional" title="Optional">[<code>Boolean add</code>]</span>&nbsp;) : void            <div class="mdesc">
896                        <div class="short">Loads data from a passed data block and fires the load event. A Reader which understands the format of the data
897must ...</div>
898            <div class="long">
899                Loads data from a passed data block and fires the <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> event. A Reader which understands the format of the data
900must have been configured in the constructor.    <div class="mdetail-params">
901        <strong>Parameters:</strong>
902        <ul><li><code>data</code> : Object<div class="sub-desc">The data block from which to read the Records. The format of the data expected
903is dependent on the type of Reader that is configured and should correspond to that Reader's readRecords parameter.</div></li><li><code>add</code> : Boolean<div class="sub-desc">(Optional) True to add the new Records rather than replace the existing cache. <b>Remember that
904Records in a Store are keyed by their <a ext:cls="Ext.data.Record" ext:member="id" href="output/Ext.data.Record.html#id">id</a>, so added Records with ids which are already present in
905the Store will <i>replace</i> existing Records. Records with new, unique ids will be added.</b></div></li>        </ul>
906        <strong>Returns:</strong>
907        <ul>
908            <li><code>void</code></li>
909        </ul>
910    </div>
911                </div>
912                        </div>
913        </td>
914        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#loadData" href="output/Ext.data.Store.html#loadData">Store</a></td>
915    </tr>
916        <tr class="method-row inherited expandable">
917        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
918        <td class="sig">
919        <a id="Ext.data.SimpleStore-on"></a>
920            <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">
921                        <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
922            <div class="long">
923                Appends an event handler to this element (shorthand for addListener)    <div class="mdetail-params">
924        <strong>Parameters:</strong>
925        <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
926function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>
927        <strong>Returns:</strong>
928        <ul>
929            <li><code>void</code></li>
930        </ul>
931    </div>
932                </div>
933                        </div>
934        </td>
935        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
936    </tr>
937        <tr class="method-row inherited alt expandable">
938        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
939        <td class="sig">
940        <a id="Ext.data.SimpleStore-purgeListeners"></a>
941            <b>purgeListeners</b>() : void            <div class="mdesc">
942                        <div class="short">Removes all listeners for this object</div>
943            <div class="long">
944                Removes all listeners for this object    <div class="mdetail-params">
945        <strong>Parameters:</strong>
946        <ul><li>None.</li>        </ul>
947        <strong>Returns:</strong>
948        <ul>
949            <li><code>void</code></li>
950        </ul>
951    </div>
952                </div>
953                        </div>
954        </td>
955        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
956    </tr>
957        <tr class="method-row inherited expandable">
958        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
959        <td class="sig">
960        <a id="Ext.data.SimpleStore-query"></a>
961            <b>query</b>(&nbsp;<code>String field</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">
962                        <div class="short">Query the records by a specified property.</div>
963            <div class="long">
964                Query the records by a specified property.    <div class="mdetail-params">
965        <strong>Parameters:</strong>
966        <ul><li><code>field</code> : String<div class="sub-desc">A field on your records</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the field
967should begin with, or a RegExp to test against the field.</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li>        </ul>
968        <strong>Returns:</strong>
969        <ul>
970            <li><code>MixedCollection</code><div class="sub-desc">Returns an Ext.util.MixedCollection of the matched records</div></li>
971        </ul>
972    </div>
973                </div>
974                        </div>
975        </td>
976        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#query" href="output/Ext.data.Store.html#query">Store</a></td>
977    </tr>
978        <tr class="method-row inherited alt expandable">
979        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
980        <td class="sig">
981        <a id="Ext.data.SimpleStore-queryBy"></a>
982            <b>queryBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : MixedCollection            <div class="mdesc">
983                        <div class="short">Query the cached records in this Store using a filtering function. The specified function
984will be called with each re...</div>
985            <div class="long">
986                Query the cached records in this Store using a filtering function. The specified function
987will be called with each record in this Store. If the function returns <tt>true</tt> the record is
988included in the results.    <div class="mdetail-params">
989        <strong>Parameters:</strong>
990        <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
991<li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
992to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
993<li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
994</ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li>        </ul>
995        <strong>Returns:</strong>
996        <ul>
997            <li><code>MixedCollection</code><div class="sub-desc">Returns an Ext.util.MixedCollection of the matched records</div></li>
998        </ul>
999    </div>
1000                </div>
1001                        </div>
1002        </td>
1003        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#queryBy" href="output/Ext.data.Store.html#queryBy">Store</a></td>
1004    </tr>
1005        <tr class="method-row inherited expandable">
1006        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1007        <td class="sig">
1008        <a id="Ext.data.SimpleStore-rejectChanges"></a>
1009            <b>rejectChanges</b>() : void            <div class="mdesc">
1010                        <div class="short">Cancel outstanding changes on all changed records.</div>
1011            <div class="long">
1012                Cancel outstanding changes on all changed records.    <div class="mdetail-params">
1013        <strong>Parameters:</strong>
1014        <ul><li>None.</li>        </ul>
1015        <strong>Returns:</strong>
1016        <ul>
1017            <li><code>void</code></li>
1018        </ul>
1019    </div>
1020                </div>
1021                        </div>
1022        </td>
1023        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#rejectChanges" href="output/Ext.data.Store.html#rejectChanges">Store</a></td>
1024    </tr>
1025        <tr class="method-row inherited alt expandable">
1026        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1027        <td class="sig">
1028        <a id="Ext.data.SimpleStore-relayEvents"></a>
1029            <b>relayEvents</b>(&nbsp;<code>Object o</code>, <code>Array events</code>&nbsp;) : void            <div class="mdesc">
1030                        <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div>
1031            <div class="long">
1032                Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.    <div class="mdetail-params">
1033        <strong>Parameters:</strong>
1034        <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>
1035        <strong>Returns:</strong>
1036        <ul>
1037            <li><code>void</code></li>
1038        </ul>
1039    </div>
1040                </div>
1041                        </div>
1042        </td>
1043        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td>
1044    </tr>
1045        <tr class="method-row inherited expandable">
1046        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1047        <td class="sig">
1048        <a id="Ext.data.SimpleStore-reload"></a>
1049            <b>reload</b>(&nbsp;<span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
1050                        <div class="short">Reloads the Record cache from the configured Proxy using the configured Reader and
1051the options from the last load ope...</div>
1052            <div class="long">
1053                <p>Reloads the Record cache from the configured Proxy using the configured Reader and
1054the options from the last load operation performed.</p>
1055<p><b>It is important to note that for remote data sources, loading is asynchronous,
1056and this call will return before the new data has been loaded. Perform any post-processing
1057in a callback function, or in a "load" event handler.</b></p>    <div class="mdetail-params">
1058        <strong>Parameters:</strong>
1059        <ul><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing loading options which may override the options
1060used in the last load operation. See <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details (defaults to null, in which case
1061the most recently used options are reused).</div></li>        </ul>
1062        <strong>Returns:</strong>
1063        <ul>
1064            <li><code>void</code></li>
1065        </ul>
1066    </div>
1067                </div>
1068                        </div>
1069        </td>
1070        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#reload" href="output/Ext.data.Store.html#reload">Store</a></td>
1071    </tr>
1072        <tr class="method-row inherited alt expandable">
1073        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1074        <td class="sig">
1075        <a id="Ext.data.SimpleStore-remove"></a>
1076            <b>remove</b>(&nbsp;<code>Ext.data.Record record</code>&nbsp;) : void            <div class="mdesc">
1077                        <div class="short">Remove a Record from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.</div>
1078            <div class="long">
1079                Remove a Record from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.    <div class="mdetail-params">
1080        <strong>Parameters:</strong>
1081        <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Ext.data.Record object to remove from the cache.</div></li>        </ul>
1082        <strong>Returns:</strong>
1083        <ul>
1084            <li><code>void</code></li>
1085        </ul>
1086    </div>
1087                </div>
1088                        </div>
1089        </td>
1090        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#remove" href="output/Ext.data.Store.html#remove">Store</a></td>
1091    </tr>
1092        <tr class="method-row inherited expandable">
1093        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1094        <td class="sig">
1095        <a id="Ext.data.SimpleStore-removeAll"></a>
1096            <b>removeAll</b>() : void            <div class="mdesc">
1097                        <div class="short">Remove all Records from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="clear" href="output/Ext.data.Store.html#clear">clear</a> event.</div>
1098            <div class="long">
1099                Remove all Records from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="clear" href="output/Ext.data.Store.html#clear">clear</a> event.    <div class="mdetail-params">
1100        <strong>Parameters:</strong>
1101        <ul><li>None.</li>        </ul>
1102        <strong>Returns:</strong>
1103        <ul>
1104            <li><code>void</code></li>
1105        </ul>
1106    </div>
1107                </div>
1108                        </div>
1109        </td>
1110        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#removeAll" href="output/Ext.data.Store.html#removeAll">Store</a></td>
1111    </tr>
1112        <tr class="method-row inherited alt expandable">
1113        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1114        <td class="sig">
1115        <a id="Ext.data.SimpleStore-removeAt"></a>
1116            <b>removeAt</b>(&nbsp;<code>Number index</code>&nbsp;) : void            <div class="mdesc">
1117                        <div class="short">Remove a Record from the Store at the specified index. Fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.</div>
1118            <div class="long">
1119                Remove a Record from the Store at the specified index. Fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.    <div class="mdetail-params">
1120        <strong>Parameters:</strong>
1121        <ul><li><code>index</code> : Number<div class="sub-desc">The index of the record to remove.</div></li>        </ul>
1122        <strong>Returns:</strong>
1123        <ul>
1124            <li><code>void</code></li>
1125        </ul>
1126    </div>
1127                </div>
1128                        </div>
1129        </td>
1130        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#removeAt" href="output/Ext.data.Store.html#removeAt">Store</a></td>
1131    </tr>
1132        <tr class="method-row inherited expandable">
1133        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1134        <td class="sig">
1135        <a id="Ext.data.SimpleStore-removeListener"></a>
1136            <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">
1137                        <div class="short">Removes a listener</div>
1138            <div class="long">
1139                Removes a listener    <div class="mdetail-params">
1140        <strong>Parameters:</strong>
1141        <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>
1142        <strong>Returns:</strong>
1143        <ul>
1144            <li><code>void</code></li>
1145        </ul>
1146    </div>
1147                </div>
1148                        </div>
1149        </td>
1150        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
1151    </tr>
1152        <tr class="method-row inherited alt expandable">
1153        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1154        <td class="sig">
1155        <a id="Ext.data.SimpleStore-resumeEvents"></a>
1156            <b>resumeEvents</b>() : void            <div class="mdesc">
1157                        <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>
1158            <div class="long">
1159                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">
1160        <strong>Parameters:</strong>
1161        <ul><li>None.</li>        </ul>
1162        <strong>Returns:</strong>
1163        <ul>
1164            <li><code>void</code></li>
1165        </ul>
1166    </div>
1167                </div>
1168                        </div>
1169        </td>
1170        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
1171    </tr>
1172        <tr class="method-row inherited expandable">
1173        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1174        <td class="sig">
1175        <a id="Ext.data.SimpleStore-setDefaultSort"></a>
1176            <b>setDefaultSort</b>(&nbsp;<code>String fieldName</code>, <span class="optional" title="Optional">[<code>String dir</code>]</span>&nbsp;) : void            <div class="mdesc">
1177                        <div class="short">Sets the default sort column and order to be used by the next load operation.</div>
1178            <div class="long">
1179                Sets the default sort column and order to be used by the next load operation.    <div class="mdetail-params">
1180        <strong>Parameters:</strong>
1181        <ul><li><code>fieldName</code> : String<div class="sub-desc">The name of the field to sort by.</div></li><li><code>dir</code> : String<div class="sub-desc">(optional) The sort order, "ASC" or "DESC" (case-sensitive, defaults to "ASC")</div></li>        </ul>
1182        <strong>Returns:</strong>
1183        <ul>
1184            <li><code>void</code></li>
1185        </ul>
1186    </div>
1187                </div>
1188                        </div>
1189        </td>
1190        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#setDefaultSort" href="output/Ext.data.Store.html#setDefaultSort">Store</a></td>
1191    </tr>
1192        <tr class="method-row inherited alt expandable">
1193        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1194        <td class="sig">
1195        <a id="Ext.data.SimpleStore-sort"></a>
1196            <b>sort</b>(&nbsp;<code>String fieldName</code>, <span class="optional" title="Optional">[<code>String dir</code>]</span>&nbsp;) : void            <div class="mdesc">
1197                        <div class="short">Sort the Records.
1198If remote sorting is used, the sort is performed on the server, and the cache is
1199reloaded. If local...</div>
1200            <div class="long">
1201                Sort the Records.
1202If remote sorting is used, the sort is performed on the server, and the cache is
1203reloaded. If local sorting is used, the cache is sorted internally.    <div class="mdetail-params">
1204        <strong>Parameters:</strong>
1205        <ul><li><code>fieldName</code> : String<div class="sub-desc">The name of the field to sort by.</div></li><li><code>dir</code> : String<div class="sub-desc">(optional) The sort order, "ASC" or "DESC" (case-sensitive, defaults to "ASC")</div></li>        </ul>
1206        <strong>Returns:</strong>
1207        <ul>
1208            <li><code>void</code></li>
1209        </ul>
1210    </div>
1211                </div>
1212                        </div>
1213        </td>
1214        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#sort" href="output/Ext.data.Store.html#sort">Store</a></td>
1215    </tr>
1216        <tr class="method-row inherited expandable">
1217        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1218        <td class="sig">
1219        <a id="Ext.data.SimpleStore-sum"></a>
1220            <b>sum</b>(&nbsp;<code>String property</code>, <code>Number start</code>, <code>Number end</code>&nbsp;) : Number            <div class="mdesc">
1221                        <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div>
1222            <div class="long">
1223                Sums the value of <i>property</i> for each record between start and end and returns the result.    <div class="mdetail-params">
1224        <strong>Parameters:</strong>
1225        <ul><li><code>property</code> : String<div class="sub-desc">A field on your records</div></li><li><code>start</code> : Number<div class="sub-desc">The record index to start at (defaults to 0)</div></li><li><code>end</code> : Number<div class="sub-desc">The last record index to include (defaults to length - 1)</div></li>        </ul>
1226        <strong>Returns:</strong>
1227        <ul>
1228            <li><code>Number</code><div class="sub-desc">The sum</div></li>
1229        </ul>
1230    </div>
1231                </div>
1232                        </div>
1233        </td>
1234        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#sum" href="output/Ext.data.Store.html#sum">Store</a></td>
1235    </tr>
1236        <tr class="method-row inherited alt expandable">
1237        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1238        <td class="sig">
1239        <a id="Ext.data.SimpleStore-suspendEvents"></a>
1240            <b>suspendEvents</b>() : void            <div class="mdesc">
1241                        <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>
1242            <div class="long">
1243                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">
1244        <strong>Parameters:</strong>
1245        <ul><li>None.</li>        </ul>
1246        <strong>Returns:</strong>
1247        <ul>
1248            <li><code>void</code></li>
1249        </ul>
1250    </div>
1251                </div>
1252                        </div>
1253        </td>
1254        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
1255    </tr>
1256        <tr class="method-row inherited expandable">
1257        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1258        <td class="sig">
1259        <a id="Ext.data.SimpleStore-un"></a>
1260            <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">
1261                        <div class="short">Removes a listener (shorthand for removeListener)</div>
1262            <div class="long">
1263                Removes a listener (shorthand for removeListener)    <div class="mdetail-params">
1264        <strong>Parameters:</strong>
1265        <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>
1266        <strong>Returns:</strong>
1267        <ul>
1268            <li><code>void</code></li>
1269        </ul>
1270    </div>
1271                </div>
1272                        </div>
1273        </td>
1274        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
1275    </tr>
1276            </table>
1277                <a id="Ext.data.SimpleStore-events"></a>
1278        <h2>Public Events</h2>
1279                <table cellspacing="0" class="member-table">
1280            <tr>
1281                <th class="sig-header" colspan="2">Event</th>
1282                <th class="msource-header">Defined By</th>
1283            </tr>
1284                <tr class="event-row inherited expandable">
1285        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1286        <td class="sig">
1287        <a id="Ext.data.SimpleStore-add"></a>
1288            <b>add</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record[] records</code>, <code>Number index</code>&nbsp;)            <div class="mdesc">
1289                        <div class="short">Fires when Records have been added to the Store</div>
1290            <div class="long">
1291                Fires when Records have been added to the Store    <div class="mdetail-params">
1292        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1293        <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">The array of Records added</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the record(s) were added</div></li>        </ul>
1294    </div>
1295                </div>
1296                        </div>
1297        </td>
1298        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-add" href="output/Ext.data.Store.html#event-add">Store</a></td>
1299    </tr>
1300        <tr class="event-row inherited alt expandable">
1301        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1302        <td class="sig">
1303        <a id="Ext.data.SimpleStore-beforeload"></a>
1304            <b>beforeload</b> : (&nbsp;<code>Store this</code>, <code>Object options</code>&nbsp;)            <div class="mdesc">
1305                        <div class="short">Fires before a request is made for a new data object.  If the beforeload handler returns false
1306the load action will b...</div>
1307            <div class="long">
1308                Fires before a request is made for a new data object.  If the beforeload handler returns false
1309the load action will be canceled.    <div class="mdetail-params">
1310        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1311        <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>options</code> : Object<div class="sub-desc">The loading options that were specified (see <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details)</div></li>        </ul>
1312    </div>
1313                </div>
1314                        </div>
1315        </td>
1316        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-beforeload" href="output/Ext.data.Store.html#event-beforeload">Store</a></td>
1317    </tr>
1318        <tr class="event-row inherited expandable">
1319        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1320        <td class="sig">
1321        <a id="Ext.data.SimpleStore-clear"></a>
1322            <b>clear</b> : (&nbsp;<code>Store this</code>&nbsp;)            <div class="mdesc">
1323                        <div class="short">Fires when the data cache has been cleared.</div>
1324            <div class="long">
1325                Fires when the data cache has been cleared.    <div class="mdetail-params">
1326        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1327        <ul><li><code>this</code> : Store<div class="sub-desc"></div></li>        </ul>
1328    </div>
1329                </div>
1330                        </div>
1331        </td>
1332        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-clear" href="output/Ext.data.Store.html#event-clear">Store</a></td>
1333    </tr>
1334        <tr class="event-row inherited alt expandable">
1335        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1336        <td class="sig">
1337        <a id="Ext.data.SimpleStore-datachanged"></a>
1338            <b>datachanged</b> : (&nbsp;<code>Store this</code>&nbsp;)            <div class="mdesc">
1339                        <div class="short">Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a
1340widget that ...</div>
1341            <div class="long">
1342                Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a
1343widget that is using this Store as a Record cache should refresh its view.    <div class="mdetail-params">
1344        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1345        <ul><li><code>this</code> : Store<div class="sub-desc"></div></li>        </ul>
1346    </div>
1347                </div>
1348                        </div>
1349        </td>
1350        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-datachanged" href="output/Ext.data.Store.html#event-datachanged">Store</a></td>
1351    </tr>
1352        <tr class="event-row inherited expandable">
1353        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1354        <td class="sig">
1355        <a id="Ext.data.SimpleStore-load"></a>
1356            <b>load</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record[] records</code>, <code>Object options</code>&nbsp;)            <div class="mdesc">
1357                        <div class="short">Fires after a new set of Records has been loaded.</div>
1358            <div class="long">
1359                Fires after a new set of Records has been loaded.    <div class="mdetail-params">
1360        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1361        <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">The Records that were loaded</div></li><li><code>options</code> : Object<div class="sub-desc">The loading options that were specified (see <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details)</div></li>        </ul>
1362    </div>
1363                </div>
1364                        </div>
1365        </td>
1366        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-load" href="output/Ext.data.Store.html#event-load">Store</a></td>
1367    </tr>
1368        <tr class="event-row inherited alt expandable">
1369        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1370        <td class="sig">
1371        <a id="Ext.data.SimpleStore-loadexception"></a>
1372            <b>loadexception</b> : ()            <div class="mdesc">
1373                        <div class="short">Fires if an exception occurs in the Proxy during loading.
1374Called with the signature of the Proxy's "loadexception" ev...</div>
1375            <div class="long">
1376                Fires if an exception occurs in the Proxy during loading.
1377Called with the signature of the Proxy's "loadexception" event.    <div class="mdetail-params">
1378        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1379        <ul><li>None.</li>        </ul>
1380    </div>
1381                </div>
1382                        </div>
1383        </td>
1384        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-loadexception" href="output/Ext.data.Store.html#event-loadexception">Store</a></td>
1385    </tr>
1386        <tr class="event-row inherited expandable">
1387        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1388        <td class="sig">
1389        <a id="Ext.data.SimpleStore-metachange"></a>
1390            <b>metachange</b> : (&nbsp;<code>Store this</code>, <code>Object meta</code>&nbsp;)            <div class="mdesc">
1391                        <div class="short">Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders.</div>
1392            <div class="long">
1393                Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders.    <div class="mdetail-params">
1394        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1395        <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>meta</code> : Object<div class="sub-desc">The JSON metadata</div></li>        </ul>
1396    </div>
1397                </div>
1398                        </div>
1399        </td>
1400        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-metachange" href="output/Ext.data.Store.html#event-metachange">Store</a></td>
1401    </tr>
1402        <tr class="event-row inherited alt expandable">
1403        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1404        <td class="sig">
1405        <a id="Ext.data.SimpleStore-remove"></a>
1406            <b>remove</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record record</code>, <code>Number index</code>&nbsp;)            <div class="mdesc">
1407                        <div class="short">Fires when a Record has been removed from the Store</div>
1408            <div class="long">
1409                Fires when a Record has been removed from the Store    <div class="mdetail-params">
1410        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1411        <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record that was removed</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the record was removed</div></li>        </ul>
1412    </div>
1413                </div>
1414                        </div>
1415        </td>
1416        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-remove" href="output/Ext.data.Store.html#event-remove">Store</a></td>
1417    </tr>
1418        <tr class="event-row inherited expandable">
1419        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1420        <td class="sig">
1421        <a id="Ext.data.SimpleStore-update"></a>
1422            <b>update</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record record</code>, <code>String operation</code>&nbsp;)            <div class="mdesc">
1423                        <div class="short">Fires when a Record has been updated</div>
1424            <div class="long">
1425                Fires when a Record has been updated    <div class="mdetail-params">
1426        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1427        <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record that was updated</div></li><li><code>operation</code> : String<div class="sub-desc">The update operation being performed. Value may be one of:
1428<pre><code>Ext.data.Record.EDIT
1429 Ext.data.Record.REJECT
1430 Ext.data.Record.COMMIT</code></pre></div></li>        </ul>
1431    </div>
1432                </div>
1433                        </div>
1434        </td>
1435        <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-update" href="output/Ext.data.Store.html#event-update">Store</a></td>
1436    </tr>
1437            </table>
1438       
1439        </div>
Note: See TracBrowser for help on using the repository browser.