1 | <div class="body-wrap"> |
---|
2 | <div class="top-tools"> |
---|
3 | <a class="inner-link" href="#Ext.data.MemoryProxy-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> |
---|
4 | <a class="inner-link" href="#Ext.data.MemoryProxy-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a> |
---|
5 | <a class="inner-link" href="#Ext.data.MemoryProxy-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a> |
---|
6 | <a class="inner-link" href="#Ext.data.MemoryProxy-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a> |
---|
7 | <a class="bookmark" href="../docs/?class=Ext.data.MemoryProxy"><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.DataProxy" ext:member="" href="output/Ext.data.DataProxy.html">DataProxy</a> |
---|
12 | <img src="resources/elbow-end.gif"/>MemoryProxy</pre></div> |
---|
13 | <h1>Class Ext.data.MemoryProxy</h1> |
---|
14 | <table cellspacing="0"> |
---|
15 | <tr><td class="label">Package:</td><td class="hd-info">Ext.data</td></tr> |
---|
16 | <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/MemoryProxy.js" target="_blank">MemoryProxy.js</a></td></tr> |
---|
17 | <tr><td class="label">Class:</td><td class="hd-info">MemoryProxy</td></tr> |
---|
18 | <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.data.DataProxy" ext:member="" href="output/Ext.data.DataProxy.html">DataProxy</a></td></tr> |
---|
19 | </table> |
---|
20 | <div class="description"> |
---|
21 | * |
---|
22 | An implementation of Ext.data.DataProxy that simply passes the data specified in its constructor |
---|
23 | to the Reader when its load method is called. </div> |
---|
24 | |
---|
25 | <div class="hr"></div> |
---|
26 | <a id="Ext.data.MemoryProxy-configs"></a> |
---|
27 | <h2>Config Options</h2> |
---|
28 | <table cellspacing="0" class="member-table"> |
---|
29 | <tr> |
---|
30 | <th class="sig-header" colspan="2">Config Options</th> |
---|
31 | <th class="msource-header">Defined By</th> |
---|
32 | </tr> |
---|
33 | <tr class="config-row inherited expandable"> |
---|
34 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
35 | <td class="sig"> |
---|
36 | <a id="Ext.data.MemoryProxy-listeners"></a> |
---|
37 | <b>listeners</b> : Object <div class="mdesc"> |
---|
38 | <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div> |
---|
39 | <div class="long"> |
---|
40 | (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> |
---|
41 | </div> |
---|
42 | </td> |
---|
43 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td> |
---|
44 | </tr> |
---|
45 | </table> |
---|
46 | <a id="Ext.data.MemoryProxy-props"></a> |
---|
47 | <h2>Public Properties</h2> |
---|
48 | <div class="no-members">This class has no public properties.</div> <a id="Ext.data.MemoryProxy-methods"></a> |
---|
49 | <h2>Public Methods</h2> |
---|
50 | <table cellspacing="0" class="member-table"> |
---|
51 | <tr> |
---|
52 | <th class="sig-header" colspan="2">Method</th> |
---|
53 | <th class="msource-header">Defined By</th> |
---|
54 | </tr> |
---|
55 | <tr class="method-row expandable"> |
---|
56 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
57 | <td class="sig"> |
---|
58 | <a id="Ext.data.MemoryProxy-MemoryProxy"></a> |
---|
59 | <b>MemoryProxy</b>( <code>Object data</code> ) <div class="mdesc"> |
---|
60 | <div class="short"></div> |
---|
61 | <div class="long"> |
---|
62 | <div class="mdetail-params"> |
---|
63 | <strong>Parameters:</strong> |
---|
64 | <ul><li><code>data</code> : Object<div class="sub-desc">The data object which the Reader uses to construct a block of Ext.data.Records.</div></li> </ul> |
---|
65 | <strong>Returns:</strong> |
---|
66 | <ul> |
---|
67 | <li><code></code></li> |
---|
68 | </ul> |
---|
69 | </div> |
---|
70 | </div> |
---|
71 | </div> |
---|
72 | </td> |
---|
73 | <td class="msource">MemoryProxy</td> |
---|
74 | </tr> |
---|
75 | <tr class="method-row inherited alt expandable"> |
---|
76 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
77 | <td class="sig"> |
---|
78 | <a id="Ext.data.MemoryProxy-addEvents"></a> |
---|
79 | <b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc"> |
---|
80 | <div class="short">Used to define events on this Observable</div> |
---|
81 | <div class="long"> |
---|
82 | Used to define events on this Observable <div class="mdetail-params"> |
---|
83 | <strong>Parameters:</strong> |
---|
84 | <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul> |
---|
85 | <strong>Returns:</strong> |
---|
86 | <ul> |
---|
87 | <li><code>void</code></li> |
---|
88 | </ul> |
---|
89 | </div> |
---|
90 | </div> |
---|
91 | </div> |
---|
92 | </td> |
---|
93 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td> |
---|
94 | </tr> |
---|
95 | <tr class="method-row inherited expandable"> |
---|
96 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
97 | <td class="sig"> |
---|
98 | <a id="Ext.data.MemoryProxy-addListener"></a> |
---|
99 | <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"> |
---|
100 | <div class="short">Appends an event handler to this component</div> |
---|
101 | <div class="long"> |
---|
102 | Appends an event handler to this component <div class="mdetail-params"> |
---|
103 | <strong>Parameters:</strong> |
---|
104 | <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 |
---|
105 | function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration |
---|
106 | properties. This may contain any of the following properties:<ul> |
---|
107 | <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> |
---|
108 | <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> |
---|
109 | <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> |
---|
110 | <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 |
---|
111 | by the specified number of milliseconds. If the event fires again within that time, the original |
---|
112 | handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li> |
---|
113 | </ul><br> |
---|
114 | <p> |
---|
115 | <b>Combining Options</b><br> |
---|
116 | Using the options argument, it is possible to combine different types of listeners:<br> |
---|
117 | <br> |
---|
118 | A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId) |
---|
119 | <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, { |
---|
120 | single: true, |
---|
121 | delay: 100, |
---|
122 | forumId: 4 |
---|
123 | });</code></pre> |
---|
124 | <p> |
---|
125 | <b>Attaching multiple handlers in 1 call</b><br> |
---|
126 | The method also allows for a single argument to be passed which is a config object containing properties |
---|
127 | which specify multiple handlers. |
---|
128 | <p> |
---|
129 | <pre><code>foo.on({ |
---|
130 | <em>'click'</em> : { |
---|
131 | fn: <b>this</b>.onClick, |
---|
132 | scope: <b>this</b>, |
---|
133 | delay: 100 |
---|
134 | }, |
---|
135 | <em>'mouseover'</em> : { |
---|
136 | fn: <b>this</b>.onMouseOver, |
---|
137 | scope: <b>this</b> |
---|
138 | }, |
---|
139 | <em>'mouseout'</em> : { |
---|
140 | fn: <b>this</b>.onMouseOut, |
---|
141 | scope: <b>this</b> |
---|
142 | } |
---|
143 | });</code></pre> |
---|
144 | <p> |
---|
145 | Or a shorthand syntax:<br> |
---|
146 | <pre><code>foo.on({ |
---|
147 | <em>'click'</em> : <b>this</b>.onClick, |
---|
148 | <em>'mouseover'</em> : <b>this</b>.onMouseOver, |
---|
149 | <em>'mouseout'</em> : <b>this</b>.onMouseOut, |
---|
150 | scope: <b>this</b> |
---|
151 | });</code></pre></div></li> </ul> |
---|
152 | <strong>Returns:</strong> |
---|
153 | <ul> |
---|
154 | <li><code>void</code></li> |
---|
155 | </ul> |
---|
156 | </div> |
---|
157 | </div> |
---|
158 | </div> |
---|
159 | </td> |
---|
160 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td> |
---|
161 | </tr> |
---|
162 | <tr class="method-row inherited alt expandable"> |
---|
163 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
164 | <td class="sig"> |
---|
165 | <a id="Ext.data.MemoryProxy-fireEvent"></a> |
---|
166 | <b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc"> |
---|
167 | <div class="short">Fires the specified event with the passed parameters (minus the event name).</div> |
---|
168 | <div class="long"> |
---|
169 | Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params"> |
---|
170 | <strong>Parameters:</strong> |
---|
171 | <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> |
---|
172 | <strong>Returns:</strong> |
---|
173 | <ul> |
---|
174 | <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li> |
---|
175 | </ul> |
---|
176 | </div> |
---|
177 | </div> |
---|
178 | </div> |
---|
179 | </td> |
---|
180 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td> |
---|
181 | </tr> |
---|
182 | <tr class="method-row inherited expandable"> |
---|
183 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
184 | <td class="sig"> |
---|
185 | <a id="Ext.data.MemoryProxy-hasListener"></a> |
---|
186 | <b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc"> |
---|
187 | <div class="short">Checks to see if this object has any listeners for a specified event</div> |
---|
188 | <div class="long"> |
---|
189 | Checks to see if this object has any listeners for a specified event <div class="mdetail-params"> |
---|
190 | <strong>Parameters:</strong> |
---|
191 | <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul> |
---|
192 | <strong>Returns:</strong> |
---|
193 | <ul> |
---|
194 | <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li> |
---|
195 | </ul> |
---|
196 | </div> |
---|
197 | </div> |
---|
198 | </div> |
---|
199 | </td> |
---|
200 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td> |
---|
201 | </tr> |
---|
202 | <tr class="method-row alt expandable"> |
---|
203 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
204 | <td class="sig"> |
---|
205 | <a id="Ext.data.MemoryProxy-load"></a> |
---|
206 | <b>load</b>( <code>Object params</code>, <code>Ext.data.DataReader reader</code>, <code>Function callback</code>, <code>Object scope</code>, <code>Object arg</code> ) : void <div class="mdesc"> |
---|
207 | <div class="short"> |
---|
208 | Load data from the requested source (in this case an in-memory |
---|
209 | data object passed to the constructor), read the data...</div> |
---|
210 | <div class="long"> |
---|
211 | |
---|
212 | Load data from the requested source (in this case an in-memory |
---|
213 | data object passed to the constructor), read the data object into |
---|
214 | a block of Ext.data.Records using the passed Ext.data.DataReader implementation, and |
---|
215 | process that block using the passed callback. <div class="mdetail-params"> |
---|
216 | <strong>Parameters:</strong> |
---|
217 | <ul><li><code>params</code> : Object<div class="sub-desc">This parameter is not used by the MemoryProxy class.</div></li><li><code>reader</code> : Ext.data.DataReader<div class="sub-desc">The Reader object which converts the data |
---|
218 | object into a block of Ext.data.Records.</div></li><li><code>callback</code> : Function<div class="sub-desc">The function into which to pass the block of Ext.data.records. |
---|
219 | The function must be passed <ul> |
---|
220 | <li>The Record block object</li> |
---|
221 | <li>The "arg" argument from the load function</li> |
---|
222 | <li>A boolean success indicator</li> |
---|
223 | </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">The scope in which to call the callback</div></li><li><code>arg</code> : Object<div class="sub-desc">An optional argument which is passed to the callback as its second parameter.</div></li> </ul> |
---|
224 | <strong>Returns:</strong> |
---|
225 | <ul> |
---|
226 | <li><code>void</code></li> |
---|
227 | </ul> |
---|
228 | </div> |
---|
229 | </div> |
---|
230 | </div> |
---|
231 | </td> |
---|
232 | <td class="msource">MemoryProxy</td> |
---|
233 | </tr> |
---|
234 | <tr class="method-row inherited expandable"> |
---|
235 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
236 | <td class="sig"> |
---|
237 | <a id="Ext.data.MemoryProxy-on"></a> |
---|
238 | <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"> |
---|
239 | <div class="short">Appends an event handler to this element (shorthand for addListener)</div> |
---|
240 | <div class="long"> |
---|
241 | Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params"> |
---|
242 | <strong>Parameters:</strong> |
---|
243 | <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 |
---|
244 | function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul> |
---|
245 | <strong>Returns:</strong> |
---|
246 | <ul> |
---|
247 | <li><code>void</code></li> |
---|
248 | </ul> |
---|
249 | </div> |
---|
250 | </div> |
---|
251 | </div> |
---|
252 | </td> |
---|
253 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td> |
---|
254 | </tr> |
---|
255 | <tr class="method-row inherited alt expandable"> |
---|
256 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
257 | <td class="sig"> |
---|
258 | <a id="Ext.data.MemoryProxy-purgeListeners"></a> |
---|
259 | <b>purgeListeners</b>() : void <div class="mdesc"> |
---|
260 | <div class="short">Removes all listeners for this object</div> |
---|
261 | <div class="long"> |
---|
262 | Removes all listeners for this object <div class="mdetail-params"> |
---|
263 | <strong>Parameters:</strong> |
---|
264 | <ul><li>None.</li> </ul> |
---|
265 | <strong>Returns:</strong> |
---|
266 | <ul> |
---|
267 | <li><code>void</code></li> |
---|
268 | </ul> |
---|
269 | </div> |
---|
270 | </div> |
---|
271 | </div> |
---|
272 | </td> |
---|
273 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td> |
---|
274 | </tr> |
---|
275 | <tr class="method-row inherited expandable"> |
---|
276 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
277 | <td class="sig"> |
---|
278 | <a id="Ext.data.MemoryProxy-relayEvents"></a> |
---|
279 | <b>relayEvents</b>( <code>Object o</code>, <code>Array events</code> ) : void <div class="mdesc"> |
---|
280 | <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div> |
---|
281 | <div class="long"> |
---|
282 | Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>. <div class="mdetail-params"> |
---|
283 | <strong>Parameters:</strong> |
---|
284 | <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> |
---|
285 | <strong>Returns:</strong> |
---|
286 | <ul> |
---|
287 | <li><code>void</code></li> |
---|
288 | </ul> |
---|
289 | </div> |
---|
290 | </div> |
---|
291 | </div> |
---|
292 | </td> |
---|
293 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td> |
---|
294 | </tr> |
---|
295 | <tr class="method-row inherited alt expandable"> |
---|
296 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
297 | <td class="sig"> |
---|
298 | <a id="Ext.data.MemoryProxy-removeListener"></a> |
---|
299 | <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"> |
---|
300 | <div class="short">Removes a listener</div> |
---|
301 | <div class="long"> |
---|
302 | Removes a listener <div class="mdetail-params"> |
---|
303 | <strong>Parameters:</strong> |
---|
304 | <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> |
---|
305 | <strong>Returns:</strong> |
---|
306 | <ul> |
---|
307 | <li><code>void</code></li> |
---|
308 | </ul> |
---|
309 | </div> |
---|
310 | </div> |
---|
311 | </div> |
---|
312 | </td> |
---|
313 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td> |
---|
314 | </tr> |
---|
315 | <tr class="method-row inherited expandable"> |
---|
316 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
317 | <td class="sig"> |
---|
318 | <a id="Ext.data.MemoryProxy-resumeEvents"></a> |
---|
319 | <b>resumeEvents</b>() : void <div class="mdesc"> |
---|
320 | <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> |
---|
321 | <div class="long"> |
---|
322 | 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"> |
---|
323 | <strong>Parameters:</strong> |
---|
324 | <ul><li>None.</li> </ul> |
---|
325 | <strong>Returns:</strong> |
---|
326 | <ul> |
---|
327 | <li><code>void</code></li> |
---|
328 | </ul> |
---|
329 | </div> |
---|
330 | </div> |
---|
331 | </div> |
---|
332 | </td> |
---|
333 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td> |
---|
334 | </tr> |
---|
335 | <tr class="method-row inherited alt expandable"> |
---|
336 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
337 | <td class="sig"> |
---|
338 | <a id="Ext.data.MemoryProxy-suspendEvents"></a> |
---|
339 | <b>suspendEvents</b>() : void <div class="mdesc"> |
---|
340 | <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> |
---|
341 | <div class="long"> |
---|
342 | 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"> |
---|
343 | <strong>Parameters:</strong> |
---|
344 | <ul><li>None.</li> </ul> |
---|
345 | <strong>Returns:</strong> |
---|
346 | <ul> |
---|
347 | <li><code>void</code></li> |
---|
348 | </ul> |
---|
349 | </div> |
---|
350 | </div> |
---|
351 | </div> |
---|
352 | </td> |
---|
353 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td> |
---|
354 | </tr> |
---|
355 | <tr class="method-row inherited expandable"> |
---|
356 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
357 | <td class="sig"> |
---|
358 | <a id="Ext.data.MemoryProxy-un"></a> |
---|
359 | <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"> |
---|
360 | <div class="short">Removes a listener (shorthand for removeListener)</div> |
---|
361 | <div class="long"> |
---|
362 | Removes a listener (shorthand for removeListener) <div class="mdetail-params"> |
---|
363 | <strong>Parameters:</strong> |
---|
364 | <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> |
---|
365 | <strong>Returns:</strong> |
---|
366 | <ul> |
---|
367 | <li><code>void</code></li> |
---|
368 | </ul> |
---|
369 | </div> |
---|
370 | </div> |
---|
371 | </div> |
---|
372 | </td> |
---|
373 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td> |
---|
374 | </tr> |
---|
375 | </table> |
---|
376 | <a id="Ext.data.MemoryProxy-events"></a> |
---|
377 | <h2>Public Events</h2> |
---|
378 | <table cellspacing="0" class="member-table"> |
---|
379 | <tr> |
---|
380 | <th class="sig-header" colspan="2">Event</th> |
---|
381 | <th class="msource-header">Defined By</th> |
---|
382 | </tr> |
---|
383 | <tr class="event-row inherited expandable"> |
---|
384 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
385 | <td class="sig"> |
---|
386 | <a id="Ext.data.MemoryProxy-beforeload"></a> |
---|
387 | <b>beforeload</b> : ( <code>Object this</code>, <code>Object params</code> ) <div class="mdesc"> |
---|
388 | <div class="short">Fires before a network request is made to retrieve a data object.</div> |
---|
389 | <div class="long"> |
---|
390 | Fires before a network request is made to retrieve a data object. <div class="mdetail-params"> |
---|
391 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
392 | <ul><li><code>this</code> : Object<div class="sub-desc"></div></li><li><code>params</code> : Object<div class="sub-desc">The params object passed to the <a ext:cls="Ext.data.DataProxy" ext:member="load" href="output/Ext.data.DataProxy.html#load">load</a> function</div></li> </ul> |
---|
393 | </div> |
---|
394 | </div> |
---|
395 | </div> |
---|
396 | </td> |
---|
397 | <td class="msource"><a ext:cls="Ext.data.DataProxy" ext:member="#event-beforeload" href="output/Ext.data.DataProxy.html#event-beforeload">DataProxy</a></td> |
---|
398 | </tr> |
---|
399 | <tr class="event-row inherited alt expandable"> |
---|
400 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
401 | <td class="sig"> |
---|
402 | <a id="Ext.data.MemoryProxy-load"></a> |
---|
403 | <b>load</b> : ( <code>Object this</code>, <code>Object o</code>, <code>Object arg</code> ) <div class="mdesc"> |
---|
404 | <div class="short">Fires before the load method's callback is called.</div> |
---|
405 | <div class="long"> |
---|
406 | Fires before the load method's callback is called. <div class="mdetail-params"> |
---|
407 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
408 | <ul><li><code>this</code> : Object<div class="sub-desc"></div></li><li><code>o</code> : Object<div class="sub-desc">The data object</div></li><li><code>arg</code> : Object<div class="sub-desc">The callback's arg object passed to the <a ext:cls="Ext.data.DataProxy" ext:member="load" href="output/Ext.data.DataProxy.html#load">load</a> function</div></li> </ul> |
---|
409 | </div> |
---|
410 | </div> |
---|
411 | </div> |
---|
412 | </td> |
---|
413 | <td class="msource"><a ext:cls="Ext.data.DataProxy" ext:member="#event-load" href="output/Ext.data.DataProxy.html#event-load">DataProxy</a></td> |
---|
414 | </tr> |
---|
415 | <tr class="event-row expandable"> |
---|
416 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
417 | <td class="sig"> |
---|
418 | <a id="Ext.data.MemoryProxy-loadexception"></a> |
---|
419 | <b>loadexception</b> : ( <code>Object this</code>, <code>Object arg</code>, <code>Object null</code>, <code>Error e</code> ) <div class="mdesc"> |
---|
420 | <div class="short">Fires if an exception occurs in the Proxy during data loading. Note that this event is also relayed |
---|
421 | through Ext.data...</div> |
---|
422 | <div class="long"> |
---|
423 | Fires if an exception occurs in the Proxy during data loading. Note that this event is also relayed |
---|
424 | through <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a>, so you can listen for it directly on any Store instance. <div class="mdetail-params"> |
---|
425 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
426 | <ul><li><code>this</code> : Object<div class="sub-desc"></div></li><li><code>arg</code> : Object<div class="sub-desc">The callback's arg object passed to the <a ext:cls="Ext.data.MemoryProxy" ext:member="load" href="output/Ext.data.MemoryProxy.html#load">load</a> function</div></li><li><code>null</code> : Object<div class="sub-desc">This parameter does not apply and will always be null for MemoryProxy</div></li><li><code>e</code> : Error<div class="sub-desc">The JavaScript Error object caught if the configured Reader could not read the data</div></li> </ul> |
---|
427 | </div> |
---|
428 | </div> |
---|
429 | </div> |
---|
430 | </td> |
---|
431 | <td class="msource">MemoryProxy</td> |
---|
432 | </tr> |
---|
433 | </table> |
---|
434 | |
---|
435 | </div> |
---|