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.JsonView</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.JsonView-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.JsonView-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.JsonView-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.JsonView-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 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
48 <img src="../../images/default/s.gif" height="1" width="40"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.JsonView
53 <!-- ============================== class title / details ============================ -->
56 <h1 class="classTitle">
61 <table cellspacing="0" class="class-summary-table">
63 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
65 <tr><td class="label">Defined In:</td><td class="hd-info">
67 <a href="./src/Roo_JsonView.js.html">Roo/JsonView.js</a>.
70 <tr><td class="label">Class:</td><td class="hd-info">JsonView</td></tr>
75 <tr><td class="label">Extends:</td><td class="hd-info">
76 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
84 <!-- ============================== class summary ========================== -->
85 <div class="description">
86 Shortcut class to create a JSON + {<b>link</b> Roo.UpdateManager} template view. Usage:<br/><pre><code><br/>var view = new Roo.JsonView("my-element",<br/> '<div id="{id}">{foo} - {bar}</div>', // auto create template<br/> { multiSelect: true, jsonRoot: "data" }<br/>);<br/><br/>// listen for node click?<br/>view.on("click", function(vw, index, node, e){<br/> alert('Node "' + node.id + '" at index: ' + index + " was clicked.");<br/>});<br/><br/>// direct load of JSON data<br/>view.load("foobar.php");<br/><br/>// Example from my blog list<br/>var tpl = new Roo.Template(<br/> '<div class="entry">' +<br/> '<a class="entry-title" href="{link}">{title}</a>' +<br/> "<h4>{date} by {author} | {comments} Comments</h4>{description}" +<br/> "</div><hr />"<br/>);<br/><br/>var moreView = new Roo.JsonView("entry-list", tpl, {<br/> jsonRoot: "posts"<br/>});<br/>moreView.on("beforerender", this.sortEntries, this);<br/>moreView.load({<br/> url: "/blog/get-posts.php",<br/> params: "allposts=true",<br/> text: "Loading Blog Entries..."<br/>});<br/></code></pre>
90 <!-- ============================== Class comment block... ========================== -->
92 <div class="comments">
93 <b>Class Comments / Notes</B> =>
94 <u onclick="parent.CommentDialog.showCommentId = 'Roo.JsonView';">[Add Your comment/notes about this class]</u>
96 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
97 src="/blog.php/GtkDjsComments/Roo.JsonView.html"></iframe>
102 <!-- ============================== config options ========================== -->
107 <div class="hr"></div>
108 <a id="Roo.JsonView-configs"></a>
114 <table cellspacing="0" class="member-table">
115 <caption>Config Options (Usually are also Properties)</caption>
119 <th class="sig-header" colspan="2">Options</th>
121 <th class="msource-header">Defined By</th>
128 <tr class="config-row expandable config-row-alt0">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
133 <div class="fixedFont">
134 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
140 <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> .</div>
144 <div class="long">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> ..... <br/> } ,<br/> .... <br/> } <br/> </code></pre></div>
152 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
168 <!-- ============================== public properties ==================== -->
172 <a id="Roo.JsonView-props"></a>
178 <table cellspacing="0" class="member-table">
179 <caption class="Empty">Public Properties - Has None</caption>
185 <!-- ============================== methods summary / details ======================== -->
188 <a id="Roo.JsonView-methods"></a>
189 <!-- constructor?? -->
196 <!-- then dynamics first -->
203 <table cellspacing="0" class="member-table">
204 <caption>Public Methods</caption>
206 <th class="sig-header" colspan="2">Method</th>
207 <th class="msource-header">Defined By</th>
217 <tr class="method-row config-row-alt0 expandable notInherited">
218 <td class="micon"><a class="exi" href="#expand"> </a></td>
222 <a id="Roo-method-JsonView" name=".JsonView"></a>
223 <div class="fixedFont">
224 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
226 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Element <B><i>container</i></B>, Template <B><i>tpl</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
234 <div class="short">Create a new Roo.JsonView</div>
241 Create a new Roo.JsonView
244 <dl class="detailList">
245 <dt class="heading">Parameters:</dt>
248 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Element</span> <b>container</b>
251 <dd>The container element where the view is to be rendered.</dd>
254 <span class="fixedFont">Template</span> <b>tpl</b>
257 <dd>The rendering template</dd>
260 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>config</b>
263 <dd>The config object</dd>
287 <tr class="method-row config-row-alt1 expandable">
288 <td class="micon"><a class="exi" href="#expand"> </a></td>
292 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
293 <div class="fixedFont">
294 <span class="attributes"></span><b class="itemname">addEvents</b>
296 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
303 <div class="short">Used to define events on this Observable</div>
309 Used to define events on this Observable
316 <dl class="detailList">
317 <dt class="heading">Parameters:</dt>
320 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>object</b>
323 <dd>The object with the events defined</dd>
343 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
349 <tr class="method-row config-row-alt0 expandable">
350 <td class="micon"><a class="exi" href="#expand"> </a></td>
354 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
355 <div class="fixedFont">
356 <span class="attributes"></span><b class="itemname">addListener</b>
358 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
365 <div class="short">Appends an event handler to this component</div>
371 Appends an event handler to this component
378 <dl class="detailList">
379 <dt class="heading">Parameters:</dt>
382 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
385 <dd>The type of event to listen for</dd>
388 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
391 <dd>The method the event invokes</dd>
394 <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>
397 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
400 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
403 <dd>(optional) An object containing handler configuration<br/>properties. This may contain any of the following properties:<ul><br/><li>scope {Object} The scope in which to execute the handler function. The handler function's "this" context.</li><br/><li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li><br/><li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li><br/><li>buffer {Number} Causes the handler to be scheduled to run in an {<b>link</b> Roo.util.DelayedTask} delayed<br/>by the specified number of milliseconds. If the event fires again within that time, the original<br/>handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li><br/></ul><br><br/><p><br/><b>Combining Options</b><br><br/>Using the options argument, it is possible to combine different types of listeners:<br><br/><br><br/>A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)<br/> <pre><code><br/> el.on('click', this.onClick, this, {<br/> single: true,<br/> delay: 100,<br/> forumId: 4<br/> });<br/> </code></pre><br/><p><br/><b>Attaching multiple handlers in 1 call</b><br><br/>The method also allows for a single argument to be passed which is a config object containing properties<br/>which specify multiple handlers.<br/><pre><code><br/> el.on({<br/> 'click': {<br/> fn: this.onClick,<br/> scope: this,<br/> delay: 100<br/> }, <br/> 'mouseover': {<br/> fn: this.onMouseOver,<br/> scope: this<br/> },<br/> 'mouseout': {<br/> fn: this.onMouseOut,<br/> scope: this<br/> }<br/> });<br/> </code></pre><br/><p><br/>Or a shorthand syntax which passes the same scope object to all handlers:<br/> <pre><code><br/> el.on({<br/> 'click': this.onClick,<br/> 'mouseover': this.onMouseOver,<br/> 'mouseout': this.onMouseOut,<br/> scope: this<br/> });<br/> </code></pre></dd>
423 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
429 <tr class="method-row config-row-alt1 expandable notInherited">
430 <td class="micon"><a class="exi" href="#expand"> </a></td>
434 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
435 <div class="fixedFont">
436 <span class="attributes"></span><b class="itemname">clearFilter</b>
445 <div class="short">Clears the current filter.</div>
451 Clears the current filter.
480 <tr class="method-row config-row-alt0 expandable">
481 <td class="micon"><a class="exi" href="#expand"> </a></td>
485 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
486 <div class="fixedFont">
487 <span class="attributes"></span><b class="itemname">clearSelections</b>
489 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
496 <div class="short">Clear all selections</div>
509 <dl class="detailList">
510 <dt class="heading">Parameters:</dt>
513 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>suppressEvent</b>
516 <dd>(optional) true to skip firing of the selectionchange event</dd>
536 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
542 <tr class="method-row config-row-alt1 expandable notInherited">
543 <td class="micon"><a class="exi" href="#expand"> </a></td>
547 <a id="Roo.JsonView-method-filter" name=".filter"></a>
548 <div class="fixedFont">
549 <span class="attributes"></span><b class="itemname">filter</b>
551 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>property</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp <B><i>value</i></B>)
558 <div class="short">Filter the data by a specific property.</div>
564 Filter the data by a specific property.
571 <dl class="detailList">
572 <dt class="heading">Parameters:</dt>
575 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
578 <dd>A property on your JSON objects</dd>
581 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
584 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
610 <tr class="method-row config-row-alt0 expandable notInherited">
611 <td class="micon"><a class="exi" href="#expand"> </a></td>
615 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
616 <div class="fixedFont">
617 <span class="attributes"></span><b class="itemname">filterBy</b>
619 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
626 <div class="short">Filter by a function.</div>
632 Filter by a function. The passed function will be called with each<br/>object in the current dataset. If the function returns true the value is kept,<br/>otherwise it is filtered.
639 <dl class="detailList">
640 <dt class="heading">Parameters:</dt>
643 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
649 <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>
652 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
678 <tr class="method-row config-row-alt1 expandable">
679 <td class="micon"><a class="exi" href="#expand"> </a></td>
683 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
684 <div class="fixedFont">
685 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
687 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
693 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
702 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
708 Returns the template node the passed child belongs to or null if it doesn't belong to one.
715 <dl class="detailList">
716 <dt class="heading">Parameters:</dt>
719 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
730 <dl class="detailList">
731 <dt class="heading">Returns:</dt>
733 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> The template node</dd>
749 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
755 <tr class="method-row config-row-alt0 expandable">
756 <td class="micon"><a class="exi" href="#expand"> </a></td>
760 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
761 <div class="fixedFont">
762 <span class="attributes"></span><b class="itemname">fireEvent</b>
764 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a> <B><i>args</i></B>)
770 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
779 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
785 Fires the specified event with the passed parameters (minus the event name).
792 <dl class="detailList">
793 <dt class="heading">Parameters:</dt>
796 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
802 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a></span> <b>args</b>
805 <dd>Variable number of parameters are passed to handlers</dd>
813 <dl class="detailList">
814 <dt class="heading">Returns:</dt>
816 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> returns false if any of the handlers return false otherwise it returns true</dd>
832 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
838 <tr class="method-row config-row-alt1 expandable notInherited">
839 <td class="micon"><a class="exi" href="#expand"> </a></td>
843 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
844 <div class="fixedFont">
845 <span class="attributes"></span><b class="itemname">getCount</b>
853 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
862 <div class="short">Get the number of records in the current JSON dataset</div>
868 Get the number of records in the current JSON dataset
879 <dl class="detailList">
880 <dt class="heading">Returns:</dt>
882 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
904 <tr class="method-row config-row-alt0 expandable">
905 <td class="micon"><a class="exi" href="#expand"> </a></td>
909 <a id="Roo.View-method-getEl" name=".getEl"></a>
910 <div class="fixedFont">
911 <span class="attributes"></span><b class="itemname">getEl</b>
919 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
928 <div class="short">Returns the element this view is bound to.</div>
934 Returns the element this view is bound to.
945 <dl class="detailList">
946 <dt class="heading">Returns:</dt>
948 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
964 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
970 <tr class="method-row config-row-alt1 expandable">
971 <td class="micon"><a class="exi" href="#expand"> </a></td>
975 <a id="Roo.View-method-getNode" name=".getNode"></a>
976 <div class="fixedFont">
977 <span class="attributes"></span><b class="itemname">getNode</b>
979 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
985 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
994 <div class="short">Gets a template node.</div>
1000 Gets a template node.
1007 <dl class="detailList">
1008 <dt class="heading">Parameters:</dt>
1011 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number</span> <b>nodeInfo</b>
1014 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1022 <dl class="detailList">
1023 <dt class="heading">Returns:</dt>
1025 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> The node or null if it wasn't found</dd>
1039 <td class="msource">
1041 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1047 <tr class="method-row config-row-alt0 expandable notInherited">
1048 <td class="micon"><a class="exi" href="#expand"> </a></td>
1052 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1053 <div class="fixedFont">
1054 <span class="attributes"></span><b class="itemname">getNodeData</b>
1056 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1062 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1071 <div class="short">Returns the JSON object for the specified node(s)</div>
1077 Returns the JSON object for the specified node(s)
1084 <dl class="detailList">
1085 <dt class="heading">Parameters:</dt>
1088 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array</span> <b>node</b>
1091 <dd>The node or an array of nodes</dd>
1099 <dl class="detailList">
1100 <dt class="heading">Returns:</dt>
1102 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array</span> If you pass in an array, you get an array back, otherwise<br/>you get the JSON object for the node</dd>
1116 <td class="msource">
1124 <tr class="method-row config-row-alt1 expandable">
1125 <td class="micon"><a class="exi" href="#expand"> </a></td>
1129 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1130 <div class="fixedFont">
1131 <span class="attributes"></span><b class="itemname">getNodes</b>
1133 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>startIndex</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>endIndex</i></B>)
1139 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1148 <div class="short">Gets a range template nodes.</div>
1154 Gets a range template nodes.
1161 <dl class="detailList">
1162 <dt class="heading">Parameters:</dt>
1165 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1171 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1182 <dl class="detailList">
1183 <dt class="heading">Returns:</dt>
1185 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1199 <td class="msource">
1201 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1207 <tr class="method-row config-row-alt0 expandable">
1208 <td class="micon"><a class="exi" href="#expand"> </a></td>
1212 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1213 <div class="fixedFont">
1214 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1222 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1231 <div class="short">Get the indexes of the selected nodes.</div>
1237 Get the indexes of the selected nodes.
1248 <dl class="detailList">
1249 <dt class="heading">Returns:</dt>
1251 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1265 <td class="msource">
1267 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1273 <tr class="method-row config-row-alt1 expandable">
1274 <td class="micon"><a class="exi" href="#expand"> </a></td>
1278 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1279 <div class="fixedFont">
1280 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1288 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1297 <div class="short">Get the currently selected nodes.</div>
1303 Get the currently selected nodes.
1314 <dl class="detailList">
1315 <dt class="heading">Returns:</dt>
1317 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1331 <td class="msource">
1333 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1339 <tr class="method-row config-row-alt0 expandable">
1340 <td class="micon"><a class="exi" href="#expand"> </a></td>
1344 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1345 <div class="fixedFont">
1346 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1354 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1363 <div class="short">Get the number of selected nodes.</div>
1369 Get the number of selected nodes.
1380 <dl class="detailList">
1381 <dt class="heading">Returns:</dt>
1383 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1397 <td class="msource">
1399 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1405 <tr class="method-row config-row-alt1 expandable">
1406 <td class="micon"><a class="exi" href="#expand"> </a></td>
1410 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1411 <div class="fixedFont">
1412 <span class="attributes"></span><b class="itemname">hasListener</b>
1414 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1420 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1429 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1435 Checks to see if this object has any listeners for a specified event
1442 <dl class="detailList">
1443 <dt class="heading">Parameters:</dt>
1446 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1449 <dd>The name of the event to check for</dd>
1457 <dl class="detailList">
1458 <dt class="heading">Returns:</dt>
1460 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the event is being listened for, else false</dd>
1474 <td class="msource">
1476 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1482 <tr class="method-row config-row-alt0 expandable">
1483 <td class="micon"><a class="exi" href="#expand"> </a></td>
1487 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1488 <div class="fixedFont">
1489 <span class="attributes"></span><b class="itemname">indexOf</b>
1491 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1497 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1506 <div class="short">Finds the index of the passed node</div>
1512 Finds the index of the passed node
1519 <dl class="detailList">
1520 <dt class="heading">Parameters:</dt>
1523 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number</span> <b>nodeInfo</b>
1526 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1534 <dl class="detailList">
1535 <dt class="heading">Returns:</dt>
1537 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> The index of the node or -1</dd>
1551 <td class="msource">
1553 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1559 <tr class="method-row config-row-alt1 expandable">
1560 <td class="micon"><a class="exi" href="#expand"> </a></td>
1564 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1565 <div class="fixedFont">
1566 <span class="attributes"></span><b class="itemname">isSelected</b>
1568 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1574 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1583 <div class="short">Returns true if the passed node is selected</div>
1589 Returns true if the passed node is selected
1596 <dl class="detailList">
1597 <dt class="heading">Parameters:</dt>
1600 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number</span> <b>node</b>
1603 <dd>The node or node index</dd>
1611 <dl class="detailList">
1612 <dt class="heading">Returns:</dt>
1614 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1628 <td class="msource">
1630 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1636 <tr class="method-row config-row-alt0 expandable notInherited">
1637 <td class="micon"><a class="exi" href="#expand"> </a></td>
1641 <a id="Roo.JsonView-method-load" name=".load"></a>
1642 <div class="fixedFont">
1643 <span class="attributes"></span><b class="itemname">load</b>
1645 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/String/Function <B><i>url</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object <B><i>params</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:Boolean">Boolean</a> <B><i>discardUrl</i></B>)
1652 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
1658 Performs an async HTTP request, and loads the JSON from the response. If <i>params</i> are specified it uses POST, otherwise it uses GET.
1665 <dl class="detailList">
1666 <dt class="heading">Parameters:</dt>
1669 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/String/Function</span> <b>url</b>
1672 <dd>The URL for this request, or a function to call to get the URL, or a config object containing any of the following options:<br/> <pre><code><br/> view.load({<br/> url: "your-url.php",<br/> params: {param1: "foo", param2: "bar"}, // or a URL encoded string<br/> callback: yourFunction,<br/> scope: yourObject, //(optional scope)<br/> discardUrl: false,<br/> nocache: false,<br/> text: "Loading...",<br/> timeout: 30,<br/> scripts: false<br/> });<br/> </code></pre><br/>The only required property is <i>url</i>. The optional properties <i>nocache</i>, <i>text</i> and <i>scripts</i><br/>are respectively shorthand for <i>disableCaching</i>, <i>indicatorText</i>, and <i>loadScripts</i> and are used to set their associated property on this UpdateManager instance.</dd>
1675 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
1678 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
1681 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
1684 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
1687 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>discardUrl</b>
1690 <dd>(optional) By default when you execute an update the defaultUrl is changed to the last used URL. If true, it will not store the URL.</dd>
1708 <td class="msource">
1716 <tr class="method-row config-row-alt1 expandable">
1717 <td class="micon"><a class="exi" href="#expand"> </a></td>
1721 <a id="Roo.util.Observable-method-on" name=".on"></a>
1722 <div class="fixedFont">
1723 <span class="attributes"></span><b class="itemname">on</b>
1725 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
1732 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1738 Appends an event handler to this element (shorthand for addListener)
1745 <dl class="detailList">
1746 <dt class="heading">Parameters:</dt>
1749 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1752 <dd>The type of event to listen for</dd>
1755 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1758 <dd>The method the event invokes</dd>
1761 <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>
1764 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1767 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
1788 <td class="msource">
1790 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1796 <tr class="method-row config-row-alt0 expandable">
1797 <td class="micon"><a class="exi" href="#expand"> </a></td>
1801 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
1802 <div class="fixedFont">
1803 <span class="attributes"></span><b class="itemname">prepareData</b>
1805 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
1812 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
1818 Function to override to reformat the data that is sent to<br/>the template for each node.
1825 <dl class="detailList">
1826 <dt class="heading">Parameters:</dt>
1829 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
1832 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
1850 <td class="msource">
1852 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1858 <tr class="method-row config-row-alt1 expandable">
1859 <td class="micon"><a class="exi" href="#expand"> </a></td>
1863 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1864 <div class="fixedFont">
1865 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1874 <div class="short">Removes all listeners for this object</div>
1880 Removes all listeners for this object
1901 <td class="msource">
1903 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1909 <tr class="method-row config-row-alt0 expandable notInherited">
1910 <td class="micon"><a class="exi" href="#expand"> </a></td>
1914 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
1915 <div class="fixedFont">
1916 <span class="attributes"></span><b class="itemname">refresh</b>
1925 <div class="short">Refreshes the view.</div>
1952 <td class="msource">
1960 <tr class="method-row config-row-alt1 expandable">
1961 <td class="micon"><a class="exi" href="#expand"> </a></td>
1965 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
1966 <div class="fixedFont">
1967 <span class="attributes"></span><b class="itemname">refreshNode</b>
1969 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1976 <div class="short">Refresh an individual node.</div>
1982 Refresh an individual node.
1989 <dl class="detailList">
1990 <dt class="heading">Parameters:</dt>
1993 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2014 <td class="msource">
2016 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2022 <tr class="method-row config-row-alt0 expandable">
2023 <td class="micon"><a class="exi" href="#expand"> </a></td>
2027 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2028 <div class="fixedFont">
2029 <span class="attributes"></span><b class="itemname">removeListener</b>
2031 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2038 <div class="short">Removes a listener</div>
2051 <dl class="detailList">
2052 <dt class="heading">Parameters:</dt>
2055 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2058 <dd>The type of event to listen for</dd>
2061 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2064 <dd>The handler to remove</dd>
2067 <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>
2070 <dd>(optional) The scope (this object) for the handler</dd>
2088 <td class="msource">
2090 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2096 <tr class="method-row config-row-alt1 expandable">
2097 <td class="micon"><a class="exi" href="#expand"> </a></td>
2101 <a id="Roo.View-method-select" name=".select"></a>
2102 <div class="fixedFont">
2103 <span class="attributes"></span><b class="itemname">select</b>
2105 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number <B><i>nodeInfo</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>keepExisting</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
2112 <div class="short">Selects nodes.</div>
2125 <dl class="detailList">
2126 <dt class="heading">Parameters:</dt>
2129 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2132 <dd>An HTMLElement template node, index of a template node, id of a template node or an array of any of those to select</dd>
2135 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>keepExisting</b>
2138 <dd>(optional) true to keep existing selections</dd>
2141 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>suppressEvent</b>
2144 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2162 <td class="msource">
2164 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2170 <tr class="method-row config-row-alt0 expandable">
2171 <td class="micon"><a class="exi" href="#expand"> </a></td>
2175 <a id="Roo.View-method-setStore" name=".setStore"></a>
2176 <div class="fixedFont">
2177 <span class="attributes"></span><b class="itemname">setStore</b>
2179 (Store <B><i>store</i></B>)
2186 <div class="short">Changes the data store this view uses and refresh the view.</div>
2192 Changes the data store this view uses and refresh the view.
2199 <dl class="detailList">
2200 <dt class="heading">Parameters:</dt>
2203 <span class="fixedFont">Store</span> <b>store</b>
2224 <td class="msource">
2226 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2232 <tr class="method-row config-row-alt1 expandable notInherited">
2233 <td class="micon"><a class="exi" href="#expand"> </a></td>
2237 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2238 <div class="fixedFont">
2239 <span class="attributes"></span><b class="itemname">sort</b>
2241 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>property</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>direction</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>sortType</i></B>)
2248 <div class="short">Sorts the data for this view and refreshes it.</div>
2254 Sorts the data for this view and refreshes it.
2261 <dl class="detailList">
2262 <dt class="heading">Parameters:</dt>
2265 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2268 <dd>A property on your JSON objects to sort on</dd>
2271 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2274 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2277 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2280 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2298 <td class="msource">
2306 <tr class="method-row config-row-alt0 expandable">
2307 <td class="micon"><a class="exi" href="#expand"> </a></td>
2311 <a id="Roo.util.Observable-method-un" name=".un"></a>
2312 <div class="fixedFont">
2313 <span class="attributes"></span><b class="itemname">un</b>
2315 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2322 <div class="short">Removes a listener (shorthand for removeListener)</div>
2328 Removes a listener (shorthand for removeListener)
2335 <dl class="detailList">
2336 <dt class="heading">Parameters:</dt>
2339 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2342 <dd>The type of event to listen for</dd>
2345 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2348 <dd>The handler to remove</dd>
2351 <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>
2354 <dd>(optional) The scope (this object) for the handler</dd>
2372 <td class="msource">
2374 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2383 <!-- ============================== events summary / details ======================== -->
2386 <a id="Roo.JsonView-events"></a>
2395 <table cellspacing="0" class="member-table">
2396 <caption>Events</caption>
2399 <th class="sig-header" colspan="2">Event</th>
2400 <th class="msource-header">Defined By</th>
2409 <tr class="method-row expandable config-row-alt0">
2410 <td class="micon"><a class="exi" href="#expand"> </a></td>
2413 <a id="Roo.View-event-*beforeclick"></a>
2415 <div class="fixedFont">
2416 <b class="itemname">beforeclick</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a> <B><i>e</i></B>)
2422 <div class="short">Fires before a click is processed.
2428 Fires before a click is processed. Returns false to cancel the default action.
2434 <dl class="detailList">
2435 <dt class="heading">Parameters:</dt>
2438 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2444 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2447 <dd>The index of the target node</dd>
2450 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2453 <dd>The target node</dd>
2456 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2459 <dd>The raw event object</dd>
2477 <td class="msource">
2478 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2482 <tr class="method-row expandable config-row-alt1 notInherited">
2483 <td class="micon"><a class="exi" href="#expand"> </a></td>
2486 <a id="Roo.JsonView-event-*beforerender"></a>
2488 <div class="fixedFont">
2489 <b class="itemname">beforerender</b> (<a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a> <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>data</i></B>)
2495 <div class="short">Fires before rendering of the downloaded JSON data.
2501 Fires before rendering of the downloaded JSON data.
2507 <dl class="detailList">
2508 <dt class="heading">Parameters:</dt>
2511 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2517 <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>
2520 <dd>The JSON data loaded</dd>
2538 <td class="msource">
2543 <tr class="method-row expandable config-row-alt0">
2544 <td class="micon"><a class="exi" href="#expand"> </a></td>
2547 <a id="Roo.View-event-*beforeselect"></a>
2549 <div class="fixedFont">
2550 <b class="itemname">beforeselect</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a> <B><i>selections</i></B>)
2556 <div class="short">Fires before a selection is made.
2562 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2568 <dl class="detailList">
2569 <dt class="heading">Parameters:</dt>
2572 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2578 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2581 <dd>The node to be selected</dd>
2584 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2587 <dd>Array of currently selected nodes</dd>
2605 <td class="msource">
2606 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2610 <tr class="method-row expandable config-row-alt1">
2611 <td class="micon"><a class="exi" href="#expand"> </a></td>
2614 <a id="Roo.View-event-*click"></a>
2616 <div class="fixedFont">
2617 <b class="itemname">click</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a> <B><i>e</i></B>)
2623 <div class="short">Fires when a template node is clicked.
2629 Fires when a template node is clicked.
2635 <dl class="detailList">
2636 <dt class="heading">Parameters:</dt>
2639 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2645 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2648 <dd>The index of the target node</dd>
2651 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2654 <dd>The target node</dd>
2657 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2660 <dd>The raw event object</dd>
2678 <td class="msource">
2679 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2683 <tr class="method-row expandable config-row-alt0">
2684 <td class="micon"><a class="exi" href="#expand"> </a></td>
2687 <a id="Roo.View-event-*contextmenu"></a>
2689 <div class="fixedFont">
2690 <b class="itemname">contextmenu</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a> <B><i>e</i></B>)
2696 <div class="short">Fires when a template node is right clicked.
2702 Fires when a template node is right clicked.
2708 <dl class="detailList">
2709 <dt class="heading">Parameters:</dt>
2712 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2718 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2721 <dd>The index of the target node</dd>
2724 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2727 <dd>The target node</dd>
2730 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2733 <dd>The raw event object</dd>
2751 <td class="msource">
2752 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2756 <tr class="method-row expandable config-row-alt1">
2757 <td class="micon"><a class="exi" href="#expand"> </a></td>
2760 <a id="Roo.View-event-*dblclick"></a>
2762 <div class="fixedFont">
2763 <b class="itemname">dblclick</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>, <a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a> <B><i>e</i></B>)
2769 <div class="short">Fires when a template node is double clicked.
2775 Fires when a template node is double clicked.
2781 <dl class="detailList">
2782 <dt class="heading">Parameters:</dt>
2785 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2791 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2794 <dd>The index of the target node</dd>
2797 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2800 <dd>The target node</dd>
2803 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2806 <dd>The raw event object</dd>
2824 <td class="msource">
2825 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2829 <tr class="method-row expandable config-row-alt0 notInherited">
2830 <td class="micon"><a class="exi" href="#expand"> </a></td>
2833 <a id="Roo.JsonView-event-*load"></a>
2835 <div class="fixedFont">
2836 <b class="itemname">load</b> (<a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a> <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>data</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>response</i></B>)
2842 <div class="short">Fires when data is loaded.
2848 Fires when data is loaded.
2854 <dl class="detailList">
2855 <dt class="heading">Parameters:</dt>
2858 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2864 <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>
2867 <dd>The JSON data loaded</dd>
2870 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>response</b>
2873 <dd>The raw Connect response object</dd>
2891 <td class="msource">
2896 <tr class="method-row expandable config-row-alt1 notInherited">
2897 <td class="micon"><a class="exi" href="#expand"> </a></td>
2900 <a id="Roo.JsonView-event-*loadexception"></a>
2902 <div class="fixedFont">
2903 <b class="itemname">loadexception</b> (<a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a> <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>response</i></B>)
2909 <div class="short">Fires when loading fails.
2915 Fires when loading fails.
2921 <dl class="detailList">
2922 <dt class="heading">Parameters:</dt>
2925 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2931 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>response</b>
2934 <dd>The raw Connect response object</dd>
2952 <td class="msource">
2957 <tr class="method-row expandable config-row-alt0">
2958 <td class="micon"><a class="exi" href="#expand"> </a></td>
2961 <a id="Roo.View-event-*selectionchange"></a>
2963 <div class="fixedFont">
2964 <b class="itemname">selectionchange</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a> <B><i>this</i></B>, <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a> <B><i>selections</i></B>)
2970 <div class="short">Fires when the selected nodes change.
2976 Fires when the selected nodes change.
2982 <dl class="detailList">
2983 <dt class="heading">Parameters:</dt>
2986 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2992 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2995 <dd>Array of the selected nodes</dd>
3013 <td class="msource">
3014 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3025 <!-- ============================== footer ================================= -->
3026 <div class="fineprint" style="clear:both">
3028 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Thu Jul 22 2010 00:29:38 GMT+0800 (HKT)
3030 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>