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 notInherited">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.JsonView-cfg-The" name=".The"></a>
133 <div class="fixedFont">
134 <b class="itemname">The</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
140 <div class="short">root property in the loaded JSON object that contains the data</div>
144 <div class="long">root property in the loaded JSON object that contains the data</div>
158 <tr class="config-row expandable config-row-alt1">
159 <td class="micon"><a class="exi" href="#expand"> </a></td>
162 <a id="Roo.View-cfg-el" name=".el"></a>
163 <div class="fixedFont">
164 <b class="itemname">el</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|<a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
170 <div class="short">The container element.</div>
174 <div class="long">The container element.</div>
182 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
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>
218 <tr class="config-row expandable config-row-alt1">
219 <td class="micon"><a class="exi" href="#expand"> </a></td>
222 <a id="Roo.View-cfg-store" name=".store"></a>
223 <div class="fixedFont">
224 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
230 <div class="short">Data store to load data from.</div>
234 <div class="long">Data store to load data from.</div>
242 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
248 <tr class="config-row expandable config-row-alt0">
249 <td class="micon"><a class="exi" href="#expand"> </a></td>
252 <a id="Roo.View-cfg-tpl" name=".tpl"></a>
253 <div class="fixedFont">
254 <b class="itemname">tpl</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|Roo.DomHelper.Template
260 <div class="short">The template used by this View</div>
264 <div class="long">The template used by this View</div>
272 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
288 <!-- ============================== public properties ==================== -->
292 <a id="Roo.JsonView-props"></a>
298 <table cellspacing="0" class="member-table">
299 <caption class="Empty">Public Properties - Has None</caption>
305 <!-- ============================== methods summary / details ======================== -->
308 <a id="Roo.JsonView-methods"></a>
309 <!-- constructor?? -->
316 <!-- then dynamics first -->
323 <table cellspacing="0" class="member-table">
324 <caption>Public Methods</caption>
326 <th class="sig-header" colspan="2">Method</th>
327 <th class="msource-header">Defined By</th>
337 <tr class="method-row config-row-alt0 expandable notInherited">
338 <td class="micon"><a class="exi" href="#expand"> </a></td>
342 <a id="Roo-method-JsonView" name=".JsonView"></a>
343 <div class="fixedFont">
344 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
346 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
354 <div class="short">Create a new Roo.JsonView</div>
361 Create a new Roo.JsonView
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>config</b>
371 <dd>The config object</dd>
395 <tr class="method-row config-row-alt1 expandable">
396 <td class="micon"><a class="exi" href="#expand"> </a></td>
400 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
401 <div class="fixedFont">
402 <span class="attributes"></span><b class="itemname">addEvents</b>
404 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
411 <div class="short">Used to define events on this Observable</div>
417 Used to define events on this Observable
424 <dl class="detailList">
425 <dt class="heading">Parameters:</dt>
428 <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>
431 <dd>The object with the events defined</dd>
451 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
457 <tr class="method-row config-row-alt0 expandable">
458 <td class="micon"><a class="exi" href="#expand"> </a></td>
462 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
463 <div class="fixedFont">
464 <span class="attributes"></span><b class="itemname">addListener</b>
466 (<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>)
473 <div class="short">Appends an event handler to this component</div>
479 Appends an event handler to this component
486 <dl class="detailList">
487 <dt class="heading">Parameters:</dt>
490 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
493 <dd>The type of event to listen for</dd>
496 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
499 <dd>The method the event invokes</dd>
502 <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>
505 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
508 <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>
511 <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>
531 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
537 <tr class="method-row config-row-alt1 expandable notInherited">
538 <td class="micon"><a class="exi" href="#expand"> </a></td>
542 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
543 <div class="fixedFont">
544 <span class="attributes"></span><b class="itemname">clearFilter</b>
553 <div class="short">Clears the current filter.</div>
559 Clears the current filter.
588 <tr class="method-row config-row-alt0 expandable">
589 <td class="micon"><a class="exi" href="#expand"> </a></td>
593 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
594 <div class="fixedFont">
595 <span class="attributes"></span><b class="itemname">clearSelections</b>
597 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
604 <div class="short">Clear all selections</div>
617 <dl class="detailList">
618 <dt class="heading">Parameters:</dt>
621 <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>
624 <dd>(optional) true to skip firing of the selectionchange event</dd>
644 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
650 <tr class="method-row config-row-alt1 expandable notInherited">
651 <td class="micon"><a class="exi" href="#expand"> </a></td>
655 <a id="Roo.JsonView-method-filter" name=".filter"></a>
656 <div class="fixedFont">
657 <span class="attributes"></span><b class="itemname">filter</b>
659 (<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>)
666 <div class="short">Filter the data by a specific property.</div>
672 Filter the data by a specific property.
679 <dl class="detailList">
680 <dt class="heading">Parameters:</dt>
683 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
686 <dd>A property on your JSON objects</dd>
689 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
692 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
718 <tr class="method-row config-row-alt0 expandable notInherited">
719 <td class="micon"><a class="exi" href="#expand"> </a></td>
723 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
724 <div class="fixedFont">
725 <span class="attributes"></span><b class="itemname">filterBy</b>
727 (<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>)
734 <div class="short">Filter by a function.</div>
740 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.
747 <dl class="detailList">
748 <dt class="heading">Parameters:</dt>
751 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
757 <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>
760 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
786 <tr class="method-row config-row-alt1 expandable">
787 <td class="micon"><a class="exi" href="#expand"> </a></td>
791 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
792 <div class="fixedFont">
793 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
795 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
801 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
810 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
816 Returns the template node the passed child belongs to or null if it doesn't belong to one.
823 <dl class="detailList">
824 <dt class="heading">Parameters:</dt>
827 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
838 <dl class="detailList">
839 <dt class="heading">Returns:</dt>
841 <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>
857 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
863 <tr class="method-row config-row-alt0 expandable">
864 <td class="micon"><a class="exi" href="#expand"> </a></td>
868 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
869 <div class="fixedFont">
870 <span class="attributes"></span><b class="itemname">fireEvent</b>
872 (<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>)
878 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
887 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
893 Fires the specified event with the passed parameters (minus the event name).
900 <dl class="detailList">
901 <dt class="heading">Parameters:</dt>
904 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
910 <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>
913 <dd>Variable number of parameters are passed to handlers</dd>
921 <dl class="detailList">
922 <dt class="heading">Returns:</dt>
924 <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>
940 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
946 <tr class="method-row config-row-alt1 expandable notInherited">
947 <td class="micon"><a class="exi" href="#expand"> </a></td>
951 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
952 <div class="fixedFont">
953 <span class="attributes"></span><b class="itemname">getCount</b>
961 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
970 <div class="short">Get the number of records in the current JSON dataset</div>
976 Get the number of records in the current JSON dataset
987 <dl class="detailList">
988 <dt class="heading">Returns:</dt>
990 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1004 <td class="msource">
1012 <tr class="method-row config-row-alt0 expandable">
1013 <td class="micon"><a class="exi" href="#expand"> </a></td>
1017 <a id="Roo.View-method-getEl" name=".getEl"></a>
1018 <div class="fixedFont">
1019 <span class="attributes"></span><b class="itemname">getEl</b>
1027 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
1036 <div class="short">Returns the element this view is bound to.</div>
1042 Returns the element this view is bound to.
1053 <dl class="detailList">
1054 <dt class="heading">Returns:</dt>
1056 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1070 <td class="msource">
1072 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1078 <tr class="method-row config-row-alt1 expandable">
1079 <td class="micon"><a class="exi" href="#expand"> </a></td>
1083 <a id="Roo.View-method-getNode" name=".getNode"></a>
1084 <div class="fixedFont">
1085 <span class="attributes"></span><b class="itemname">getNode</b>
1087 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1093 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1102 <div class="short">Gets a template node.</div>
1108 Gets a template node.
1115 <dl class="detailList">
1116 <dt class="heading">Parameters:</dt>
1119 <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>
1122 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1130 <dl class="detailList">
1131 <dt class="heading">Returns:</dt>
1133 <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>
1147 <td class="msource">
1149 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1155 <tr class="method-row config-row-alt0 expandable notInherited">
1156 <td class="micon"><a class="exi" href="#expand"> </a></td>
1160 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1161 <div class="fixedFont">
1162 <span class="attributes"></span><b class="itemname">getNodeData</b>
1164 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1170 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1179 <div class="short">Returns the JSON object for the specified node(s)</div>
1185 Returns the JSON object for the specified node(s)
1192 <dl class="detailList">
1193 <dt class="heading">Parameters:</dt>
1196 <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>
1199 <dd>The node or an array of nodes</dd>
1207 <dl class="detailList">
1208 <dt class="heading">Returns:</dt>
1210 <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>
1224 <td class="msource">
1232 <tr class="method-row config-row-alt1 expandable">
1233 <td class="micon"><a class="exi" href="#expand"> </a></td>
1237 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1238 <div class="fixedFont">
1239 <span class="attributes"></span><b class="itemname">getNodes</b>
1241 (<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>)
1247 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1256 <div class="short">Gets a range template nodes.</div>
1262 Gets a range template nodes.
1269 <dl class="detailList">
1270 <dt class="heading">Parameters:</dt>
1273 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1279 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1290 <dl class="detailList">
1291 <dt class="heading">Returns:</dt>
1293 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1307 <td class="msource">
1309 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1315 <tr class="method-row config-row-alt0 expandable">
1316 <td class="micon"><a class="exi" href="#expand"> </a></td>
1320 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1321 <div class="fixedFont">
1322 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1330 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1339 <div class="short">Get the indexes of the selected nodes.</div>
1345 Get the indexes of the selected nodes.
1356 <dl class="detailList">
1357 <dt class="heading">Returns:</dt>
1359 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1373 <td class="msource">
1375 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1381 <tr class="method-row config-row-alt1 expandable">
1382 <td class="micon"><a class="exi" href="#expand"> </a></td>
1386 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1387 <div class="fixedFont">
1388 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1396 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1405 <div class="short">Get the currently selected nodes.</div>
1411 Get the currently selected nodes.
1422 <dl class="detailList">
1423 <dt class="heading">Returns:</dt>
1425 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1439 <td class="msource">
1441 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1447 <tr class="method-row config-row-alt0 expandable">
1448 <td class="micon"><a class="exi" href="#expand"> </a></td>
1452 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1453 <div class="fixedFont">
1454 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1462 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1471 <div class="short">Get the number of selected nodes.</div>
1477 Get the number of selected nodes.
1488 <dl class="detailList">
1489 <dt class="heading">Returns:</dt>
1491 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1505 <td class="msource">
1507 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1513 <tr class="method-row config-row-alt1 expandable">
1514 <td class="micon"><a class="exi" href="#expand"> </a></td>
1518 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1519 <div class="fixedFont">
1520 <span class="attributes"></span><b class="itemname">hasListener</b>
1522 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1528 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1537 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1543 Checks to see if this object has any listeners for a specified event
1550 <dl class="detailList">
1551 <dt class="heading">Parameters:</dt>
1554 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1557 <dd>The name of the event to check for</dd>
1565 <dl class="detailList">
1566 <dt class="heading">Returns:</dt>
1568 <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>
1582 <td class="msource">
1584 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1590 <tr class="method-row config-row-alt0 expandable">
1591 <td class="micon"><a class="exi" href="#expand"> </a></td>
1595 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1596 <div class="fixedFont">
1597 <span class="attributes"></span><b class="itemname">indexOf</b>
1599 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1605 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1614 <div class="short">Finds the index of the passed node</div>
1620 Finds the index of the passed node
1627 <dl class="detailList">
1628 <dt class="heading">Parameters:</dt>
1631 <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>
1634 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1642 <dl class="detailList">
1643 <dt class="heading">Returns:</dt>
1645 <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>
1659 <td class="msource">
1661 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1667 <tr class="method-row config-row-alt1 expandable">
1668 <td class="micon"><a class="exi" href="#expand"> </a></td>
1672 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1673 <div class="fixedFont">
1674 <span class="attributes"></span><b class="itemname">isSelected</b>
1676 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1682 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1691 <div class="short">Returns true if the passed node is selected</div>
1697 Returns true if the passed node is selected
1704 <dl class="detailList">
1705 <dt class="heading">Parameters:</dt>
1708 <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>
1711 <dd>The node or node index</dd>
1719 <dl class="detailList">
1720 <dt class="heading">Returns:</dt>
1722 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1736 <td class="msource">
1738 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1744 <tr class="method-row config-row-alt0 expandable notInherited">
1745 <td class="micon"><a class="exi" href="#expand"> </a></td>
1749 <a id="Roo.JsonView-method-load" name=".load"></a>
1750 <div class="fixedFont">
1751 <span class="attributes"></span><b class="itemname">load</b>
1753 (<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>)
1760 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
1766 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.
1773 <dl class="detailList">
1774 <dt class="heading">Parameters:</dt>
1777 <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>
1780 <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>
1783 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
1786 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
1789 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
1792 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
1795 <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>
1798 <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>
1816 <td class="msource">
1824 <tr class="method-row config-row-alt1 expandable">
1825 <td class="micon"><a class="exi" href="#expand"> </a></td>
1829 <a id="Roo.util.Observable-method-on" name=".on"></a>
1830 <div class="fixedFont">
1831 <span class="attributes"></span><b class="itemname">on</b>
1833 (<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>)
1840 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1846 Appends an event handler to this element (shorthand for addListener)
1853 <dl class="detailList">
1854 <dt class="heading">Parameters:</dt>
1857 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1860 <dd>The type of event to listen for</dd>
1863 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1866 <dd>The method the event invokes</dd>
1869 <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>
1872 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1875 <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>
1896 <td class="msource">
1898 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1904 <tr class="method-row config-row-alt0 expandable">
1905 <td class="micon"><a class="exi" href="#expand"> </a></td>
1909 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
1910 <div class="fixedFont">
1911 <span class="attributes"></span><b class="itemname">prepareData</b>
1913 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
1920 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
1926 Function to override to reformat the data that is sent to<br/>the template for each node.
1933 <dl class="detailList">
1934 <dt class="heading">Parameters:</dt>
1937 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
1940 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
1958 <td class="msource">
1960 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1966 <tr class="method-row config-row-alt1 expandable">
1967 <td class="micon"><a class="exi" href="#expand"> </a></td>
1971 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1972 <div class="fixedFont">
1973 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1982 <div class="short">Removes all listeners for this object</div>
1988 Removes all listeners for this object
2009 <td class="msource">
2011 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2017 <tr class="method-row config-row-alt0 expandable notInherited">
2018 <td class="micon"><a class="exi" href="#expand"> </a></td>
2022 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
2023 <div class="fixedFont">
2024 <span class="attributes"></span><b class="itemname">refresh</b>
2033 <div class="short">Refreshes the view.</div>
2060 <td class="msource">
2068 <tr class="method-row config-row-alt1 expandable">
2069 <td class="micon"><a class="exi" href="#expand"> </a></td>
2073 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
2074 <div class="fixedFont">
2075 <span class="attributes"></span><b class="itemname">refreshNode</b>
2077 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2084 <div class="short">Refresh an individual node.</div>
2090 Refresh an individual node.
2097 <dl class="detailList">
2098 <dt class="heading">Parameters:</dt>
2101 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2122 <td class="msource">
2124 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2130 <tr class="method-row config-row-alt0 expandable">
2131 <td class="micon"><a class="exi" href="#expand"> </a></td>
2135 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2136 <div class="fixedFont">
2137 <span class="attributes"></span><b class="itemname">removeListener</b>
2139 (<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>)
2146 <div class="short">Removes a listener</div>
2159 <dl class="detailList">
2160 <dt class="heading">Parameters:</dt>
2163 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2166 <dd>The type of event to listen for</dd>
2169 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2172 <dd>The handler to remove</dd>
2175 <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>
2178 <dd>(optional) The scope (this object) for the handler</dd>
2196 <td class="msource">
2198 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2204 <tr class="method-row config-row-alt1 expandable">
2205 <td class="micon"><a class="exi" href="#expand"> </a></td>
2209 <a id="Roo.View-method-select" name=".select"></a>
2210 <div class="fixedFont">
2211 <span class="attributes"></span><b class="itemname">select</b>
2213 (<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>)
2220 <div class="short">Selects nodes.</div>
2233 <dl class="detailList">
2234 <dt class="heading">Parameters:</dt>
2237 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2240 <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>
2243 <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>
2246 <dd>(optional) true to keep existing selections</dd>
2249 <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>
2252 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2270 <td class="msource">
2272 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2278 <tr class="method-row config-row-alt0 expandable">
2279 <td class="micon"><a class="exi" href="#expand"> </a></td>
2283 <a id="Roo.View-method-setStore" name=".setStore"></a>
2284 <div class="fixedFont">
2285 <span class="attributes"></span><b class="itemname">setStore</b>
2287 (Store <B><i>store</i></B>)
2294 <div class="short">Changes the data store this view uses and refresh the view.</div>
2300 Changes the data store this view uses and refresh the view.
2307 <dl class="detailList">
2308 <dt class="heading">Parameters:</dt>
2311 <span class="fixedFont">Store</span> <b>store</b>
2332 <td class="msource">
2334 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2340 <tr class="method-row config-row-alt1 expandable notInherited">
2341 <td class="micon"><a class="exi" href="#expand"> </a></td>
2345 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2346 <div class="fixedFont">
2347 <span class="attributes"></span><b class="itemname">sort</b>
2349 (<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>)
2356 <div class="short">Sorts the data for this view and refreshes it.</div>
2362 Sorts the data for this view and refreshes it.
2369 <dl class="detailList">
2370 <dt class="heading">Parameters:</dt>
2373 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2376 <dd>A property on your JSON objects to sort on</dd>
2379 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2382 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2385 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2388 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2406 <td class="msource">
2414 <tr class="method-row config-row-alt0 expandable">
2415 <td class="micon"><a class="exi" href="#expand"> </a></td>
2419 <a id="Roo.util.Observable-method-un" name=".un"></a>
2420 <div class="fixedFont">
2421 <span class="attributes"></span><b class="itemname">un</b>
2423 (<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>)
2430 <div class="short">Removes a listener (shorthand for removeListener)</div>
2436 Removes a listener (shorthand for removeListener)
2443 <dl class="detailList">
2444 <dt class="heading">Parameters:</dt>
2447 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2450 <dd>The type of event to listen for</dd>
2453 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2456 <dd>The handler to remove</dd>
2459 <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>
2462 <dd>(optional) The scope (this object) for the handler</dd>
2480 <td class="msource">
2482 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2491 <!-- ============================== events summary / details ======================== -->
2494 <a id="Roo.JsonView-events"></a>
2503 <table cellspacing="0" class="member-table">
2504 <caption>Events</caption>
2507 <th class="sig-header" colspan="2">Event</th>
2508 <th class="msource-header">Defined By</th>
2517 <tr class="method-row expandable config-row-alt0">
2518 <td class="micon"><a class="exi" href="#expand"> </a></td>
2521 <a id="Roo.View-event-*beforeclick"></a>
2523 <div class="fixedFont">
2524 <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>)
2530 <div class="short">Fires before a click is processed.
2536 Fires before a click is processed. Returns false to cancel the default action.
2542 <dl class="detailList">
2543 <dt class="heading">Parameters:</dt>
2546 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2552 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2555 <dd>The index of the target node</dd>
2558 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2561 <dd>The target node</dd>
2564 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2567 <dd>The raw event object</dd>
2585 <td class="msource">
2586 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2590 <tr class="method-row expandable config-row-alt1 notInherited">
2591 <td class="micon"><a class="exi" href="#expand"> </a></td>
2594 <a id="Roo.JsonView-event-*beforerender"></a>
2596 <div class="fixedFont">
2597 <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>)
2603 <div class="short">Fires before rendering of the downloaded JSON data.
2609 Fires before rendering of the downloaded JSON data.
2615 <dl class="detailList">
2616 <dt class="heading">Parameters:</dt>
2619 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2625 <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>
2628 <dd>The JSON data loaded</dd>
2646 <td class="msource">
2651 <tr class="method-row expandable config-row-alt0">
2652 <td class="micon"><a class="exi" href="#expand"> </a></td>
2655 <a id="Roo.View-event-*beforeselect"></a>
2657 <div class="fixedFont">
2658 <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>)
2664 <div class="short">Fires before a selection is made.
2670 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2676 <dl class="detailList">
2677 <dt class="heading">Parameters:</dt>
2680 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2686 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2689 <dd>The node to be selected</dd>
2692 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2695 <dd>Array of currently selected nodes</dd>
2713 <td class="msource">
2714 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2718 <tr class="method-row expandable config-row-alt1">
2719 <td class="micon"><a class="exi" href="#expand"> </a></td>
2722 <a id="Roo.View-event-*click"></a>
2724 <div class="fixedFont">
2725 <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>)
2731 <div class="short">Fires when a template node is clicked.
2737 Fires when a template node is clicked.
2743 <dl class="detailList">
2744 <dt class="heading">Parameters:</dt>
2747 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2753 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2756 <dd>The index of the target node</dd>
2759 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2762 <dd>The target node</dd>
2765 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2768 <dd>The raw event object</dd>
2786 <td class="msource">
2787 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2791 <tr class="method-row expandable config-row-alt0">
2792 <td class="micon"><a class="exi" href="#expand"> </a></td>
2795 <a id="Roo.View-event-*contextmenu"></a>
2797 <div class="fixedFont">
2798 <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>)
2804 <div class="short">Fires when a template node is right clicked.
2810 Fires when a template node is right clicked.
2816 <dl class="detailList">
2817 <dt class="heading">Parameters:</dt>
2820 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2826 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2829 <dd>The index of the target node</dd>
2832 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2835 <dd>The target node</dd>
2838 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2841 <dd>The raw event object</dd>
2859 <td class="msource">
2860 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2864 <tr class="method-row expandable config-row-alt1">
2865 <td class="micon"><a class="exi" href="#expand"> </a></td>
2868 <a id="Roo.View-event-*dblclick"></a>
2870 <div class="fixedFont">
2871 <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>)
2877 <div class="short">Fires when a template node is double clicked.
2883 Fires when a template node is double clicked.
2889 <dl class="detailList">
2890 <dt class="heading">Parameters:</dt>
2893 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2899 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2902 <dd>The index of the target node</dd>
2905 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2908 <dd>The target node</dd>
2911 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2914 <dd>The raw event object</dd>
2932 <td class="msource">
2933 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2937 <tr class="method-row expandable config-row-alt0 notInherited">
2938 <td class="micon"><a class="exi" href="#expand"> </a></td>
2941 <a id="Roo.JsonView-event-*load"></a>
2943 <div class="fixedFont">
2944 <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>)
2950 <div class="short">Fires when data is loaded.
2956 Fires when data is loaded.
2962 <dl class="detailList">
2963 <dt class="heading">Parameters:</dt>
2966 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2972 <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>
2975 <dd>The JSON data loaded</dd>
2978 <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>
2981 <dd>The raw Connect response object</dd>
2999 <td class="msource">
3004 <tr class="method-row expandable config-row-alt1 notInherited">
3005 <td class="micon"><a class="exi" href="#expand"> </a></td>
3008 <a id="Roo.JsonView-event-*loadexception"></a>
3010 <div class="fixedFont">
3011 <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>)
3017 <div class="short">Fires when loading fails.
3023 Fires when loading fails.
3029 <dl class="detailList">
3030 <dt class="heading">Parameters:</dt>
3033 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3039 <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>
3042 <dd>The raw Connect response object</dd>
3060 <td class="msource">
3065 <tr class="method-row expandable config-row-alt0">
3066 <td class="micon"><a class="exi" href="#expand"> </a></td>
3069 <a id="Roo.View-event-*selectionchange"></a>
3071 <div class="fixedFont">
3072 <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>)
3078 <div class="short">Fires when the selected nodes change.
3084 Fires when the selected nodes change.
3090 <dl class="detailList">
3091 <dt class="heading">Parameters:</dt>
3094 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3100 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3103 <dd>Array of the selected nodes</dd>
3121 <td class="msource">
3122 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3133 <!-- ============================== footer ================================= -->
3134 <div class="fineprint" style="clear:both">
3136 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Mon Jul 26 2010 16:05:07 GMT+0800 (HKT)
3138 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>