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({<br/> container: "my-element",<br/> template: '<div id="{id}">{foo} - {bar}</div>', // auto create template<br/> multiSelect: true, <br/> 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({<br/> container : "entry-list", <br/> template : 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><br/><br/>Note: old code is supported with arguments : (container, template, config)
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.View-cfg-Data" name=".Data"></a>
133 <div class="fixedFont">
134 <b class="itemname">Data</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
140 <div class="short">store to load data from.</div>
144 <div class="long">store to load data from.</div>
152 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
158 <tr class="config-row expandable config-row-alt1 notInherited">
159 <td class="micon"><a class="exi" href="#expand"> </a></td>
162 <a id="Roo.JsonView-cfg-The" name=".The"></a>
163 <div class="fixedFont">
164 <b class="itemname">The</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
170 <div class="short">root property in the loaded JSON object that contains the data</div>
174 <div class="long">root property in the loaded JSON object that contains the data</div>
188 <tr class="config-row expandable config-row-alt0">
189 <td class="micon"><a class="exi" href="#expand"> </a></td>
192 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
193 <div class="fixedFont">
194 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
200 <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>
204 <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>
212 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
228 <!-- ============================== public properties ==================== -->
232 <a id="Roo.JsonView-props"></a>
238 <table cellspacing="0" class="member-table">
239 <caption class="Empty">Public Properties - Has None</caption>
245 <!-- ============================== methods summary / details ======================== -->
248 <a id="Roo.JsonView-methods"></a>
249 <!-- constructor?? -->
256 <!-- then dynamics first -->
263 <table cellspacing="0" class="member-table">
264 <caption>Public Methods</caption>
266 <th class="sig-header" colspan="2">Method</th>
267 <th class="msource-header">Defined By</th>
277 <tr class="method-row config-row-alt0 expandable notInherited">
278 <td class="micon"><a class="exi" href="#expand"> </a></td>
282 <a id="Roo-method-JsonView" name=".JsonView"></a>
283 <div class="fixedFont">
284 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
286 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
294 <div class="short">Create a new Roo.JsonView</div>
301 Create a new Roo.JsonView
304 <dl class="detailList">
305 <dt class="heading">Parameters:</dt>
308 <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>
311 <dd>The config object</dd>
335 <tr class="method-row config-row-alt1 expandable">
336 <td class="micon"><a class="exi" href="#expand"> </a></td>
340 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
341 <div class="fixedFont">
342 <span class="attributes"></span><b class="itemname">addEvents</b>
344 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
351 <div class="short">Used to define events on this Observable</div>
357 Used to define events on this Observable
364 <dl class="detailList">
365 <dt class="heading">Parameters:</dt>
368 <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>
371 <dd>The object with the events defined</dd>
391 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
397 <tr class="method-row config-row-alt0 expandable">
398 <td class="micon"><a class="exi" href="#expand"> </a></td>
402 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
403 <div class="fixedFont">
404 <span class="attributes"></span><b class="itemname">addListener</b>
406 (<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>)
413 <div class="short">Appends an event handler to this component</div>
419 Appends an event handler to this component
426 <dl class="detailList">
427 <dt class="heading">Parameters:</dt>
430 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
433 <dd>The type of event to listen for</dd>
436 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
439 <dd>The method the event invokes</dd>
442 <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>
445 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
448 <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>
451 <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>
471 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
477 <tr class="method-row config-row-alt1 expandable notInherited">
478 <td class="micon"><a class="exi" href="#expand"> </a></td>
482 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
483 <div class="fixedFont">
484 <span class="attributes"></span><b class="itemname">clearFilter</b>
493 <div class="short">Clears the current filter.</div>
499 Clears the current filter.
528 <tr class="method-row config-row-alt0 expandable">
529 <td class="micon"><a class="exi" href="#expand"> </a></td>
533 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
534 <div class="fixedFont">
535 <span class="attributes"></span><b class="itemname">clearSelections</b>
537 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
544 <div class="short">Clear all selections</div>
557 <dl class="detailList">
558 <dt class="heading">Parameters:</dt>
561 <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>
564 <dd>(optional) true to skip firing of the selectionchange event</dd>
584 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
590 <tr class="method-row config-row-alt1 expandable notInherited">
591 <td class="micon"><a class="exi" href="#expand"> </a></td>
595 <a id="Roo.JsonView-method-filter" name=".filter"></a>
596 <div class="fixedFont">
597 <span class="attributes"></span><b class="itemname">filter</b>
599 (<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>)
606 <div class="short">Filter the data by a specific property.</div>
612 Filter the data by a specific property.
619 <dl class="detailList">
620 <dt class="heading">Parameters:</dt>
623 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
626 <dd>A property on your JSON objects</dd>
629 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
632 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
658 <tr class="method-row config-row-alt0 expandable notInherited">
659 <td class="micon"><a class="exi" href="#expand"> </a></td>
663 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
664 <div class="fixedFont">
665 <span class="attributes"></span><b class="itemname">filterBy</b>
667 (<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>)
674 <div class="short">Filter by a function.</div>
680 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.
687 <dl class="detailList">
688 <dt class="heading">Parameters:</dt>
691 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
697 <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>
700 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
726 <tr class="method-row config-row-alt1 expandable">
727 <td class="micon"><a class="exi" href="#expand"> </a></td>
731 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
732 <div class="fixedFont">
733 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
735 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
741 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
750 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
756 Returns the template node the passed child belongs to or null if it doesn't belong to one.
763 <dl class="detailList">
764 <dt class="heading">Parameters:</dt>
767 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
778 <dl class="detailList">
779 <dt class="heading">Returns:</dt>
781 <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>
797 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
803 <tr class="method-row config-row-alt0 expandable">
804 <td class="micon"><a class="exi" href="#expand"> </a></td>
808 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
809 <div class="fixedFont">
810 <span class="attributes"></span><b class="itemname">fireEvent</b>
812 (<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>)
818 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
827 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
833 Fires the specified event with the passed parameters (minus the event name).
840 <dl class="detailList">
841 <dt class="heading">Parameters:</dt>
844 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
850 <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>
853 <dd>Variable number of parameters are passed to handlers</dd>
861 <dl class="detailList">
862 <dt class="heading">Returns:</dt>
864 <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>
880 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
886 <tr class="method-row config-row-alt1 expandable notInherited">
887 <td class="micon"><a class="exi" href="#expand"> </a></td>
891 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
892 <div class="fixedFont">
893 <span class="attributes"></span><b class="itemname">getCount</b>
901 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
910 <div class="short">Get the number of records in the current JSON dataset</div>
916 Get the number of records in the current JSON dataset
927 <dl class="detailList">
928 <dt class="heading">Returns:</dt>
930 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
952 <tr class="method-row config-row-alt0 expandable">
953 <td class="micon"><a class="exi" href="#expand"> </a></td>
957 <a id="Roo.View-method-getEl" name=".getEl"></a>
958 <div class="fixedFont">
959 <span class="attributes"></span><b class="itemname">getEl</b>
967 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
976 <div class="short">Returns the element this view is bound to.</div>
982 Returns the element this view is bound to.
993 <dl class="detailList">
994 <dt class="heading">Returns:</dt>
996 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1010 <td class="msource">
1012 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1018 <tr class="method-row config-row-alt1 expandable">
1019 <td class="micon"><a class="exi" href="#expand"> </a></td>
1023 <a id="Roo.View-method-getNode" name=".getNode"></a>
1024 <div class="fixedFont">
1025 <span class="attributes"></span><b class="itemname">getNode</b>
1027 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1033 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1042 <div class="short">Gets a template node.</div>
1048 Gets a template node.
1055 <dl class="detailList">
1056 <dt class="heading">Parameters:</dt>
1059 <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>
1062 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1070 <dl class="detailList">
1071 <dt class="heading">Returns:</dt>
1073 <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>
1087 <td class="msource">
1089 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1095 <tr class="method-row config-row-alt0 expandable notInherited">
1096 <td class="micon"><a class="exi" href="#expand"> </a></td>
1100 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1101 <div class="fixedFont">
1102 <span class="attributes"></span><b class="itemname">getNodeData</b>
1104 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1110 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1119 <div class="short">Returns the JSON object for the specified node(s)</div>
1125 Returns the JSON object for the specified node(s)
1132 <dl class="detailList">
1133 <dt class="heading">Parameters:</dt>
1136 <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>
1139 <dd>The node or an array of nodes</dd>
1147 <dl class="detailList">
1148 <dt class="heading">Returns:</dt>
1150 <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>
1164 <td class="msource">
1172 <tr class="method-row config-row-alt1 expandable">
1173 <td class="micon"><a class="exi" href="#expand"> </a></td>
1177 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1178 <div class="fixedFont">
1179 <span class="attributes"></span><b class="itemname">getNodes</b>
1181 (<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>)
1187 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1196 <div class="short">Gets a range template nodes.</div>
1202 Gets a range template nodes.
1209 <dl class="detailList">
1210 <dt class="heading">Parameters:</dt>
1213 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1219 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1230 <dl class="detailList">
1231 <dt class="heading">Returns:</dt>
1233 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1247 <td class="msource">
1249 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1255 <tr class="method-row config-row-alt0 expandable">
1256 <td class="micon"><a class="exi" href="#expand"> </a></td>
1260 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1261 <div class="fixedFont">
1262 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1270 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1279 <div class="short">Get the indexes of the selected nodes.</div>
1285 Get the indexes of the selected nodes.
1296 <dl class="detailList">
1297 <dt class="heading">Returns:</dt>
1299 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1313 <td class="msource">
1315 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1321 <tr class="method-row config-row-alt1 expandable">
1322 <td class="micon"><a class="exi" href="#expand"> </a></td>
1326 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1327 <div class="fixedFont">
1328 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1336 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1345 <div class="short">Get the currently selected nodes.</div>
1351 Get the currently selected nodes.
1362 <dl class="detailList">
1363 <dt class="heading">Returns:</dt>
1365 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1379 <td class="msource">
1381 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1387 <tr class="method-row config-row-alt0 expandable">
1388 <td class="micon"><a class="exi" href="#expand"> </a></td>
1392 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1393 <div class="fixedFont">
1394 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1402 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1411 <div class="short">Get the number of selected nodes.</div>
1417 Get the number of selected nodes.
1428 <dl class="detailList">
1429 <dt class="heading">Returns:</dt>
1431 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1445 <td class="msource">
1447 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1453 <tr class="method-row config-row-alt1 expandable">
1454 <td class="micon"><a class="exi" href="#expand"> </a></td>
1458 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1459 <div class="fixedFont">
1460 <span class="attributes"></span><b class="itemname">hasListener</b>
1462 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1468 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1477 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1483 Checks to see if this object has any listeners for a specified event
1490 <dl class="detailList">
1491 <dt class="heading">Parameters:</dt>
1494 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1497 <dd>The name of the event to check for</dd>
1505 <dl class="detailList">
1506 <dt class="heading">Returns:</dt>
1508 <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>
1522 <td class="msource">
1524 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1530 <tr class="method-row config-row-alt0 expandable">
1531 <td class="micon"><a class="exi" href="#expand"> </a></td>
1535 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1536 <div class="fixedFont">
1537 <span class="attributes"></span><b class="itemname">indexOf</b>
1539 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1545 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1554 <div class="short">Finds the index of the passed node</div>
1560 Finds the index of the passed node
1567 <dl class="detailList">
1568 <dt class="heading">Parameters:</dt>
1571 <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>
1574 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1582 <dl class="detailList">
1583 <dt class="heading">Returns:</dt>
1585 <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>
1599 <td class="msource">
1601 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1607 <tr class="method-row config-row-alt1 expandable">
1608 <td class="micon"><a class="exi" href="#expand"> </a></td>
1612 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1613 <div class="fixedFont">
1614 <span class="attributes"></span><b class="itemname">isSelected</b>
1616 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1622 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1631 <div class="short">Returns true if the passed node is selected</div>
1637 Returns true if the passed node is selected
1644 <dl class="detailList">
1645 <dt class="heading">Parameters:</dt>
1648 <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>
1651 <dd>The node or node index</dd>
1659 <dl class="detailList">
1660 <dt class="heading">Returns:</dt>
1662 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1676 <td class="msource">
1678 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1684 <tr class="method-row config-row-alt0 expandable notInherited">
1685 <td class="micon"><a class="exi" href="#expand"> </a></td>
1689 <a id="Roo.JsonView-method-load" name=".load"></a>
1690 <div class="fixedFont">
1691 <span class="attributes"></span><b class="itemname">load</b>
1693 (<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>)
1700 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
1706 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.
1713 <dl class="detailList">
1714 <dt class="heading">Parameters:</dt>
1717 <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>
1720 <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>
1723 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
1726 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
1729 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
1732 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
1735 <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>
1738 <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>
1756 <td class="msource">
1764 <tr class="method-row config-row-alt1 expandable">
1765 <td class="micon"><a class="exi" href="#expand"> </a></td>
1769 <a id="Roo.util.Observable-method-on" name=".on"></a>
1770 <div class="fixedFont">
1771 <span class="attributes"></span><b class="itemname">on</b>
1773 (<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>)
1780 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1786 Appends an event handler to this element (shorthand for addListener)
1793 <dl class="detailList">
1794 <dt class="heading">Parameters:</dt>
1797 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1800 <dd>The type of event to listen for</dd>
1803 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1806 <dd>The method the event invokes</dd>
1809 <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>
1812 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1815 <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>
1836 <td class="msource">
1838 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1844 <tr class="method-row config-row-alt0 expandable">
1845 <td class="micon"><a class="exi" href="#expand"> </a></td>
1849 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
1850 <div class="fixedFont">
1851 <span class="attributes"></span><b class="itemname">prepareData</b>
1853 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
1860 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
1866 Function to override to reformat the data that is sent to<br/>the template for each node.
1873 <dl class="detailList">
1874 <dt class="heading">Parameters:</dt>
1877 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
1880 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
1898 <td class="msource">
1900 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1906 <tr class="method-row config-row-alt1 expandable">
1907 <td class="micon"><a class="exi" href="#expand"> </a></td>
1911 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1912 <div class="fixedFont">
1913 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1922 <div class="short">Removes all listeners for this object</div>
1928 Removes all listeners for this object
1949 <td class="msource">
1951 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1957 <tr class="method-row config-row-alt0 expandable notInherited">
1958 <td class="micon"><a class="exi" href="#expand"> </a></td>
1962 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
1963 <div class="fixedFont">
1964 <span class="attributes"></span><b class="itemname">refresh</b>
1973 <div class="short">Refreshes the view.</div>
2000 <td class="msource">
2008 <tr class="method-row config-row-alt1 expandable">
2009 <td class="micon"><a class="exi" href="#expand"> </a></td>
2013 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
2014 <div class="fixedFont">
2015 <span class="attributes"></span><b class="itemname">refreshNode</b>
2017 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2024 <div class="short">Refresh an individual node.</div>
2030 Refresh an individual node.
2037 <dl class="detailList">
2038 <dt class="heading">Parameters:</dt>
2041 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2062 <td class="msource">
2064 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2070 <tr class="method-row config-row-alt0 expandable">
2071 <td class="micon"><a class="exi" href="#expand"> </a></td>
2075 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2076 <div class="fixedFont">
2077 <span class="attributes"></span><b class="itemname">removeListener</b>
2079 (<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>)
2086 <div class="short">Removes a listener</div>
2099 <dl class="detailList">
2100 <dt class="heading">Parameters:</dt>
2103 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2106 <dd>The type of event to listen for</dd>
2109 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2112 <dd>The handler to remove</dd>
2115 <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>
2118 <dd>(optional) The scope (this object) for the handler</dd>
2136 <td class="msource">
2138 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2144 <tr class="method-row config-row-alt1 expandable">
2145 <td class="micon"><a class="exi" href="#expand"> </a></td>
2149 <a id="Roo.View-method-select" name=".select"></a>
2150 <div class="fixedFont">
2151 <span class="attributes"></span><b class="itemname">select</b>
2153 (<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>)
2160 <div class="short">Selects nodes.</div>
2173 <dl class="detailList">
2174 <dt class="heading">Parameters:</dt>
2177 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2180 <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>
2183 <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>
2186 <dd>(optional) true to keep existing selections</dd>
2189 <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>
2192 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2210 <td class="msource">
2212 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2218 <tr class="method-row config-row-alt0 expandable">
2219 <td class="micon"><a class="exi" href="#expand"> </a></td>
2223 <a id="Roo.View-method-setStore" name=".setStore"></a>
2224 <div class="fixedFont">
2225 <span class="attributes"></span><b class="itemname">setStore</b>
2227 (Store <B><i>store</i></B>)
2234 <div class="short">Changes the data store this view uses and refresh the view.</div>
2240 Changes the data store this view uses and refresh the view.
2247 <dl class="detailList">
2248 <dt class="heading">Parameters:</dt>
2251 <span class="fixedFont">Store</span> <b>store</b>
2272 <td class="msource">
2274 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2280 <tr class="method-row config-row-alt1 expandable notInherited">
2281 <td class="micon"><a class="exi" href="#expand"> </a></td>
2285 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2286 <div class="fixedFont">
2287 <span class="attributes"></span><b class="itemname">sort</b>
2289 (<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>)
2296 <div class="short">Sorts the data for this view and refreshes it.</div>
2302 Sorts the data for this view and refreshes it.
2309 <dl class="detailList">
2310 <dt class="heading">Parameters:</dt>
2313 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2316 <dd>A property on your JSON objects to sort on</dd>
2319 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2322 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2325 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2328 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2346 <td class="msource">
2354 <tr class="method-row config-row-alt0 expandable">
2355 <td class="micon"><a class="exi" href="#expand"> </a></td>
2359 <a id="Roo.util.Observable-method-un" name=".un"></a>
2360 <div class="fixedFont">
2361 <span class="attributes"></span><b class="itemname">un</b>
2363 (<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>)
2370 <div class="short">Removes a listener (shorthand for removeListener)</div>
2376 Removes a listener (shorthand for removeListener)
2383 <dl class="detailList">
2384 <dt class="heading">Parameters:</dt>
2387 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2390 <dd>The type of event to listen for</dd>
2393 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2396 <dd>The handler to remove</dd>
2399 <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>
2402 <dd>(optional) The scope (this object) for the handler</dd>
2420 <td class="msource">
2422 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2431 <!-- ============================== events summary / details ======================== -->
2434 <a id="Roo.JsonView-events"></a>
2443 <table cellspacing="0" class="member-table">
2444 <caption>Events</caption>
2447 <th class="sig-header" colspan="2">Event</th>
2448 <th class="msource-header">Defined By</th>
2457 <tr class="method-row expandable config-row-alt0">
2458 <td class="micon"><a class="exi" href="#expand"> </a></td>
2461 <a id="Roo.View-event-*beforeclick"></a>
2463 <div class="fixedFont">
2464 <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>)
2470 <div class="short">Fires before a click is processed.
2476 Fires before a click is processed. Returns false to cancel the default action.
2482 <dl class="detailList">
2483 <dt class="heading">Parameters:</dt>
2486 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2492 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2495 <dd>The index of the target node</dd>
2498 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2501 <dd>The target node</dd>
2504 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2507 <dd>The raw event object</dd>
2525 <td class="msource">
2526 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2530 <tr class="method-row expandable config-row-alt1 notInherited">
2531 <td class="micon"><a class="exi" href="#expand"> </a></td>
2534 <a id="Roo.JsonView-event-*beforerender"></a>
2536 <div class="fixedFont">
2537 <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>)
2543 <div class="short">Fires before rendering of the downloaded JSON data.
2549 Fires before rendering of the downloaded JSON data.
2555 <dl class="detailList">
2556 <dt class="heading">Parameters:</dt>
2559 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2565 <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>
2568 <dd>The JSON data loaded</dd>
2586 <td class="msource">
2591 <tr class="method-row expandable config-row-alt0">
2592 <td class="micon"><a class="exi" href="#expand"> </a></td>
2595 <a id="Roo.View-event-*beforeselect"></a>
2597 <div class="fixedFont">
2598 <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>)
2604 <div class="short">Fires before a selection is made.
2610 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2616 <dl class="detailList">
2617 <dt class="heading">Parameters:</dt>
2620 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2626 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2629 <dd>The node to be selected</dd>
2632 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2635 <dd>Array of currently selected nodes</dd>
2653 <td class="msource">
2654 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2658 <tr class="method-row expandable config-row-alt1">
2659 <td class="micon"><a class="exi" href="#expand"> </a></td>
2662 <a id="Roo.View-event-*click"></a>
2664 <div class="fixedFont">
2665 <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>)
2671 <div class="short">Fires when a template node is clicked.
2677 Fires when a template node is clicked.
2683 <dl class="detailList">
2684 <dt class="heading">Parameters:</dt>
2687 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2693 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2696 <dd>The index of the target node</dd>
2699 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2702 <dd>The target node</dd>
2705 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2708 <dd>The raw event object</dd>
2726 <td class="msource">
2727 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2731 <tr class="method-row expandable config-row-alt0">
2732 <td class="micon"><a class="exi" href="#expand"> </a></td>
2735 <a id="Roo.View-event-*contextmenu"></a>
2737 <div class="fixedFont">
2738 <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>)
2744 <div class="short">Fires when a template node is right clicked.
2750 Fires when a template node is right clicked.
2756 <dl class="detailList">
2757 <dt class="heading">Parameters:</dt>
2760 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2766 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2769 <dd>The index of the target node</dd>
2772 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2775 <dd>The target node</dd>
2778 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2781 <dd>The raw event object</dd>
2799 <td class="msource">
2800 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2804 <tr class="method-row expandable config-row-alt1">
2805 <td class="micon"><a class="exi" href="#expand"> </a></td>
2808 <a id="Roo.View-event-*dblclick"></a>
2810 <div class="fixedFont">
2811 <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>)
2817 <div class="short">Fires when a template node is double clicked.
2823 Fires when a template node is double clicked.
2829 <dl class="detailList">
2830 <dt class="heading">Parameters:</dt>
2833 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2839 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2842 <dd>The index of the target node</dd>
2845 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2848 <dd>The target node</dd>
2851 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2854 <dd>The raw event object</dd>
2872 <td class="msource">
2873 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2877 <tr class="method-row expandable config-row-alt0 notInherited">
2878 <td class="micon"><a class="exi" href="#expand"> </a></td>
2881 <a id="Roo.JsonView-event-*load"></a>
2883 <div class="fixedFont">
2884 <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>)
2890 <div class="short">Fires when data is loaded.
2896 Fires when data is loaded.
2902 <dl class="detailList">
2903 <dt class="heading">Parameters:</dt>
2906 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2912 <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>
2915 <dd>The JSON data loaded</dd>
2918 <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>
2921 <dd>The raw Connect response object</dd>
2939 <td class="msource">
2944 <tr class="method-row expandable config-row-alt1 notInherited">
2945 <td class="micon"><a class="exi" href="#expand"> </a></td>
2948 <a id="Roo.JsonView-event-*loadexception"></a>
2950 <div class="fixedFont">
2951 <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>)
2957 <div class="short">Fires when loading fails.
2963 Fires when loading fails.
2969 <dl class="detailList">
2970 <dt class="heading">Parameters:</dt>
2973 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2979 <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>
2982 <dd>The raw Connect response object</dd>
3000 <td class="msource">
3005 <tr class="method-row expandable config-row-alt0">
3006 <td class="micon"><a class="exi" href="#expand"> </a></td>
3009 <a id="Roo.View-event-*selectionchange"></a>
3011 <div class="fixedFont">
3012 <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>)
3018 <div class="short">Fires when the selected nodes change.
3024 Fires when the selected nodes change.
3030 <dl class="detailList">
3031 <dt class="heading">Parameters:</dt>
3034 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3040 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3043 <dd>Array of the selected nodes</dd>
3061 <td class="msource">
3062 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3073 <!-- ============================== footer ================================= -->
3074 <div class="fineprint" style="clear:both">
3076 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Mon Jul 26 2010 14:59:31 GMT+0800 (HKT)
3078 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>