docs/default.css
[roojs1] / docs / symbols / Roo.data.Store.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
6         <head>
7                 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8                 <meta name="generator" content="JsDoc Toolkit" />
9                 
10                 
11                 <title>JsDoc Reference - Roo.data.Store</title>
12                 
13                 
14         <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />            
15         <link rel="stylesheet" type="text/css" href="../default.css" />
16         
17         
18         <script type="text/javascript" src="../page.js">
19         
20         </script>
21          
22                 
23         </head>
24
25         <body onload="RooDocsPage.onload();">
26          
27         
28 <div class="body-wrap">
29
30     <!-- ============================== links to methods. ================================= --> 
31
32     <div class="top-tools">
33     <!--
34         <a class="inner-link" href="#Roo.data.Store-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35         <a class="inner-link" href="#Roo.data.Store-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36         <a class="inner-link" href="#Roo.data.Store-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37         <a class="inner-link" href="#Roo.data.Store-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38         <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
39         -->
40     </div>
41
42     
43 <!-- ============================== inheritance Block. ================================= -->    
44         
45                 <div class="inheritance res-block">
46                    <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1"  width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.data.Store 
48
49                    </pre>
50                 </div>
51        
52 <!-- ============================== class title / details ============================ -->
53     
54     
55     <h1 class="classTitle">
56                                 
57                                 Class Roo.data.Store
58                         </h1>
59                         
60     <table cellspacing="0" class="class-summary-table">
61         
62                 <tr><td class="label">Package:</td><td class="hd-info">Roo.data</td></tr>
63         
64         <tr><td class="label">Defined In:</td><td class="hd-info">
65                         
66                                         <a href="./src/Roo_data_Store.js.html">Roo/data/Store.js</a>.
67                         
68         </td></tr>
69         <tr><td class="label">Class:</td><td class="hd-info">Store</td></tr>
70         
71         
72         <tr><td class="label">Subclasses:</td><td class="hd-info">
73                 <a href="./Roo.data.JsonStore.html#constructor" roo:cls="Roo.data.JsonStore.html#constructor">Roo.data.JsonStore</a>, <a href="./Roo.data.SimpleStore.html#constructor" roo:cls="Roo.data.SimpleStore.html#constructor">Roo.data.SimpleStore</a>
74
75         
76         
77         </td></tr>
78         
79         
80         
81                 <tr><td class="label">Extends:</td><td class="hd-info">
82                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
83         
84                 </td></tr>    
85         
86         
87     </table>
88
89     
90 <!-- ============================== class summary ========================== -->                        
91     <div class="description">
92         The Store class encapsulates a client side cache of {<b>link</b> Roo.data.Record} objects which provide input data<br/>for widgets such as the Roo.grid.Grid, or the Roo.form.ComboBox.<br><br/><p><br/>A Store object uses an implementation of {<b>link</b> Roo.data.DataProxy} to access a data object unless you call loadData() directly and pass in your data. The Store object<br/>has no knowledge of the format of the data returned by the Proxy.<br><br/><p><br/>A Store object uses its configured implementation of {<b>link</b> Roo.data.DataReader} to create {<b>link</b> Roo.data.Record}<br/>instances from the data object. These records are cached and made available through accessor functions.
93     </div>
94
95         
96 <!-- ============================== Class comment block... ========================== -->                                       
97
98 <div class="comments">
99         <b>Class Comments / Notes</B> =>  
100         <u onclick="parent.CommentDialog.showCommentId = 'Roo.data.Store';">[Add Your comment/notes about this class]</u>
101         <br/>
102         <iframe frameborder="0"  id="comments-Roo.data" style="border: none;width:100%;" 
103                 src="/blog.php/GtkDjsComments/Roo.data.Store.html"></iframe>
104 </div>
105         
106
107                 
108 <!-- ============================== config options ========================== -->                                               
109                  
110     
111     
112                 
113     <div class="hr"></div>
114     <a id="Roo.data.Store-configs"></a>
115                 
116     
117      
118     
119         
120       <table cellspacing="0" class="member-table">   
121       <caption>Config Options (Usually are also Properties)</caption>
122     
123         
124         <tr>
125             <th class="sig-header" colspan="2">Options</th>
126             
127             <th class="msource-header">Defined By</th>
128         </tr>
129         
130         
131         
132         
133         
134                 <tr class="config-row expandable config-row-alt0 notInherited">
135                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
136                     <td class="sig">
137
138                         <a id="Roo.data.Store-cfg-baseParams" name=".baseParams"></a>
139                         <div class="fixedFont">
140                                 <b  class="itemname">baseParams</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
141                                 
142                                 
143                         </div>
144                   
145                         <div class="mdesc">
146                             <div class="short">An object containing properties which are to be sent as parameters<br/>on any HTTP request</div> 
147                         </div>
148                         
149                         <div class="mdesc">
150                             <div class="long">An object containing properties which are to be sent as parameters<br/>on any HTTP request</div> 
151                         </div>
152                         
153                         
154
155                     </td>
156                     <td class="msource">
157                         
158                         Roo.data.Store
159                                 
160                     </td>
161                 </tr>
162         
163         
164                 <tr class="config-row expandable config-row-alt1 notInherited">
165                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
166                     <td class="sig">
167
168                         <a id="Roo.data.Store-cfg-data" name=".data"></a>
169                         <div class="fixedFont">
170                                 <b  class="itemname">data</b> : <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
171                                 
172                                 
173                         </div>
174                   
175                         <div class="mdesc">
176                             <div class="short">Inline data to be loaded when the store is initialized.</div> 
177                         </div>
178                         
179                         <div class="mdesc">
180                             <div class="long">Inline data to be loaded when the store is initialized.</div> 
181                         </div>
182                         
183                         
184
185                     </td>
186                     <td class="msource">
187                         
188                         Roo.data.Store
189                                 
190                     </td>
191                 </tr>
192         
193         
194                 <tr class="config-row expandable config-row-alt0 notInherited">
195                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
196                     <td class="sig">
197
198                         <a id="Roo.data.Store-cfg-isLocal" name=".isLocal"></a>
199                         <div class="fixedFont">
200                                 <b  class="itemname">isLocal</b> : boolean
201                                 
202                                 
203                         </div>
204                   
205                         <div class="mdesc">
206                             <div class="short">flag if data is locally available (and can be always looked up<br/>without a remote query - used by combo/forms at present.</div> 
207                         </div>
208                         
209                         <div class="mdesc">
210                             <div class="long">flag if data is locally available (and can be always looked up<br/>without a remote query - used by combo/forms at present.</div> 
211                         </div>
212                         
213                         
214
215                     </td>
216                     <td class="msource">
217                         
218                         Roo.data.Store
219                                 
220                     </td>
221                 </tr>
222         
223         
224                 <tr class="config-row expandable config-row-alt1">
225                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
226                     <td class="sig">
227
228                         <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
229                         <div class="fixedFont">
230                                 <b  class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
231                                 
232                                 
233                         </div>
234                   
235                         <div class="mdesc">
236                             <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/>    listeners :  { <br/>       'click' : function(e) {<br/>           .</div> 
237                         </div>
238                         
239                         <div class="mdesc">
240                             <div class="long">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/>    listeners :  { <br/>       'click' : function(e) {<br/>           ..... <br/>        } ,<br/>        .... <br/>    } <br/>  </code></pre></div> 
241                         </div>
242                         
243                         
244
245                     </td>
246                     <td class="msource">
247                         
248                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
249                                 
250                     </td>
251                 </tr>
252         
253         
254                 <tr class="config-row expandable config-row-alt0 notInherited">
255                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
256                     <td class="sig">
257
258                         <a id="Roo.data.Store-cfg-multiSort" name=".multiSort"></a>
259                         <div class="fixedFont">
260                                 <b  class="itemname">multiSort</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
261                                 
262                                 
263                         </div>
264                   
265                         <div class="mdesc">
266                             <div class="short">enable multi column sorting (sort is based on the order of columns, remote only at present)</div> 
267                         </div>
268                         
269                         <div class="mdesc">
270                             <div class="long">enable multi column sorting (sort is based on the order of columns, remote only at present)</div> 
271                         </div>
272                         
273                         
274
275                     </td>
276                     <td class="msource">
277                         
278                         Roo.data.Store
279                                 
280                     </td>
281                 </tr>
282         
283         
284                 <tr class="config-row expandable config-row-alt1 notInherited">
285                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
286                     <td class="sig">
287
288                         <a id="Roo.data.Store-cfg-proxy" name=".proxy"></a>
289                         <div class="fixedFont">
290                                 <b  class="itemname">proxy</b> : <a href="./Roo.data.DataProxy.html#constructor" roo:cls="Roo.data.DataProxy.html#constructor">Roo.data.DataProxy</a>
291                                 
292                                 
293                         </div>
294                   
295                         <div class="mdesc">
296                             <div class="short">The Proxy object which provides access to a data object.</div> 
297                         </div>
298                         
299                         <div class="mdesc">
300                             <div class="long">The Proxy object which provides access to a data object.</div> 
301                         </div>
302                         
303                         
304
305                     </td>
306                     <td class="msource">
307                         
308                         Roo.data.Store
309                                 
310                     </td>
311                 </tr>
312         
313         
314                 <tr class="config-row expandable config-row-alt0 notInherited">
315                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
316                     <td class="sig">
317
318                         <a id="Roo.data.Store-cfg-pruneModifiedRecords" name=".pruneModifiedRecords"></a>
319                         <div class="fixedFont">
320                                 <b  class="itemname">pruneModifiedRecords</b> : boolean
321                                 
322                                 
323                         </div>
324                   
325                         <div class="mdesc">
326                             <div class="short">True to clear all modified record information each time the store is<br/>loaded or when a record is removed.</div> 
327                         </div>
328                         
329                         <div class="mdesc">
330                             <div class="long">True to clear all modified record information each time the store is<br/>loaded or when a record is removed. (defaults to false).</div> 
331                         </div>
332                         
333                         
334
335                     </td>
336                     <td class="msource">
337                         
338                         Roo.data.Store
339                                 
340                     </td>
341                 </tr>
342         
343         
344                 <tr class="config-row expandable config-row-alt1 notInherited">
345                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
346                     <td class="sig">
347
348                         <a id="Roo.data.Store-cfg-reader" name=".reader"></a>
349                         <div class="fixedFont">
350                                 <b  class="itemname">reader</b> : Roo.data.Reader
351                                 
352                                 
353                         </div>
354                   
355                         <div class="mdesc">
356                             <div class="short">The Reader object which processes the data object and returns<br/>an Array of Roo.data.record objects which are cached keyed by their <em>id</em> property.</div> 
357                         </div>
358                         
359                         <div class="mdesc">
360                             <div class="long">The Reader object which processes the data object and returns<br/>an Array of Roo.data.record objects which are cached keyed by their <em>id</em> property.</div> 
361                         </div>
362                         
363                         
364
365                     </td>
366                     <td class="msource">
367                         
368                         Roo.data.Store
369                                 
370                     </td>
371                 </tr>
372         
373         
374                 <tr class="config-row expandable config-row-alt0 notInherited">
375                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
376                     <td class="sig">
377
378                         <a id="Roo.data.Store-cfg-remoteSort" name=".remoteSort"></a>
379                         <div class="fixedFont">
380                                 <b  class="itemname">remoteSort</b> : boolean
381                                 
382                                 
383                         </div>
384                   
385                         <div class="mdesc">
386                             <div class="short">True if sorting is to be handled by requesting the Proxy to provide a refreshed<br/>version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false).</div> 
387                         </div>
388                         
389                         <div class="mdesc">
390                             <div class="long">True if sorting is to be handled by requesting the Proxy to provide a refreshed<br/>version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false).</div> 
391                         </div>
392                         
393                         
394
395                     </td>
396                     <td class="msource">
397                         
398                         Roo.data.Store
399                                 
400                     </td>
401                 </tr>
402         
403         
404                 <tr class="config-row expandable config-row-alt1 notInherited">
405                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
406                     <td class="sig">
407
408                         <a id="Roo.data.Store-cfg-sortInfo" name=".sortInfo"></a>
409                         <div class="fixedFont">
410                                 <b  class="itemname">sortInfo</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
411                                 
412                                 
413                         </div>
414                   
415                         <div class="mdesc">
416                             <div class="short">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div> 
417                         </div>
418                         
419                         <div class="mdesc">
420                             <div class="long">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div> 
421                         </div>
422                         
423                         
424
425                     </td>
426                     <td class="msource">
427                         
428                         Roo.data.Store
429                                 
430                     </td>
431                 </tr>
432         
433         
434     </table>
435                 
436   
437   
438   
439   
440   
441   
442   
443   
444   <!-- ============================== public properties ==================== -->        
445   
446   
447   
448     <a id="Roo.data.Store-props"></a>      
449     
450     
451
452     
453     
454      <table cellspacing="0" class="member-table">
455       <caption class="Empty">Public Properties - Has None</caption>
456      </table>
457     
458     
459      
460     
461   <!-- ============================== methods summary / details ======================== -->
462   
463   
464   <a id="Roo.data.Store-methods"></a>
465         <!-- constructor?? -->
466         
467         <!-- static's first 
468         
469         
470         -->
471         
472         <!-- then dynamics first -->
473         
474   
475   
476     
477     
478     
479       <table cellspacing="0" class="member-table">
480       <caption>Public Methods</caption>
481         <tr>
482             <th class="sig-header" colspan="2">Method</th>            
483             <th class="msource-header">Defined By</th>
484
485         </tr>
486         
487         
488         
489          
490         
491         
492           
493           <tr class="method-row config-row-alt0 expandable notInherited">
494             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
495            
496            
497             <td class="sig">
498                 <a id="Roo.data-method-Store"   name=".Store"></a>
499                 <div class="fixedFont">
500                         <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">Store</b>
501                                 
502                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>) 
503                         
504                                 
505                         
506                 </div>
507                 <div class="mdesc">
508                 
509                  
510                         <div class="short">Create a new Roo.data.Store</div> 
511                  
512                  
513                     <div class="long">
514                         
515                         
516                         
517                                 Create a new Roo.data.Store
518                         
519                         
520                                 <dl class="detailList">
521                                 <dt class="heading">Parameters:</dt>
522                                 
523                                         <dt>
524                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>config</b>
525                                                 
526                                         </dt>
527                                         <dd>A config object containing the objects needed for the Store to access data,<br/>and read the data into Records.</dd>
528                                 
529                                 </dl>
530                         
531                         
532                         
533                         
534                         
535                         
536                         
537
538                     
539                     
540                      
541                     </div>                    
542                 </div>
543
544             </td>
545             <td class="msource">
546                 &nbsp;
547             </td>
548         </tr>
549         
550           
551           <tr class="method-row config-row-alt1 expandable notInherited">
552             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
553            
554            
555             <td class="sig">
556                 <a id="Roo.data.Store-method-add"   name=".add"></a>
557                 <div class="fixedFont">
558                         <span class="attributes"></span><b class="itemname">add</b>
559                                 
560                                  (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>) 
561                         
562                                 
563                         
564                 </div>
565                 <div class="mdesc">
566                 
567                    <div class="short">Add Records to the Store and fires the add event.</div> 
568                  
569                  
570                  
571                     <div class="long">
572                         
573                                 Add Records to the Store and fires the add event.
574                     
575                                 
576                         
577                         
578                         
579                         
580                                 <dl class="detailList">
581                                 <dt class="heading">Parameters:</dt>
582                                 
583                                         <dt>
584                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span>  <b>records</b>
585                                                 
586                                         </dt>
587                                         <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
588                                 
589                                 </dl>
590                         
591                         
592                         
593                         
594                         
595                         
596                         
597
598                     
599                     
600                      
601                     </div>                    
602                 </div>
603
604             </td>
605             <td class="msource">
606                 
607                         Roo.data.Store
608                 &nbsp;
609             </td>
610         </tr>
611         
612           
613           <tr class="method-row config-row-alt0 expandable">
614             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
615            
616            
617             <td class="sig">
618                 <a id="Roo.util.Observable-method-addEvents"   name=".addEvents"></a>
619                 <div class="fixedFont">
620                         <span class="attributes"></span><b class="itemname">addEvents</b>
621                                 
622                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>) 
623                         
624                                 
625                         
626                 </div>
627                 <div class="mdesc">
628                 
629                    <div class="short">Used to define events on this Observable</div> 
630                  
631                  
632                  
633                     <div class="long">
634                         
635                                 Used to define events on this Observable
636                     
637                                 
638                         
639                         
640                         
641                         
642                                 <dl class="detailList">
643                                 <dt class="heading">Parameters:</dt>
644                                 
645                                         <dt>
646                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>object</b>
647                                                 
648                                         </dt>
649                                         <dd>The object with the events defined</dd>
650                                 
651                                 </dl>
652                         
653                         
654                         
655                         
656                         
657                         
658                         
659
660                     
661                     
662                      
663                     </div>                    
664                 </div>
665
666             </td>
667             <td class="msource">
668                 
669                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
670                 &nbsp;
671             </td>
672         </tr>
673         
674           
675           <tr class="method-row config-row-alt1 expandable">
676             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
677            
678            
679             <td class="sig">
680                 <a id="Roo.util.Observable-method-addListener"   name=".addListener"></a>
681                 <div class="fixedFont">
682                         <span class="attributes"></span><b class="itemname">addListener</b>
683                                 
684                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
685                         
686                                 
687                         
688                 </div>
689                 <div class="mdesc">
690                 
691                    <div class="short">Appends an event handler to this component</div> 
692                  
693                  
694                  
695                     <div class="long">
696                         
697                                 Appends an event handler to this component
698                     
699                                 
700                         
701                         
702                         
703                         
704                                 <dl class="detailList">
705                                 <dt class="heading">Parameters:</dt>
706                                 
707                                         <dt>
708                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
709                                                 
710                                         </dt>
711                                         <dd>The type of event to listen for</dd>
712                                 
713                                         <dt>
714                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>handler</b>
715                                                 
716                                         </dt>
717                                         <dd>The method the event invokes</dd>
718                                 
719                                         <dt>
720                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
721                                                 
722                                         </dt>
723                                         <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
724                                 
725                                         <dt>
726                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>options</b>
727                                                 
728                                         </dt>
729                                         <dd>(optional) An object containing handler configuration<br/>properties. This may contain any of the following properties:<ul><br/><li>scope {Object} The scope in which to execute the handler function. The handler function's "this" context.</li><br/><li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li><br/><li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li><br/><li>buffer {Number} Causes the handler to be scheduled to run in an {<b>link</b> Roo.util.DelayedTask} delayed<br/>by the specified number of milliseconds. If the event fires again within that time, the original<br/>handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li><br/></ul><br><br/><p><br/><b>Combining Options</b><br><br/>Using the options argument, it is possible to combine different types of listeners:<br><br/><br><br/>A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)<br/>             <pre><code><br/>                el.on('click', this.onClick, this, {<br/>                       single: true,<br/>              delay: 100,<br/>                forumId: 4<br/>         });<br/>                </code></pre><br/><p><br/><b>Attaching multiple handlers in 1 call</b><br><br/>The method also allows for a single argument to be passed which is a config object containing properties<br/>which specify multiple handlers.<br/><pre><code><br/>               el.on({<br/>                    'click': {<br/>                 fn: this.onClick,<br/>                  scope: this,<br/>                       delay: 100<br/>                 }, <br/>                'mouseover': {<br/>                     fn: this.onMouseOver,<br/>                      scope: this<br/>                },<br/>                 'mouseout': {<br/>                      fn: this.onMouseOut,<br/>                       scope: this<br/>                }<br/>          });<br/>                </code></pre><br/><p><br/>Or a shorthand syntax which passes the same scope object to all handlers:<br/>        <pre><code><br/>                el.on({<br/>                    'click': this.onClick,<br/>             'mouseover': this.onMouseOver,<br/>             'mouseout': this.onMouseOut,<br/>               scope: this<br/>                });<br/>                </code></pre></dd>
730                                 
731                                 </dl>
732                         
733                         
734                         
735                         
736                         
737                         
738                         
739
740                     
741                     
742                      
743                     </div>                    
744                 </div>
745
746             </td>
747             <td class="msource">
748                 
749                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
750                 &nbsp;
751             </td>
752         </tr>
753         
754           
755           <tr class="method-row config-row-alt0 expandable notInherited">
756             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
757            
758            
759             <td class="sig">
760                 <a id="Roo.data.Store-method-clearFilter"   name=".clearFilter"></a>
761                 <div class="fixedFont">
762                         <span class="attributes"></span><b class="itemname">clearFilter</b>
763                                 
764                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>) 
765                         
766                                 
767                         
768                 </div>
769                 <div class="mdesc">
770                 
771                    <div class="short">Revert to a view of the Record cache with no filtering applied.</div> 
772                  
773                  
774                  
775                     <div class="long">
776                         
777                                 Revert to a view of the Record cache with no filtering applied.
778                     
779                                 
780                         
781                         
782                         
783                         
784                                 <dl class="detailList">
785                                 <dt class="heading">Parameters:</dt>
786                                 
787                                         <dt>
788                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>suppressEvent</b>
789                                                 
790                                         </dt>
791                                         <dd>If true the filter is cleared silently without notifying listeners</dd>
792                                 
793                                 </dl>
794                         
795                         
796                         
797                         
798                         
799                         
800                         
801
802                     
803                     
804                      
805                     </div>                    
806                 </div>
807
808             </td>
809             <td class="msource">
810                 
811                         Roo.data.Store
812                 &nbsp;
813             </td>
814         </tr>
815         
816           
817           <tr class="method-row config-row-alt1 expandable notInherited">
818             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
819            
820            
821             <td class="sig">
822                 <a id="Roo.data.Store-method-collect"   name=".collect"></a>
823                 <div class="fixedFont">
824                         <span class="attributes"></span><b class="itemname">collect</b>
825                                 
826                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>dataIndex</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>allowNull</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>bypassFilter</i></B>) 
827                         
828                                 
829                                          : 
830                                         
831                                                 
832                                                 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
833                                         
834                                         
835                                         
836                                 
837                         
838                 </div>
839                 <div class="mdesc">
840                 
841                    <div class="short">Collects unique values for a particular dataIndex from this store.</div> 
842                  
843                  
844                  
845                     <div class="long">
846                         
847                                 Collects unique values for a particular dataIndex from this store.
848                     
849                                 
850                         
851                         
852                         
853                         
854                                 <dl class="detailList">
855                                 <dt class="heading">Parameters:</dt>
856                                 
857                                         <dt>
858                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>dataIndex</b>
859                                                 
860                                         </dt>
861                                         <dd>The property to collect</dd>
862                                 
863                                         <dt>
864                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>allowNull</b>
865                                                 
866                                         </dt>
867                                         <dd>(optional) Pass true to allow null, undefined or empty string values</dd>
868                                 
869                                         <dt>
870                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>bypassFilter</b>
871                                                 
872                                         </dt>
873                                         <dd>(optional) Pass true to collect from all records, even ones which are filtered</dd>
874                                 
875                                 </dl>
876                         
877                         
878                         
879                         
880                         
881                                 <dl class="detailList">
882                                 <dt class="heading">Returns:</dt>
883                                 
884                                         <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span>  An array of the unique values</dd>
885                                 
886                                 </dl>
887                         
888                         
889                         
890
891                     
892                     
893                      
894                     </div>                    
895                 </div>
896
897             </td>
898             <td class="msource">
899                 
900                         Roo.data.Store
901                 &nbsp;
902             </td>
903         </tr>
904         
905           
906           <tr class="method-row config-row-alt0 expandable notInherited">
907             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
908            
909            
910             <td class="sig">
911                 <a id="Roo.data.Store-method-commitChanges"   name=".commitChanges"></a>
912                 <div class="fixedFont">
913                         <span class="attributes"></span><b class="itemname">commitChanges</b>
914                                 
915                                  () 
916                         
917                                 
918                         
919                 </div>
920                 <div class="mdesc">
921                 
922                    <div class="short">Commit all Records with outstanding changes.</div> 
923                  
924                  
925                  
926                     <div class="long">
927                         
928                                 Commit all Records with outstanding changes. To handle updates for changes, subscribe to the<br/>Store's "update" event, and perform updating when the third parameter is Roo.data.Record.COMMIT.
929                     
930                                 
931                         
932                         
933                         
934                         
935                         
936                         
937                         
938                         
939                         
940                         
941
942                     
943                     
944                      
945                     </div>                    
946                 </div>
947
948             </td>
949             <td class="msource">
950                 
951                         Roo.data.Store
952                 &nbsp;
953             </td>
954         </tr>
955         
956           
957           <tr class="method-row config-row-alt1 expandable notInherited">
958             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
959            
960            
961             <td class="sig">
962                 <a id="Roo.data.Store-method-each"   name=".each"></a>
963                 <div class="fixedFont">
964                         <span class="attributes"></span><b class="itemname">each</b>
965                                 
966                                  (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>) 
967                         
968                                 
969                         
970                 </div>
971                 <div class="mdesc">
972                 
973                    <div class="short">Calls the specified function for each of the Records in the cache.</div> 
974                  
975                  
976                  
977                     <div class="long">
978                         
979                                 Calls the specified function for each of the Records in the cache.
980                     
981                                 
982                         
983                         
984                         
985                         
986                                 <dl class="detailList">
987                                 <dt class="heading">Parameters:</dt>
988                                 
989                                         <dt>
990                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
991                                                 
992                                         </dt>
993                                         <dd>The function to call. The Record is passed as the first parameter.<br/>Returning <em>false</em> aborts and exits the iteration.</dd>
994                                 
995                                         <dt>
996                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
997                                                 
998                                         </dt>
999                                         <dd>(optional) The scope in which to call the function (defaults to the Record).</dd>
1000                                 
1001                                 </dl>
1002                         
1003                         
1004                         
1005                         
1006                         
1007                         
1008                         
1009
1010                     
1011                     
1012                      
1013                     </div>                    
1014                 </div>
1015
1016             </td>
1017             <td class="msource">
1018                 
1019                         Roo.data.Store
1020                 &nbsp;
1021             </td>
1022         </tr>
1023         
1024           
1025           <tr class="method-row config-row-alt0 expandable notInherited">
1026             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1027            
1028            
1029             <td class="sig">
1030                 <a id="Roo.data.Store-method-filter"   name=".filter"></a>
1031                 <div class="fixedFont">
1032                         <span class="attributes"></span><b class="itemname">filter</b>
1033                                 
1034                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>field</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp <B><i>value</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>anyMatch</i></B>) 
1035                         
1036                                 
1037                         
1038                 </div>
1039                 <div class="mdesc">
1040                 
1041                    <div class="short">Filter the records by a specified property.</div> 
1042                  
1043                  
1044                  
1045                     <div class="long">
1046                         
1047                                 Filter the records by a specified property.
1048                     
1049                                 
1050                         
1051                         
1052                         
1053                         
1054                                 <dl class="detailList">
1055                                 <dt class="heading">Parameters:</dt>
1056                                 
1057                                         <dt>
1058                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>field</b>
1059                                                 
1060                                         </dt>
1061                                         <dd>A field on your records</dd>
1062                                 
1063                                         <dt>
1064                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span>  <b>value</b>
1065                                                 
1066                                         </dt>
1067                                         <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
1068                                 
1069                                         <dt>
1070                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>anyMatch</b>
1071                                                 
1072                                         </dt>
1073                                         <dd>True to match any part not just the beginning</dd>
1074                                 
1075                                 </dl>
1076                         
1077                         
1078                         
1079                         
1080                         
1081                         
1082                         
1083
1084                     
1085                     
1086                      
1087                     </div>                    
1088                 </div>
1089
1090             </td>
1091             <td class="msource">
1092                 
1093                         Roo.data.Store
1094                 &nbsp;
1095             </td>
1096         </tr>
1097         
1098           
1099           <tr class="method-row config-row-alt1 expandable notInherited">
1100             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1101            
1102            
1103             <td class="sig">
1104                 <a id="Roo.data.Store-method-filterBy"   name=".filterBy"></a>
1105                 <div class="fixedFont">
1106                         <span class="attributes"></span><b class="itemname">filterBy</b>
1107                                 
1108                                  (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>) 
1109                         
1110                                 
1111                         
1112                 </div>
1113                 <div class="mdesc">
1114                 
1115                    <div class="short">Filter by a function.</div> 
1116                  
1117                  
1118                  
1119                     <div class="long">
1120                         
1121                                 Filter by a function. The specified function will be called with each<br/>record in this data source. If the function returns true the record is included,<br/>otherwise it is filtered.
1122                     
1123                                 
1124                         
1125                         
1126                         
1127                         
1128                                 <dl class="detailList">
1129                                 <dt class="heading">Parameters:</dt>
1130                                 
1131                                         <dt>
1132                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
1133                                                 
1134                                         </dt>
1135                                         <dd>The function to be called, it will receive 2 args (record, id)</dd>
1136                                 
1137                                         <dt>
1138                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
1139                                                 
1140                                         </dt>
1141                                         <dd>(optional) The scope of the function (defaults to this)</dd>
1142                                 
1143                                 </dl>
1144                         
1145                         
1146                         
1147                         
1148                         
1149                         
1150                         
1151
1152                     
1153                     
1154                      
1155                     </div>                    
1156                 </div>
1157
1158             </td>
1159             <td class="msource">
1160                 
1161                         Roo.data.Store
1162                 &nbsp;
1163             </td>
1164         </tr>
1165         
1166           
1167           <tr class="method-row config-row-alt0 expandable">
1168             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1169            
1170            
1171             <td class="sig">
1172                 <a id="Roo.util.Observable-method-fireEvent"   name=".fireEvent"></a>
1173                 <div class="fixedFont">
1174                         <span class="attributes"></span><b class="itemname">fireEvent</b>
1175                                 
1176                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a> <B><i>args</i></B>) 
1177                         
1178                                 
1179                                          : 
1180                                         
1181                                                 
1182                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1183                                         
1184                                         
1185                                         
1186                                 
1187                         
1188                 </div>
1189                 <div class="mdesc">
1190                 
1191                    <div class="short">Fires the specified event with the passed parameters (minus the event name).</div> 
1192                  
1193                  
1194                  
1195                     <div class="long">
1196                         
1197                                 Fires the specified event with the passed parameters (minus the event name).
1198                     
1199                                 
1200                         
1201                         
1202                         
1203                         
1204                                 <dl class="detailList">
1205                                 <dt class="heading">Parameters:</dt>
1206                                 
1207                                         <dt>
1208                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
1209                                                 
1210                                         </dt>
1211                                         <dd></dd>
1212                                 
1213                                         <dt>
1214                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a></span>  <b>args</b>
1215                                                 
1216                                         </dt>
1217                                         <dd>Variable number of parameters are passed to handlers</dd>
1218                                 
1219                                 </dl>
1220                         
1221                         
1222                         
1223                         
1224                         
1225                                 <dl class="detailList">
1226                                 <dt class="heading">Returns:</dt>
1227                                 
1228                                         <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  returns false if any of the handlers return false otherwise it returns true</dd>
1229                                 
1230                                 </dl>
1231                         
1232                         
1233                         
1234
1235                     
1236                     
1237                      
1238                     </div>                    
1239                 </div>
1240
1241             </td>
1242             <td class="msource">
1243                 
1244                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1245                 &nbsp;
1246             </td>
1247         </tr>
1248         
1249           
1250           <tr class="method-row config-row-alt1 expandable notInherited">
1251             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1252            
1253            
1254             <td class="sig">
1255                 <a id="Roo.data.Store-method-getAt"   name=".getAt"></a>
1256                 <div class="fixedFont">
1257                         <span class="attributes"></span><b class="itemname">getAt</b>
1258                                 
1259                                  (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>) 
1260                         
1261                                 
1262                                          : 
1263                                         
1264                                                 
1265                                                 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1266                                         
1267                                         
1268                                         
1269                                 
1270                         
1271                 </div>
1272                 <div class="mdesc">
1273                 
1274                    <div class="short">Get the Record at the specified index.</div> 
1275                  
1276                  
1277                  
1278                     <div class="long">
1279                         
1280                                 Get the Record at the specified index.
1281                     
1282                                 
1283                         
1284                         
1285                         
1286                         
1287                                 <dl class="detailList">
1288                                 <dt class="heading">Parameters:</dt>
1289                                 
1290                                         <dt>
1291                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>index</b>
1292                                                 
1293                                         </dt>
1294                                         <dd>The index of the Record to find.</dd>
1295                                 
1296                                 </dl>
1297                         
1298                         
1299                         
1300                         
1301                         
1302                                 <dl class="detailList">
1303                                 <dt class="heading">Returns:</dt>
1304                                 
1305                                         <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span>  The Record at the passed index. Returns undefined if not found.</dd>
1306                                 
1307                                 </dl>
1308                         
1309                         
1310                         
1311
1312                     
1313                     
1314                      
1315                     </div>                    
1316                 </div>
1317
1318             </td>
1319             <td class="msource">
1320                 
1321                         Roo.data.Store
1322                 &nbsp;
1323             </td>
1324         </tr>
1325         
1326           
1327           <tr class="method-row config-row-alt0 expandable notInherited">
1328             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1329            
1330            
1331             <td class="sig">
1332                 <a id="Roo.data.Store-method-getById"   name=".getById"></a>
1333                 <div class="fixedFont">
1334                         <span class="attributes"></span><b class="itemname">getById</b>
1335                                 
1336                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>) 
1337                         
1338                                 
1339                                          : 
1340                                         
1341                                                 
1342                                                 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1343                                         
1344                                         
1345                                         
1346                                 
1347                         
1348                 </div>
1349                 <div class="mdesc">
1350                 
1351                    <div class="short">Get the Record with the specified id.</div> 
1352                  
1353                  
1354                  
1355                     <div class="long">
1356                         
1357                                 Get the Record with the specified id.
1358                     
1359                                 
1360                         
1361                         
1362                         
1363                         
1364                                 <dl class="detailList">
1365                                 <dt class="heading">Parameters:</dt>
1366                                 
1367                                         <dt>
1368                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>id</b>
1369                                                 
1370                                         </dt>
1371                                         <dd>The id of the Record to find.</dd>
1372                                 
1373                                 </dl>
1374                         
1375                         
1376                         
1377                         
1378                         
1379                                 <dl class="detailList">
1380                                 <dt class="heading">Returns:</dt>
1381                                 
1382                                         <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span>  The Record with the passed id. Returns undefined if not found.</dd>
1383                                 
1384                                 </dl>
1385                         
1386                         
1387                         
1388
1389                     
1390                     
1391                      
1392                     </div>                    
1393                 </div>
1394
1395             </td>
1396             <td class="msource">
1397                 
1398                         Roo.data.Store
1399                 &nbsp;
1400             </td>
1401         </tr>
1402         
1403           
1404           <tr class="method-row config-row-alt1 expandable notInherited">
1405             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1406            
1407            
1408             <td class="sig">
1409                 <a id="Roo.data.Store-method-getCount"   name=".getCount"></a>
1410                 <div class="fixedFont">
1411                         <span class="attributes"></span><b class="itemname">getCount</b>
1412                                 
1413                                  () 
1414                         
1415                                 
1416                         
1417                 </div>
1418                 <div class="mdesc">
1419                 
1420                    <div class="short">Gets the number of cached records.</div> 
1421                  
1422                  
1423                  
1424                     <div class="long">
1425                         
1426                                 Gets the number of cached records.<br/><p><br/><em>If using paging, this may not be the total size of the dataset. If the data object<br/>used by the Reader contains the dataset size, then the getTotalCount() function returns<br/>the data set size</em>
1427                     
1428                                 
1429                         
1430                         
1431                         
1432                         
1433                         
1434                         
1435                         
1436                         
1437                         
1438                         
1439
1440                     
1441                     
1442                      
1443                     </div>                    
1444                 </div>
1445
1446             </td>
1447             <td class="msource">
1448                 
1449                         Roo.data.Store
1450                 &nbsp;
1451             </td>
1452         </tr>
1453         
1454           
1455           <tr class="method-row config-row-alt0 expandable notInherited">
1456             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1457            
1458            
1459             <td class="sig">
1460                 <a id="Roo.data.Store-method-getModifiedRecords"   name=".getModifiedRecords"></a>
1461                 <div class="fixedFont">
1462                         <span class="attributes"></span><b class="itemname">getModifiedRecords</b>
1463                                 
1464                                  () 
1465                         
1466                                 
1467                                          : 
1468                                         
1469                                                 
1470                                                 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1471                                         
1472                                         
1473                                         
1474                                 
1475                         
1476                 </div>
1477                 <div class="mdesc">
1478                 
1479                    <div class="short">Gets all records modified since the last commit.</div> 
1480                  
1481                  
1482                  
1483                     <div class="long">
1484                         
1485                                 Gets all records modified since the last commit.  Modified records are persisted across load operations<br/>(e.g., during paging).
1486                     
1487                                 
1488                         
1489                         
1490                         
1491                         
1492                         
1493                         
1494                         
1495                         
1496                                 <dl class="detailList">
1497                                 <dt class="heading">Returns:</dt>
1498                                 
1499                                         <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span>  An array of Records containing outstanding modifications.</dd>
1500                                 
1501                                 </dl>
1502                         
1503                         
1504                         
1505
1506                     
1507                     
1508                      
1509                     </div>                    
1510                 </div>
1511
1512             </td>
1513             <td class="msource">
1514                 
1515                         Roo.data.Store
1516                 &nbsp;
1517             </td>
1518         </tr>
1519         
1520           
1521           <tr class="method-row config-row-alt1 expandable notInherited">
1522             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1523            
1524            
1525             <td class="sig">
1526                 <a id="Roo.data.Store-method-getRange"   name=".getRange"></a>
1527                 <div class="fixedFont">
1528                         <span class="attributes"></span><b class="itemname">getRange</b>
1529                                 
1530                                  (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>startIndex</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>endIndex</i></B>) 
1531                         
1532                                 
1533                                          : 
1534                                         
1535                                                 
1536                                                 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1537                                         
1538                                         
1539                                         
1540                                 
1541                         
1542                 </div>
1543                 <div class="mdesc">
1544                 
1545                    <div class="short">Returns a range of Records between specified indices.</div> 
1546                  
1547                  
1548                  
1549                     <div class="long">
1550                         
1551                                 Returns a range of Records between specified indices.
1552                     
1553                                 
1554                         
1555                         
1556                         
1557                         
1558                                 <dl class="detailList">
1559                                 <dt class="heading">Parameters:</dt>
1560                                 
1561                                         <dt>
1562                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>startIndex</b>
1563                                                 
1564                                         </dt>
1565                                         <dd>(optional) The starting index (defaults to 0)</dd>
1566                                 
1567                                         <dt>
1568                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>endIndex</b>
1569                                                 
1570                                         </dt>
1571                                         <dd>(optional) The ending index (defaults to the last Record in the Store)</dd>
1572                                 
1573                                 </dl>
1574                         
1575                         
1576                         
1577                         
1578                         
1579                                 <dl class="detailList">
1580                                 <dt class="heading">Returns:</dt>
1581                                 
1582                                         <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span>  An array of Records</dd>
1583                                 
1584                                 </dl>
1585                         
1586                         
1587                         
1588
1589                     
1590                     
1591                      
1592                     </div>                    
1593                 </div>
1594
1595             </td>
1596             <td class="msource">
1597                 
1598                         Roo.data.Store
1599                 &nbsp;
1600             </td>
1601         </tr>
1602         
1603           
1604           <tr class="method-row config-row-alt0 expandable notInherited">
1605             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1606            
1607            
1608             <td class="sig">
1609                 <a id="Roo.data.Store-method-getSortState"   name=".getSortState"></a>
1610                 <div class="fixedFont">
1611                         <span class="attributes"></span><b class="itemname">getSortState</b>
1612                                 
1613                                  () 
1614                         
1615                                 
1616                         
1617                 </div>
1618                 <div class="mdesc">
1619                 
1620                    <div class="short">Returns the sort state of the Store as an object with two properties:<br/><pre><code><br/> field {String} The name of the field by which the Records are sorted<br/> direction {String} The sort order, "ASC" or "DESC"<br/></code></pre></div> 
1621                  
1622                  
1623                  
1624                     <div class="long">
1625                         
1626                                 Returns the sort state of the Store as an object with two properties:<br/><pre><code><br/> field {String} The name of the field by which the Records are sorted<br/> direction {String} The sort order, "ASC" or "DESC"<br/></code></pre>
1627                     
1628                                 
1629                         
1630                         
1631                         
1632                         
1633                         
1634                         
1635                         
1636                         
1637                         
1638                         
1639
1640                     
1641                     
1642                      
1643                     </div>                    
1644                 </div>
1645
1646             </td>
1647             <td class="msource">
1648                 
1649                         Roo.data.Store
1650                 &nbsp;
1651             </td>
1652         </tr>
1653         
1654           
1655           <tr class="method-row config-row-alt1 expandable notInherited">
1656             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1657            
1658            
1659             <td class="sig">
1660                 <a id="Roo.data.Store-method-getTotalCount"   name=".getTotalCount"></a>
1661                 <div class="fixedFont">
1662                         <span class="attributes"></span><b class="itemname">getTotalCount</b>
1663                                 
1664                                  () 
1665                         
1666                                 
1667                         
1668                 </div>
1669                 <div class="mdesc">
1670                 
1671                    <div class="short">Gets the total number of records in the dataset as returned by the server.</div> 
1672                  
1673                  
1674                  
1675                     <div class="long">
1676                         
1677                                 Gets the total number of records in the dataset as returned by the server.<br/><p><br/><em>If using paging, for this to be accurate, the data object used by the Reader must contain<br/>the dataset size</em>
1678                     
1679                                 
1680                         
1681                         
1682                         
1683                         
1684                         
1685                         
1686                         
1687                         
1688                         
1689                         
1690
1691                     
1692                     
1693                      
1694                     </div>                    
1695                 </div>
1696
1697             </td>
1698             <td class="msource">
1699                 
1700                         Roo.data.Store
1701                 &nbsp;
1702             </td>
1703         </tr>
1704         
1705           
1706           <tr class="method-row config-row-alt0 expandable">
1707             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1708            
1709            
1710             <td class="sig">
1711                 <a id="Roo.util.Observable-method-hasListener"   name=".hasListener"></a>
1712                 <div class="fixedFont">
1713                         <span class="attributes"></span><b class="itemname">hasListener</b>
1714                                 
1715                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>) 
1716                         
1717                                 
1718                                          : 
1719                                         
1720                                                 
1721                                                 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1722                                         
1723                                         
1724                                         
1725                                 
1726                         
1727                 </div>
1728                 <div class="mdesc">
1729                 
1730                    <div class="short">Checks to see if this object has any listeners for a specified event</div> 
1731                  
1732                  
1733                  
1734                     <div class="long">
1735                         
1736                                 Checks to see if this object has any listeners for a specified event
1737                     
1738                                 
1739                         
1740                         
1741                         
1742                         
1743                                 <dl class="detailList">
1744                                 <dt class="heading">Parameters:</dt>
1745                                 
1746                                         <dt>
1747                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
1748                                                 
1749                                         </dt>
1750                                         <dd>The name of the event to check for</dd>
1751                                 
1752                                 </dl>
1753                         
1754                         
1755                         
1756                         
1757                         
1758                                 <dl class="detailList">
1759                                 <dt class="heading">Returns:</dt>
1760                                 
1761                                         <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  True if the event is being listened for, else false</dd>
1762                                 
1763                                 </dl>
1764                         
1765                         
1766                         
1767
1768                     
1769                     
1770                      
1771                     </div>                    
1772                 </div>
1773
1774             </td>
1775             <td class="msource">
1776                 
1777                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1778                 &nbsp;
1779             </td>
1780         </tr>
1781         
1782           
1783           <tr class="method-row config-row-alt1 expandable notInherited">
1784             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1785            
1786            
1787             <td class="sig">
1788                 <a id="Roo.data.Store-method-indexOf"   name=".indexOf"></a>
1789                 <div class="fixedFont">
1790                         <span class="attributes"></span><b class="itemname">indexOf</b>
1791                                 
1792                                  (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>) 
1793                         
1794                                 
1795                                          : 
1796                                         
1797                                                 
1798                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1799                                         
1800                                         
1801                                         
1802                                 
1803                         
1804                 </div>
1805                 <div class="mdesc">
1806                 
1807                    <div class="short">Get the index within the cache of the passed Record.</div> 
1808                  
1809                  
1810                  
1811                     <div class="long">
1812                         
1813                                 Get the index within the cache of the passed Record.
1814                     
1815                                 
1816                         
1817                         
1818                         
1819                         
1820                                 <dl class="detailList">
1821                                 <dt class="heading">Parameters:</dt>
1822                                 
1823                                         <dt>
1824                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span>  <b>record</b>
1825                                                 
1826                                         </dt>
1827                                         <dd>The Roo.data.Record object to to find.</dd>
1828                                 
1829                                 </dl>
1830                         
1831                         
1832                         
1833                         
1834                         
1835                                 <dl class="detailList">
1836                                 <dt class="heading">Returns:</dt>
1837                                 
1838                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The index of the passed Record. Returns -1 if not found.</dd>
1839                                 
1840                                 </dl>
1841                         
1842                         
1843                         
1844
1845                     
1846                     
1847                      
1848                     </div>                    
1849                 </div>
1850
1851             </td>
1852             <td class="msource">
1853                 
1854                         Roo.data.Store
1855                 &nbsp;
1856             </td>
1857         </tr>
1858         
1859           
1860           <tr class="method-row config-row-alt0 expandable notInherited">
1861             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1862            
1863            
1864             <td class="sig">
1865                 <a id="Roo.data.Store-method-indexOfId"   name=".indexOfId"></a>
1866                 <div class="fixedFont">
1867                         <span class="attributes"></span><b class="itemname">indexOfId</b>
1868                                 
1869                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>) 
1870                         
1871                                 
1872                                          : 
1873                                         
1874                                                 
1875                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1876                                         
1877                                         
1878                                         
1879                                 
1880                         
1881                 </div>
1882                 <div class="mdesc">
1883                 
1884                    <div class="short">Get the index within the cache of the Record with the passed id.</div> 
1885                  
1886                  
1887                  
1888                     <div class="long">
1889                         
1890                                 Get the index within the cache of the Record with the passed id.
1891                     
1892                                 
1893                         
1894                         
1895                         
1896                         
1897                                 <dl class="detailList">
1898                                 <dt class="heading">Parameters:</dt>
1899                                 
1900                                         <dt>
1901                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>id</b>
1902                                                 
1903                                         </dt>
1904                                         <dd>The id of the Record to find.</dd>
1905                                 
1906                                 </dl>
1907                         
1908                         
1909                         
1910                         
1911                         
1912                                 <dl class="detailList">
1913                                 <dt class="heading">Returns:</dt>
1914                                 
1915                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The index of the Record. Returns -1 if not found.</dd>
1916                                 
1917                                 </dl>
1918                         
1919                         
1920                         
1921
1922                     
1923                     
1924                      
1925                     </div>                    
1926                 </div>
1927
1928             </td>
1929             <td class="msource">
1930                 
1931                         Roo.data.Store
1932                 &nbsp;
1933             </td>
1934         </tr>
1935         
1936           
1937           <tr class="method-row config-row-alt1 expandable notInherited">
1938             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1939            
1940            
1941             <td class="sig">
1942                 <a id="Roo.data.Store-method-insert"   name=".insert"></a>
1943                 <div class="fixedFont">
1944                         <span class="attributes"></span><b class="itemname">insert</b>
1945                                 
1946                                  (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>) 
1947                         
1948                                 
1949                         
1950                 </div>
1951                 <div class="mdesc">
1952                 
1953                    <div class="short">Inserts Records to the Store at the given index and fires the add event.</div> 
1954                  
1955                  
1956                  
1957                     <div class="long">
1958                         
1959                                 Inserts Records to the Store at the given index and fires the add event.
1960                     
1961                                 
1962                         
1963                         
1964                         
1965                         
1966                                 <dl class="detailList">
1967                                 <dt class="heading">Parameters:</dt>
1968                                 
1969                                         <dt>
1970                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>index</b>
1971                                                 
1972                                         </dt>
1973                                         <dd>The start index at which to insert the passed Records.</dd>
1974                                 
1975                                         <dt>
1976                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span>  <b>records</b>
1977                                                 
1978                                         </dt>
1979                                         <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
1980                                 
1981                                 </dl>
1982                         
1983                         
1984                         
1985                         
1986                         
1987                         
1988                         
1989
1990                     
1991                     
1992                      
1993                     </div>                    
1994                 </div>
1995
1996             </td>
1997             <td class="msource">
1998                 
1999                         Roo.data.Store
2000                 &nbsp;
2001             </td>
2002         </tr>
2003         
2004           
2005           <tr class="method-row config-row-alt0 expandable notInherited">
2006             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2007            
2008            
2009             <td class="sig">
2010                 <a id="Roo.data.Store-method-load"   name=".load"></a>
2011                 <div class="fixedFont">
2012                         <span class="attributes"></span><b class="itemname">load</b>
2013                                 
2014                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
2015                         
2016                                 
2017                         
2018                 </div>
2019                 <div class="mdesc">
2020                 
2021                    <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.</div> 
2022                  
2023                  
2024                  
2025                     <div class="long">
2026                         
2027                                 Loads the Record cache from the configured Proxy using the configured Reader.<br/><p><br/>If using remote paging, then the first load call must specify the <em>start</em><br/>and <em>limit</em> properties in the options.params property to establish the initial<br/>position within the dataset, and the number of Records to cache on each read from the Proxy.<br/><p><br/><strong>It is important to note that for remote data sources, loading is asynchronous,<br/>and this call will return before the new data has been loaded. Perform any post-processing<br/>in a callback function, or in a "load" event handler.</strong><br/><p>
2028                     
2029                                 
2030                         
2031                         
2032                         
2033                         
2034                                 <dl class="detailList">
2035                                 <dt class="heading">Parameters:</dt>
2036                                 
2037                                         <dt>
2038                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>options</b>
2039                                                 
2040                                         </dt>
2041                                         <dd>An object containing properties which control loading options:<ul><br/><li>params {Object} An object containing properties to pass as HTTP parameters to a remote data source.</li><br/><li>callback {Function} A function to be called after the Records have been loaded. The callback is<br/>passed the following arguments:<ul><br/><li>r : Roo.data.Record[]</li><br/><li>options: Options object from the load call</li><br/><li>success: Boolean success indicator</li></ul></li><br/><li>scope {Object} Scope with which to call the callback (defaults to the Store object)</li><br/><li>add {Boolean} indicator to append loaded records rather than replace the current cache.</li><br/></ul></dd>
2042                                 
2043                                 </dl>
2044                         
2045                         
2046                         
2047                         
2048                         
2049                         
2050                         
2051
2052                     
2053                     
2054                      
2055                     </div>                    
2056                 </div>
2057
2058             </td>
2059             <td class="msource">
2060                 
2061                         Roo.data.Store
2062                 &nbsp;
2063             </td>
2064         </tr>
2065         
2066           
2067           <tr class="method-row config-row-alt1 expandable notInherited">
2068             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2069            
2070            
2071             <td class="sig">
2072                 <a id="Roo.data.Store-method-loadData"   name=".loadData"></a>
2073                 <div class="fixedFont">
2074                         <span class="attributes"></span><b class="itemname">loadData</b>
2075                                 
2076                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>data</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>append</i></B>) 
2077                         
2078                                 
2079                         
2080                 </div>
2081                 <div class="mdesc">
2082                 
2083                    <div class="short">Loads data from a passed data block.</div> 
2084                  
2085                  
2086                  
2087                     <div class="long">
2088                         
2089                                 Loads data from a passed data block. A Reader which understands the format of the data<br/>must have been configured in the constructor.
2090                     
2091                                 
2092                         
2093                         
2094                         
2095                         
2096                                 <dl class="detailList">
2097                                 <dt class="heading">Parameters:</dt>
2098                                 
2099                                         <dt>
2100                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>data</b>
2101                                                 
2102                                         </dt>
2103                                         <dd>The data block from which to read the Records.  The format of the data expected<br/>is dependent on the type of Reader that is configured and should correspond to that Reader's readRecords parameter.</dd>
2104                                 
2105                                         <dt>
2106                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>append</b>
2107                                                 
2108                                         </dt>
2109                                         <dd>(Optional) True to append the new Records rather than replace the existing cache.</dd>
2110                                 
2111                                 </dl>
2112                         
2113                         
2114                         
2115                         
2116                         
2117                         
2118                         
2119
2120                     
2121                     
2122                      
2123                     </div>                    
2124                 </div>
2125
2126             </td>
2127             <td class="msource">
2128                 
2129                         Roo.data.Store
2130                 &nbsp;
2131             </td>
2132         </tr>
2133         
2134           
2135           <tr class="method-row config-row-alt0 expandable">
2136             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2137            
2138            
2139             <td class="sig">
2140                 <a id="Roo.util.Observable-method-on"   name=".on"></a>
2141                 <div class="fixedFont">
2142                         <span class="attributes"></span><b class="itemname">on</b>
2143                                 
2144                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
2145                         
2146                                 
2147                         
2148                 </div>
2149                 <div class="mdesc">
2150                 
2151                    <div class="short">Appends an event handler to this element (shorthand for addListener)</div> 
2152                  
2153                  
2154                  
2155                     <div class="long">
2156                         
2157                                 Appends an event handler to this element (shorthand for addListener)
2158                     
2159                                 
2160                         
2161                         
2162                         
2163                         
2164                                 <dl class="detailList">
2165                                 <dt class="heading">Parameters:</dt>
2166                                 
2167                                         <dt>
2168                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
2169                                                 
2170                                         </dt>
2171                                         <dd>The type of event to listen for</dd>
2172                                 
2173                                         <dt>
2174                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>handler</b>
2175                                                 
2176                                         </dt>
2177                                         <dd>The method the event invokes</dd>
2178                                 
2179                                         <dt>
2180                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
2181                                                 
2182                                         </dt>
2183                                         <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2184                                 
2185                                         <dt>
2186                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>options</b>
2187                                                 
2188                                         </dt>
2189                                         <dd>(optional)</dd>
2190                                 
2191                                 </dl>
2192                         
2193                         
2194                         
2195                         
2196                         
2197                         
2198                         
2199
2200                     
2201                     
2202                      
2203                     </div>                    
2204                 </div>
2205
2206             </td>
2207             <td class="msource">
2208                 
2209                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2210                 &nbsp;
2211             </td>
2212         </tr>
2213         
2214           
2215           <tr class="method-row config-row-alt1 expandable">
2216             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2217            
2218            
2219             <td class="sig">
2220                 <a id="Roo.util.Observable-method-purgeListeners"   name=".purgeListeners"></a>
2221                 <div class="fixedFont">
2222                         <span class="attributes"></span><b class="itemname">purgeListeners</b>
2223                                 
2224                                  () 
2225                         
2226                                 
2227                         
2228                 </div>
2229                 <div class="mdesc">
2230                 
2231                    <div class="short">Removes all listeners for this object</div> 
2232                  
2233                  
2234                  
2235                     <div class="long">
2236                         
2237                                 Removes all listeners for this object
2238                     
2239                                 
2240                         
2241                         
2242                         
2243                         
2244                         
2245                         
2246                         
2247                         
2248                         
2249                         
2250
2251                     
2252                     
2253                      
2254                     </div>                    
2255                 </div>
2256
2257             </td>
2258             <td class="msource">
2259                 
2260                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2261                 &nbsp;
2262             </td>
2263         </tr>
2264         
2265           
2266           <tr class="method-row config-row-alt0 expandable notInherited">
2267             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2268            
2269            
2270             <td class="sig">
2271                 <a id="Roo.data.Store-method-query"   name=".query"></a>
2272                 <div class="fixedFont">
2273                         <span class="attributes"></span><b class="itemname">query</b>
2274                                 
2275                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>field</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp <B><i>value</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>anyMatch</i></B>) 
2276                         
2277                                 
2278                                          : 
2279                                         
2280                                                 
2281                                                 MixedCollection
2282                                         
2283                                         
2284                                         
2285                                 
2286                         
2287                 </div>
2288                 <div class="mdesc">
2289                 
2290                    <div class="short">Query the records by a specified property.</div> 
2291                  
2292                  
2293                  
2294                     <div class="long">
2295                         
2296                                 Query the records by a specified property.
2297                     
2298                                 
2299                         
2300                         
2301                         
2302                         
2303                                 <dl class="detailList">
2304                                 <dt class="heading">Parameters:</dt>
2305                                 
2306                                         <dt>
2307                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>field</b>
2308                                                 
2309                                         </dt>
2310                                         <dd>A field on your records</dd>
2311                                 
2312                                         <dt>
2313                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span>  <b>value</b>
2314                                                 
2315                                         </dt>
2316                                         <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
2317                                 
2318                                         <dt>
2319                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>anyMatch</b>
2320                                                 
2321                                         </dt>
2322                                         <dd>True to match any part not just the beginning</dd>
2323                                 
2324                                 </dl>
2325                         
2326                         
2327                         
2328                         
2329                         
2330                                 <dl class="detailList">
2331                                 <dt class="heading">Returns:</dt>
2332                                 
2333                                         <dd><span class="fixedFont">MixedCollection</span>  Returns an Roo.util.MixedCollection of the matched records</dd>
2334                                 
2335                                 </dl>
2336                         
2337                         
2338                         
2339
2340                     
2341                     
2342                      
2343                     </div>                    
2344                 </div>
2345
2346             </td>
2347             <td class="msource">
2348                 
2349                         Roo.data.Store
2350                 &nbsp;
2351             </td>
2352         </tr>
2353         
2354           
2355           <tr class="method-row config-row-alt1 expandable notInherited">
2356             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2357            
2358            
2359             <td class="sig">
2360                 <a id="Roo.data.Store-method-queryBy"   name=".queryBy"></a>
2361                 <div class="fixedFont">
2362                         <span class="attributes"></span><b class="itemname">queryBy</b>
2363                                 
2364                                  (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>) 
2365                         
2366                                 
2367                                          : 
2368                                         
2369                                                 
2370                                                 MixedCollection
2371                                         
2372                                         
2373                                         
2374                                 
2375                         
2376                 </div>
2377                 <div class="mdesc">
2378                 
2379                    <div class="short">Query by a function.</div> 
2380                  
2381                  
2382                  
2383                     <div class="long">
2384                         
2385                                 Query by a function. The specified function will be called with each<br/>record in this data source. If the function returns true the record is included<br/>in the results.
2386                     
2387                                 
2388                         
2389                         
2390                         
2391                         
2392                                 <dl class="detailList">
2393                                 <dt class="heading">Parameters:</dt>
2394                                 
2395                                         <dt>
2396                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
2397                                                 
2398                                         </dt>
2399                                         <dd>The function to be called, it will receive 2 args (record, id)</dd>
2400                                 
2401                                         <dt>
2402                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
2403                                                 
2404                                         </dt>
2405                                         <dd>(optional) The scope of the function (defaults to this)</dd>
2406                                 
2407                                 </dl>
2408                         
2409                         
2410                         
2411                         
2412                         
2413                                 <dl class="detailList">
2414                                 <dt class="heading">Returns:</dt>
2415                                 
2416                                         <dd><span class="fixedFont">MixedCollection</span>  Returns an Roo.util.MixedCollection of the matched records</dd>
2417                                 
2418                                 </dl>
2419                         
2420                         
2421                         
2422
2423                     
2424                     
2425                      
2426                     </div>                    
2427                 </div>
2428
2429             </td>
2430             <td class="msource">
2431                 
2432                         Roo.data.Store
2433                 &nbsp;
2434             </td>
2435         </tr>
2436         
2437           
2438           <tr class="method-row config-row-alt0 expandable notInherited">
2439             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2440            
2441            
2442             <td class="sig">
2443                 <a id="Roo.data.Store-method-rejectChanges"   name=".rejectChanges"></a>
2444                 <div class="fixedFont">
2445                         <span class="attributes"></span><b class="itemname">rejectChanges</b>
2446                                 
2447                                  () 
2448                         
2449                                 
2450                         
2451                 </div>
2452                 <div class="mdesc">
2453                 
2454                    <div class="short">Cancel outstanding changes on all changed records.</div> 
2455                  
2456                  
2457                  
2458                     <div class="long">
2459                         
2460                                 Cancel outstanding changes on all changed records.
2461                     
2462                                 
2463                         
2464                         
2465                         
2466                         
2467                         
2468                         
2469                         
2470                         
2471                         
2472                         
2473
2474                     
2475                     
2476                      
2477                     </div>                    
2478                 </div>
2479
2480             </td>
2481             <td class="msource">
2482                 
2483                         Roo.data.Store
2484                 &nbsp;
2485             </td>
2486         </tr>
2487         
2488           
2489           <tr class="method-row config-row-alt1 expandable notInherited">
2490             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2491            
2492            
2493             <td class="sig">
2494                 <a id="Roo.data.Store-method-reload"   name=".reload"></a>
2495                 <div class="fixedFont">
2496                         <span class="attributes"></span><b class="itemname">reload</b>
2497                                 
2498                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
2499                         
2500                                 
2501                         
2502                 </div>
2503                 <div class="mdesc">
2504                 
2505                    <div class="short">Reloads the Record cache from the configured Proxy using the configured Reader and<br/>the options from the last load operation performed.</div> 
2506                  
2507                  
2508                  
2509                     <div class="long">
2510                         
2511                                 Reloads the Record cache from the configured Proxy using the configured Reader and<br/>the options from the last load operation performed.
2512                     
2513                                 
2514                         
2515                         
2516                         
2517                         
2518                                 <dl class="detailList">
2519                                 <dt class="heading">Parameters:</dt>
2520                                 
2521                                         <dt>
2522                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>options</b>
2523                                                 
2524                                         </dt>
2525                                         <dd>(optional) An object containing properties which may override the options<br/>used in the last load operation. See {<b>link</b> <b>load</b>} for details (defaults to null, in which case<br/>the most recently used options are reused).</dd>
2526                                 
2527                                 </dl>
2528                         
2529                         
2530                         
2531                         
2532                         
2533                         
2534                         
2535
2536                     
2537                     
2538                      
2539                     </div>                    
2540                 </div>
2541
2542             </td>
2543             <td class="msource">
2544                 
2545                         Roo.data.Store
2546                 &nbsp;
2547             </td>
2548         </tr>
2549         
2550           
2551           <tr class="method-row config-row-alt0 expandable notInherited">
2552             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2553            
2554            
2555             <td class="sig">
2556                 <a id="Roo.data.Store-method-remove"   name=".remove"></a>
2557                 <div class="fixedFont">
2558                         <span class="attributes"></span><b class="itemname">remove</b>
2559                                 
2560                                  (Ext.data.Record <B><i>record</i></B>) 
2561                         
2562                                 
2563                         
2564                 </div>
2565                 <div class="mdesc">
2566                 
2567                    <div class="short">Remove a Record from the Store and fires the remove event.</div> 
2568                  
2569                  
2570                  
2571                     <div class="long">
2572                         
2573                                 Remove a Record from the Store and fires the remove event.
2574                     
2575                                 
2576                         
2577                         
2578                         
2579                         
2580                                 <dl class="detailList">
2581                                 <dt class="heading">Parameters:</dt>
2582                                 
2583                                         <dt>
2584                                                 <span class="fixedFont">Ext.data.Record</span>  <b>record</b>
2585                                                 
2586                                         </dt>
2587                                         <dd>The Roo.data.Record object to remove from the cache.</dd>
2588                                 
2589                                 </dl>
2590                         
2591                         
2592                         
2593                         
2594                         
2595                         
2596                         
2597
2598                     
2599                     
2600                      
2601                     </div>                    
2602                 </div>
2603
2604             </td>
2605             <td class="msource">
2606                 
2607                         Roo.data.Store
2608                 &nbsp;
2609             </td>
2610         </tr>
2611         
2612           
2613           <tr class="method-row config-row-alt1 expandable notInherited">
2614             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2615            
2616            
2617             <td class="sig">
2618                 <a id="Roo.data.Store-method-removeAll"   name=".removeAll"></a>
2619                 <div class="fixedFont">
2620                         <span class="attributes"></span><b class="itemname">removeAll</b>
2621                                 
2622                                  () 
2623                         
2624                                 
2625                         
2626                 </div>
2627                 <div class="mdesc">
2628                 
2629                    <div class="short">Remove all Records from the Store and fires the clear event.</div> 
2630                  
2631                  
2632                  
2633                     <div class="long">
2634                         
2635                                 Remove all Records from the Store and fires the clear event.
2636                     
2637                                 
2638                         
2639                         
2640                         
2641                         
2642                         
2643                         
2644                         
2645                         
2646                         
2647                         
2648
2649                     
2650                     
2651                      
2652                     </div>                    
2653                 </div>
2654
2655             </td>
2656             <td class="msource">
2657                 
2658                         Roo.data.Store
2659                 &nbsp;
2660             </td>
2661         </tr>
2662         
2663           
2664           <tr class="method-row config-row-alt0 expandable">
2665             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2666            
2667            
2668             <td class="sig">
2669                 <a id="Roo.util.Observable-method-removeListener"   name=".removeListener"></a>
2670                 <div class="fixedFont">
2671                         <span class="attributes"></span><b class="itemname">removeListener</b>
2672                                 
2673                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>) 
2674                         
2675                                 
2676                         
2677                 </div>
2678                 <div class="mdesc">
2679                 
2680                    <div class="short">Removes a listener</div> 
2681                  
2682                  
2683                  
2684                     <div class="long">
2685                         
2686                                 Removes a listener
2687                     
2688                                 
2689                         
2690                         
2691                         
2692                         
2693                                 <dl class="detailList">
2694                                 <dt class="heading">Parameters:</dt>
2695                                 
2696                                         <dt>
2697                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
2698                                                 
2699                                         </dt>
2700                                         <dd>The type of event to listen for</dd>
2701                                 
2702                                         <dt>
2703                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>handler</b>
2704                                                 
2705                                         </dt>
2706                                         <dd>The handler to remove</dd>
2707                                 
2708                                         <dt>
2709                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
2710                                                 
2711                                         </dt>
2712                                         <dd>(optional) The scope (this object) for the handler</dd>
2713                                 
2714                                 </dl>
2715                         
2716                         
2717                         
2718                         
2719                         
2720                         
2721                         
2722
2723                     
2724                     
2725                      
2726                     </div>                    
2727                 </div>
2728
2729             </td>
2730             <td class="msource">
2731                 
2732                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2733                 &nbsp;
2734             </td>
2735         </tr>
2736         
2737           
2738           <tr class="method-row config-row-alt1 expandable notInherited">
2739             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2740            
2741            
2742             <td class="sig">
2743                 <a id="Roo.data.Store-method-setDefaultSort"   name=".setDefaultSort"></a>
2744                 <div class="fixedFont">
2745                         <span class="attributes"></span><b class="itemname">setDefaultSort</b>
2746                                 
2747                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>fieldName</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>dir</i></B>) 
2748                         
2749                                 
2750                         
2751                 </div>
2752                 <div class="mdesc">
2753                 
2754                    <div class="short">Sets the default sort column and order to be used by the next load operation.</div> 
2755                  
2756                  
2757                  
2758                     <div class="long">
2759                         
2760                                 Sets the default sort column and order to be used by the next load operation.
2761                     
2762                                 
2763                         
2764                         
2765                         
2766                         
2767                                 <dl class="detailList">
2768                                 <dt class="heading">Parameters:</dt>
2769                                 
2770                                         <dt>
2771                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>fieldName</b>
2772                                                 
2773                                         </dt>
2774                                         <dd>The name of the field to sort by.</dd>
2775                                 
2776                                         <dt>
2777                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>dir</b>
2778                                                 
2779                                         </dt>
2780                                         <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2781                                 
2782                                 </dl>
2783                         
2784                         
2785                         
2786                         
2787                         
2788                         
2789                         
2790
2791                     
2792                     
2793                      
2794                     </div>                    
2795                 </div>
2796
2797             </td>
2798             <td class="msource">
2799                 
2800                         Roo.data.Store
2801                 &nbsp;
2802             </td>
2803         </tr>
2804         
2805           
2806           <tr class="method-row config-row-alt0 expandable notInherited">
2807             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2808            
2809            
2810             <td class="sig">
2811                 <a id="Roo.data.Store-method-sort"   name=".sort"></a>
2812                 <div class="fixedFont">
2813                         <span class="attributes"></span><b class="itemname">sort</b>
2814                                 
2815                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>fieldName</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>dir</i></B>) 
2816                         
2817                                 
2818                         
2819                 </div>
2820                 <div class="mdesc">
2821                 
2822                    <div class="short">Sort the Records.</div> 
2823                  
2824                  
2825                  
2826                     <div class="long">
2827                         
2828                                 Sort the Records.<br/>If remote sorting is used, the sort is performed on the server, and the cache is<br/>reloaded. If local sorting is used, the cache is sorted internally.
2829                     
2830                                 
2831                         
2832                         
2833                         
2834                         
2835                                 <dl class="detailList">
2836                                 <dt class="heading">Parameters:</dt>
2837                                 
2838                                         <dt>
2839                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>fieldName</b>
2840                                                 
2841                                         </dt>
2842                                         <dd>The name of the field to sort by.</dd>
2843                                 
2844                                         <dt>
2845                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>dir</b>
2846                                                 
2847                                         </dt>
2848                                         <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2849                                 
2850                                 </dl>
2851                         
2852                         
2853                         
2854                         
2855                         
2856                         
2857                         
2858
2859                     
2860                     
2861                      
2862                     </div>                    
2863                 </div>
2864
2865             </td>
2866             <td class="msource">
2867                 
2868                         Roo.data.Store
2869                 &nbsp;
2870             </td>
2871         </tr>
2872         
2873           
2874           <tr class="method-row config-row-alt1 expandable notInherited">
2875             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2876            
2877            
2878             <td class="sig">
2879                 <a id="Roo.data.Store-method-sum"   name=".sum"></a>
2880                 <div class="fixedFont">
2881                         <span class="attributes"></span><b class="itemname">sum</b>
2882                                 
2883                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>property</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>start</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>end</i></B>) 
2884                         
2885                                 
2886                                          : 
2887                                         
2888                                                 
2889                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
2890                                         
2891                                         
2892                                         
2893                                 
2894                         
2895                 </div>
2896                 <div class="mdesc">
2897                 
2898                    <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div> 
2899                  
2900                  
2901                  
2902                     <div class="long">
2903                         
2904                                 Sums the value of <i>property</i> for each record between start and end and returns the result.
2905                     
2906                                 
2907                         
2908                         
2909                         
2910                         
2911                                 <dl class="detailList">
2912                                 <dt class="heading">Parameters:</dt>
2913                                 
2914                                         <dt>
2915                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>property</b>
2916                                                 
2917                                         </dt>
2918                                         <dd>A field on your records</dd>
2919                                 
2920                                         <dt>
2921                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>start</b>
2922                                                 
2923                                         </dt>
2924                                         <dd>The record index to start at (defaults to 0)</dd>
2925                                 
2926                                         <dt>
2927                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>end</b>
2928                                                 
2929                                         </dt>
2930                                         <dd>The last record index to include (defaults to length - 1)</dd>
2931                                 
2932                                 </dl>
2933                         
2934                         
2935                         
2936                         
2937                         
2938                                 <dl class="detailList">
2939                                 <dt class="heading">Returns:</dt>
2940                                 
2941                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The sum</dd>
2942                                 
2943                                 </dl>
2944                         
2945                         
2946                         
2947
2948                     
2949                     
2950                      
2951                     </div>                    
2952                 </div>
2953
2954             </td>
2955             <td class="msource">
2956                 
2957                         Roo.data.Store
2958                 &nbsp;
2959             </td>
2960         </tr>
2961         
2962           
2963           <tr class="method-row config-row-alt0 expandable">
2964             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2965            
2966            
2967             <td class="sig">
2968                 <a id="Roo.util.Observable-method-un"   name=".un"></a>
2969                 <div class="fixedFont">
2970                         <span class="attributes"></span><b class="itemname">un</b>
2971                                 
2972                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>) 
2973                         
2974                                 
2975                         
2976                 </div>
2977                 <div class="mdesc">
2978                 
2979                    <div class="short">Removes a listener (shorthand for removeListener)</div> 
2980                  
2981                  
2982                  
2983                     <div class="long">
2984                         
2985                                 Removes a listener (shorthand for removeListener)
2986                     
2987                                 
2988                         
2989                         
2990                         
2991                         
2992                                 <dl class="detailList">
2993                                 <dt class="heading">Parameters:</dt>
2994                                 
2995                                         <dt>
2996                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>eventName</b>
2997                                                 
2998                                         </dt>
2999                                         <dd>The type of event to listen for</dd>
3000                                 
3001                                         <dt>
3002                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>handler</b>
3003                                                 
3004                                         </dt>
3005                                         <dd>The handler to remove</dd>
3006                                 
3007                                         <dt>
3008                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
3009                                                 
3010                                         </dt>
3011                                         <dd>(optional) The scope (this object) for the handler</dd>
3012                                 
3013                                 </dl>
3014                         
3015                         
3016                         
3017                         
3018                         
3019                         
3020                         
3021
3022                     
3023                     
3024                      
3025                     </div>                    
3026                 </div>
3027
3028             </td>
3029             <td class="msource">
3030                 
3031                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
3032                 &nbsp;
3033             </td>
3034         </tr>
3035         
3036                                                        
3037     </table>
3038
3039   
3040   <!-- ============================== events summary / details ======================== -->
3041   
3042   
3043   <a id="Roo.data.Store-events"></a>
3044     
3045   
3046         
3047    
3048   
3049     
3050     
3051     
3052       <table cellspacing="0" class="member-table">
3053                 <caption>Events</caption>
3054               <thead>
3055                 <tr>
3056                     <th class="sig-header" colspan="2">Event</th>            
3057                     <th class="msource-header">Defined By</th>
3058
3059                 </tr>
3060               </thead>  
3061         
3062         
3063          
3064         
3065         
3066           <tr class="method-row expandable config-row-alt0 notInherited">
3067             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3068             
3069             <td class="sig">
3070                 <a id="Roo.data.Store-event-*add"></a>
3071                 
3072                <div class="fixedFont">
3073                 <b class="itemname">add</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>) 
3074                 
3075                 </div>
3076
3077                 <div class="mdesc">
3078
3079                    <div class="short">Fires when Records have been added to the Store
3080                    
3081                 </div> 
3082                     
3083                     <div class="long">
3084                     
3085                         Fires when Records have been added to the Store
3086                     
3087                         
3088                         
3089                 
3090                         
3091                                 <dl class="detailList">
3092                                 <dt class="heading">Parameters:</dt>
3093                                 
3094                                         <dt>
3095                                                 <span class="fixedFont">Store</span> <b>this</b>
3096                                                 
3097                                         </dt>
3098                                         <dd></dd>
3099                                 
3100                                         <dt>
3101                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> <b>records</b>
3102                                                 
3103                                         </dt>
3104                                         <dd>The array of Records added</dd>
3105                                 
3106                                         <dt>
3107                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3108                                                 
3109                                         </dt>
3110                                         <dd>The index at which the record(s) were added</dd>
3111                                 
3112                                 </dl>
3113                         
3114                         
3115                         
3116                         
3117                         
3118                         
3119                         
3120
3121                     
3122                     
3123                      
3124                     </div>                    
3125                 </div>
3126
3127             </td>
3128             <td class="msource">
3129                 Roo.data.Store
3130             </td>
3131         </tr>
3132         
3133           <tr class="method-row expandable config-row-alt1 notInherited">
3134             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3135             
3136             <td class="sig">
3137                 <a id="Roo.data.Store-event-*beforeload"></a>
3138                 
3139                <div class="fixedFont">
3140                 <b class="itemname">beforeload</b> (Store <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
3141                 
3142                 </div>
3143
3144                 <div class="mdesc">
3145
3146                    <div class="short">Fires before a request is made for a new data object.
3147                    
3148                 </div> 
3149                     
3150                     <div class="long">
3151                     
3152                         Fires before a request is made for a new data object.  If the beforeload handler returns false<br/>the load action will be canceled.
3153                     
3154                         
3155                         
3156                 
3157                         
3158                                 <dl class="detailList">
3159                                 <dt class="heading">Parameters:</dt>
3160                                 
3161                                         <dt>
3162                                                 <span class="fixedFont">Store</span> <b>this</b>
3163                                                 
3164                                         </dt>
3165                                         <dd></dd>
3166                                 
3167                                         <dt>
3168                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
3169                                                 
3170                                         </dt>
3171                                         <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3172                                 
3173                                 </dl>
3174                         
3175                         
3176                         
3177                         
3178                         
3179                         
3180                         
3181
3182                     
3183                     
3184                      
3185                     </div>                    
3186                 </div>
3187
3188             </td>
3189             <td class="msource">
3190                 Roo.data.Store
3191             </td>
3192         </tr>
3193         
3194           <tr class="method-row expandable config-row-alt0 notInherited">
3195             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3196             
3197             <td class="sig">
3198                 <a id="Roo.data.Store-event-*clear"></a>
3199                 
3200                <div class="fixedFont">
3201                 <b class="itemname">clear</b> (Store <B><i>this</i></B>) 
3202                 
3203                 </div>
3204
3205                 <div class="mdesc">
3206
3207                    <div class="short">Fires when the data cache has been cleared.
3208                    
3209                 </div> 
3210                     
3211                     <div class="long">
3212                     
3213                         Fires when the data cache has been cleared.
3214                     
3215                         
3216                         
3217                 
3218                         
3219                                 <dl class="detailList">
3220                                 <dt class="heading">Parameters:</dt>
3221                                 
3222                                         <dt>
3223                                                 <span class="fixedFont">Store</span> <b>this</b>
3224                                                 
3225                                         </dt>
3226                                         <dd></dd>
3227                                 
3228                                 </dl>
3229                         
3230                         
3231                         
3232                         
3233                         
3234                         
3235                         
3236
3237                     
3238                     
3239                      
3240                     </div>                    
3241                 </div>
3242
3243             </td>
3244             <td class="msource">
3245                 Roo.data.Store
3246             </td>
3247         </tr>
3248         
3249           <tr class="method-row expandable config-row-alt1 notInherited">
3250             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3251             
3252             <td class="sig">
3253                 <a id="Roo.data.Store-event-*datachanged"></a>
3254                 
3255                <div class="fixedFont">
3256                 <b class="itemname">datachanged</b> (Store <B><i>this</i></B>) 
3257                 
3258                 </div>
3259
3260                 <div class="mdesc">
3261
3262                    <div class="short">Fires when the data cache has changed, and a widget which is using this Store<br/>as a Record cache should refresh its view.
3263                    
3264                 </div> 
3265                     
3266                     <div class="long">
3267                     
3268                         Fires when the data cache has changed, and a widget which is using this Store<br/>as a Record cache should refresh its view.
3269                     
3270                         
3271                         
3272                 
3273                         
3274                                 <dl class="detailList">
3275                                 <dt class="heading">Parameters:</dt>
3276                                 
3277                                         <dt>
3278                                                 <span class="fixedFont">Store</span> <b>this</b>
3279                                                 
3280                                         </dt>
3281                                         <dd></dd>
3282                                 
3283                                 </dl>
3284                         
3285                         
3286                         
3287                         
3288                         
3289                         
3290                         
3291
3292                     
3293                     
3294                      
3295                     </div>                    
3296                 </div>
3297
3298             </td>
3299             <td class="msource">
3300                 Roo.data.Store
3301             </td>
3302         </tr>
3303         
3304           <tr class="method-row expandable config-row-alt0 notInherited">
3305             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3306             
3307             <td class="sig">
3308                 <a id="Roo.data.Store-event-*load"></a>
3309                 
3310                <div class="fixedFont">
3311                 <b class="itemname">load</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
3312                 
3313                 </div>
3314
3315                 <div class="mdesc">
3316
3317                    <div class="short">Fires after a new set of Records has been loaded.
3318                    
3319                 </div> 
3320                     
3321                     <div class="long">
3322                     
3323                         Fires after a new set of Records has been loaded.
3324                     
3325                         
3326                         
3327                 
3328                         
3329                                 <dl class="detailList">
3330                                 <dt class="heading">Parameters:</dt>
3331                                 
3332                                         <dt>
3333                                                 <span class="fixedFont">Store</span> <b>this</b>
3334                                                 
3335                                         </dt>
3336                                         <dd></dd>
3337                                 
3338                                         <dt>
3339                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> <b>records</b>
3340                                                 
3341                                         </dt>
3342                                         <dd>The Records that were loaded</dd>
3343                                 
3344                                         <dt>
3345                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
3346                                                 
3347                                         </dt>
3348                                         <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
3349                                 
3350                                 </dl>
3351                         
3352                         
3353                         
3354                         
3355                         
3356                         
3357                         
3358
3359                     
3360                     
3361                      
3362                     </div>                    
3363                 </div>
3364
3365             </td>
3366             <td class="msource">
3367                 Roo.data.Store
3368             </td>
3369         </tr>
3370         
3371           <tr class="method-row expandable config-row-alt1 notInherited">
3372             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3373             
3374             <td class="sig">
3375                 <a id="Roo.data.Store-event-*loadexception"></a>
3376                 
3377                <div class="fixedFont">
3378                 <b class="itemname">loadexception</b> (Proxy <B><i></i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>return</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>load</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>jsonData</i></B>) 
3379                 
3380                 </div>
3381
3382                 <div class="mdesc">
3383
3384                    <div class="short">Fires if an exception occurs in the Proxy during loading.
3385                    
3386                 </div> 
3387                     
3388                     <div class="long">
3389                     
3390                         Fires if an exception occurs in the Proxy during loading.<br/>Called with the signature of the Proxy's "loadexception" event.<br/>If you return Json { data: [] , success: false, .... } then this will be thrown with the following args
3391                     
3392                         
3393                         
3394                 
3395                         
3396                                 <dl class="detailList">
3397                                 <dt class="heading">Parameters:</dt>
3398                                 
3399                                         <dt>
3400                                                 <span class="fixedFont">Proxy</span> <b></b>
3401                                                 
3402                                         </dt>
3403                                         <dd></dd>
3404                                 
3405                                         <dt>
3406                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>return</b>
3407                                                 
3408                                         </dt>
3409                                         <dd>from JsonData.reader() - success, totalRecords, records</dd>
3410                                 
3411                                         <dt>
3412                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>load</b>
3413                                                 
3414                                         </dt>
3415                                         <dd>options</dd>
3416                                 
3417                                         <dt>
3418                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>jsonData</b>
3419                                                 
3420                                         </dt>
3421                                         <dd>from your request (normally this contains the Exception)</dd>
3422                                 
3423                                 </dl>
3424                         
3425                         
3426                         
3427                         
3428                         
3429                         
3430                         
3431
3432                     
3433                     
3434                      
3435                     </div>                    
3436                 </div>
3437
3438             </td>
3439             <td class="msource">
3440                 Roo.data.Store
3441             </td>
3442         </tr>
3443         
3444           <tr class="method-row expandable config-row-alt0 notInherited">
3445             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3446             
3447             <td class="sig">
3448                 <a id="Roo.data.Store-event-*metachange"></a>
3449                 
3450                <div class="fixedFont">
3451                 <b class="itemname">metachange</b> (Store <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>meta</i></B>) 
3452                 
3453                 </div>
3454
3455                 <div class="mdesc">
3456
3457                    <div class="short">Fires when this store's reader provides new metadata (fields).
3458                    
3459                 </div> 
3460                     
3461                     <div class="long">
3462                     
3463                         Fires when this store's reader provides new metadata (fields). This is currently only support for JsonReaders.
3464                     
3465                         
3466                         
3467                 
3468                         
3469                                 <dl class="detailList">
3470                                 <dt class="heading">Parameters:</dt>
3471                                 
3472                                         <dt>
3473                                                 <span class="fixedFont">Store</span> <b>this</b>
3474                                                 
3475                                         </dt>
3476                                         <dd></dd>
3477                                 
3478                                         <dt>
3479                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>meta</b>
3480                                                 
3481                                         </dt>
3482                                         <dd>The JSON metadata</dd>
3483                                 
3484                                 </dl>
3485                         
3486                         
3487                         
3488                         
3489                         
3490                         
3491                         
3492
3493                     
3494                     
3495                      
3496                     </div>                    
3497                 </div>
3498
3499             </td>
3500             <td class="msource">
3501                 Roo.data.Store
3502             </td>
3503         </tr>
3504         
3505           <tr class="method-row expandable config-row-alt1 notInherited">
3506             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3507             
3508             <td class="sig">
3509                 <a id="Roo.data.Store-event-*remove"></a>
3510                 
3511                <div class="fixedFont">
3512                 <b class="itemname">remove</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>) 
3513                 
3514                 </div>
3515
3516                 <div class="mdesc">
3517
3518                    <div class="short">Fires when a Record has been removed from the Store
3519                    
3520                 </div> 
3521                     
3522                     <div class="long">
3523                     
3524                         Fires when a Record has been removed from the Store
3525                     
3526                         
3527                         
3528                 
3529                         
3530                                 <dl class="detailList">
3531                                 <dt class="heading">Parameters:</dt>
3532                                 
3533                                         <dt>
3534                                                 <span class="fixedFont">Store</span> <b>this</b>
3535                                                 
3536                                         </dt>
3537                                         <dd></dd>
3538                                 
3539                                         <dt>
3540                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span> <b>record</b>
3541                                                 
3542                                         </dt>
3543                                         <dd>The Record that was removed</dd>
3544                                 
3545                                         <dt>
3546                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3547                                                 
3548                                         </dt>
3549                                         <dd>The index at which the record was removed</dd>
3550                                 
3551                                 </dl>
3552                         
3553                         
3554                         
3555                         
3556                         
3557                         
3558                         
3559
3560                     
3561                     
3562                      
3563                     </div>                    
3564                 </div>
3565
3566             </td>
3567             <td class="msource">
3568                 Roo.data.Store
3569             </td>
3570         </tr>
3571         
3572           <tr class="method-row expandable config-row-alt0 notInherited">
3573             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
3574             
3575             <td class="sig">
3576                 <a id="Roo.data.Store-event-*update"></a>
3577                 
3578                <div class="fixedFont">
3579                 <b class="itemname">update</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>operation</i></B>) 
3580                 
3581                 </div>
3582
3583                 <div class="mdesc">
3584
3585                    <div class="short">Fires when a Record has been updated
3586                    
3587                 </div> 
3588                     
3589                     <div class="long">
3590                     
3591                         Fires when a Record has been updated
3592                     
3593                         
3594                         
3595                 
3596                         
3597                                 <dl class="detailList">
3598                                 <dt class="heading">Parameters:</dt>
3599                                 
3600                                         <dt>
3601                                                 <span class="fixedFont">Store</span> <b>this</b>
3602                                                 
3603                                         </dt>
3604                                         <dd></dd>
3605                                 
3606                                         <dt>
3607                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span> <b>record</b>
3608                                                 
3609                                         </dt>
3610                                         <dd>The Record that was updated</dd>
3611                                 
3612                                         <dt>
3613                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>operation</b>
3614                                                 
3615                                         </dt>
3616                                         <dd>The update operation being performed.  Value may be one of:<br/><pre><code><br/> Roo.data.Record.EDIT<br/> Roo.data.Record.REJECT<br/> Roo.data.Record.COMMIT<br/></code></pre></dd>
3617                                 
3618                                 </dl>
3619                         
3620                         
3621                         
3622                         
3623                         
3624                         
3625                         
3626
3627                     
3628                     
3629                      
3630                     </div>                    
3631                 </div>
3632
3633             </td>
3634             <td class="msource">
3635                 Roo.data.Store
3636             </td>
3637         </tr>
3638         
3639                                                        
3640     </table>
3641
3642   
3643   
3644   
3645  
3646 <!-- ============================== footer ================================= -->
3647                 <div class="fineprint" style="clear:both">
3648                         
3649                         Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a>  on Wed May 02 2012 14:21:08 GMT+0800 (HKT)
3650                         Based on 
3651                         <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>  
3652                 </div>
3653         </body>
3654 </html>