1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.data.MemoryProxy</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.data.MemoryProxy-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.data.MemoryProxy-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.data.MemoryProxy-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.data.MemoryProxy-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <!-- ============================== class title / details ============================ -->
48 <h1 class="classTitle">
50 Class Roo.data.MemoryProxy
53 <table cellspacing="0" class="class-summary-table">
55 <tr><td class="label">Package:</td><td class="hd-info">Roo.data</td></tr>
57 <tr><td class="label">Defined In:</td><td class="hd-info">
59 <a href="./src/Roo_data_MemoryProxy.js.html">Roo/data/MemoryProxy.js</a>.
62 <tr><td class="label">Class:</td><td class="hd-info">MemoryProxy</td></tr>
70 <!-- ============================== class summary ========================== -->
71 <div class="description">
72 An implementation of Roo.data.DataProxy that simply passes the data specified in its constructor<br/>to the Reader when its load method is called.
76 <!-- ============================== Class comment block... ========================== -->
78 <div class="comments">
79 <b>Class Comments / Notes</B> =>
80 <u onclick="parent.CommentDialog.showCommentId = 'Roo.data.MemoryProxy';">[Add Your comment/notes about this class]</u>
82 <iframe frameborder="0" id="comments-Roo.data" style="border: none;width:100%;"
83 src="/blog.php/GtkDjsComments/Roo.data.MemoryProxy.html"></iframe>
88 <!-- ============================== config options ========================== -->
93 <div class="hr"></div>
94 <a id="Roo.data.MemoryProxy-configs"></a>
98 <table cellspacing="0" class="member-table">
99 <caption class="Empty">Config Options - Has None</caption>
113 <!-- ============================== public properties ==================== -->
117 <a id="Roo.data.MemoryProxy-props"></a>
123 <table cellspacing="0" class="member-table">
124 <caption class="Empty">Public Properties - Has None</caption>
130 <!-- ============================== methods summary / details ======================== -->
133 <a id="Roo.data.MemoryProxy-methods"></a>
134 <!-- constructor?? -->
141 <!-- then dynamics first -->
148 <table cellspacing="0" class="member-table">
149 <caption>Public Methods</caption>
151 <th class="sig-header" colspan="2">Method</th>
152 <th class="msource-header">Defined By</th>
162 <tr class="method-row config-row-alt0 expandable notInherited">
163 <td class="micon"><a class="exi" href="#expand"> </a></td>
167 <a id="Roo.data-method-MemoryProxy" name=".MemoryProxy"></a>
168 <div class="fixedFont">
169 <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">MemoryProxy</b>
171 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>data</i></B>)
179 <div class="short">Create a new Roo.data.MemoryProxy</div>
186 Create a new Roo.data.MemoryProxy
189 <dl class="detailList">
190 <dt class="heading">Parameters:</dt>
193 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>data</b>
196 <dd>The data object which the Reader uses to construct a block of Roo.data.Records.</dd>
220 <tr class="method-row config-row-alt1 expandable notInherited">
221 <td class="micon"><a class="exi" href="#expand"> </a></td>
225 <a id="Roo.data.MemoryProxy-method-load" name=".load"></a>
226 <div class="fixedFont">
227 <span class="attributes"></span><b class="itemname">load</b>
229 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>params</i></B>, <a href="./Roo.data.DataReader.html#constructor" roo:cls="Roo.data.DataReader.html#constructor">Roo.data.DataReader</a> <B><i>reader</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>callback</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>arg</i></B>)
236 <div class="short">Load data from the requested source (in this case an in-memory<br/>data object passed to the constructor), read the data object into<br/>a block of Roo.data.Records using the passed Roo.data.DataReader implementation, and<br/>process that block using the passed callback.</div>
242 Load data from the requested source (in this case an in-memory<br/>data object passed to the constructor), read the data object into<br/>a block of Roo.data.Records using the passed Roo.data.DataReader implementation, and<br/>process that block using the passed callback.
249 <dl class="detailList">
250 <dt class="heading">Parameters:</dt>
253 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>params</b>
256 <dd>This parameter is not used by the MemoryProxy class.</dd>
259 <span class="fixedFont"><a href="./Roo.data.DataReader.html#constructor" roo:cls="Roo.data.DataReader.html#constructor">Roo.data.DataReader</a></span> <b>reader</b>
262 <dd>The Reader object which converts the data<br/>object into a block of Roo.data.Records.</dd>
265 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
268 <dd>The function into which to pass the block of Roo.data.records.<br/>The function must be passed <ul><br/><li>The Record block object</li><br/><li>The "arg" argument from the load function</li><br/><li>A boolean success indicator</li><br/></ul></dd>
271 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
274 <dd>The scope in which to call the callback</dd>
277 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>arg</b>
280 <dd>An optional argument which is passed to the callback as its second parameter.</dd>
309 <!-- ============================== events summary / details ======================== -->
312 <a id="Roo.data.MemoryProxy-events"></a>
318 <table cellspacing="0" class="member-table">
319 <caption class="Empty">Events - Has None</caption>
330 <!-- ============================== footer ================================= -->
331 <div class="fineprint" style="clear:both">
333 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Sep 01 2017 13:17:17 GMT+0800 (HKT)
335 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>