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