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/> tpl: '<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-dataName" name=".dataName"></a>
133 <div class="fixedFont">
134 <b class="itemname">dataName</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
140 <div class="short">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
144 <div class="long">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</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">
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.View-cfg-emptyText" name=".emptyText"></a>
193 <div class="fixedFont">
194 <b class="itemname">emptyText</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
200 <div class="short">The empty text to show when nothing is loaded.</div>
204 <div class="long">The empty text to show when nothing is loaded.</div>
212 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</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.util.Observable-cfg-listeners" name=".listeners"></a>
223 <div class="fixedFont">
224 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
230 <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>
234 <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>
242 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</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-multiSelect" name=".multiSelect"></a>
253 <div class="fixedFont">
254 <b class="itemname">multiSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
260 <div class="short">Allow multiple selection</div>
264 <div class="long">Allow multiple selection</div>
272 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
278 <tr class="config-row expandable config-row-alt1">
279 <td class="micon"><a class="exi" href="#expand"> </a></td>
282 <a id="Roo.View-cfg-selectedClass" name=".selectedClass"></a>
283 <div class="fixedFont">
284 <b class="itemname">selectedClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
290 <div class="short">The css class to add to selected nodes</div>
294 <div class="long">The css class to add to selected nodes</div>
302 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
308 <tr class="config-row expandable config-row-alt0">
309 <td class="micon"><a class="exi" href="#expand"> </a></td>
312 <a id="Roo.View-cfg-singleSelect" name=".singleSelect"></a>
313 <div class="fixedFont">
314 <b class="itemname">singleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
320 <div class="short">Allow single selection</div>
324 <div class="long">Allow single selection</div>
332 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
338 <tr class="config-row expandable config-row-alt1">
339 <td class="micon"><a class="exi" href="#expand"> </a></td>
342 <a id="Roo.View-cfg-store" name=".store"></a>
343 <div class="fixedFont">
344 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
350 <div class="short">Data store to load data from.</div>
354 <div class="long">Data store to load data from.</div>
362 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
368 <tr class="config-row expandable config-row-alt0">
369 <td class="micon"><a class="exi" href="#expand"> </a></td>
372 <a id="Roo.View-cfg-toggleSelect" name=".toggleSelect"></a>
373 <div class="fixedFont">
374 <b class="itemname">toggleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
380 <div class="short">- selecting</div>
384 <div class="long">- selecting</div>
392 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
398 <tr class="config-row expandable config-row-alt1">
399 <td class="micon"><a class="exi" href="#expand"> </a></td>
402 <a id="Roo.View-cfg-tpl" name=".tpl"></a>
403 <div class="fixedFont">
404 <b class="itemname">tpl</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>|<a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
410 <div class="short">The template used by this View</div>
414 <div class="long">The template used by this View</div>
422 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
438 <!-- ============================== public properties ==================== -->
442 <a id="Roo.JsonView-props"></a>
448 <table cellspacing="0" class="member-table">
449 <caption class="Empty">Public Properties - Has None</caption>
455 <!-- ============================== methods summary / details ======================== -->
458 <a id="Roo.JsonView-methods"></a>
459 <!-- constructor?? -->
466 <!-- then dynamics first -->
473 <table cellspacing="0" class="member-table">
474 <caption>Public Methods</caption>
476 <th class="sig-header" colspan="2">Method</th>
477 <th class="msource-header">Defined By</th>
487 <tr class="method-row config-row-alt0 expandable notInherited">
488 <td class="micon"><a class="exi" href="#expand"> </a></td>
492 <a id="Roo-method-JsonView" name=".JsonView"></a>
493 <div class="fixedFont">
494 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
496 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
504 <div class="short">Create a new Roo.JsonView</div>
511 Create a new Roo.JsonView
514 <dl class="detailList">
515 <dt class="heading">Parameters:</dt>
518 <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>
521 <dd>The config object</dd>
545 <tr class="method-row config-row-alt1 expandable">
546 <td class="micon"><a class="exi" href="#expand"> </a></td>
550 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
551 <div class="fixedFont">
552 <span class="attributes"></span><b class="itemname">addEvents</b>
554 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
561 <div class="short">Used to define events on this Observable</div>
567 Used to define events on this Observable
574 <dl class="detailList">
575 <dt class="heading">Parameters:</dt>
578 <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>
581 <dd>The object with the events defined</dd>
601 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
607 <tr class="method-row config-row-alt0 expandable">
608 <td class="micon"><a class="exi" href="#expand"> </a></td>
612 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
613 <div class="fixedFont">
614 <span class="attributes"></span><b class="itemname">addListener</b>
616 (<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>)
623 <div class="short">Appends an event handler to this component</div>
629 Appends an event handler to this component
636 <dl class="detailList">
637 <dt class="heading">Parameters:</dt>
640 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
643 <dd>The type of event to listen for</dd>
646 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
649 <dd>The method the event invokes</dd>
652 <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>
655 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
658 <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>
661 <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>
681 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
687 <tr class="method-row config-row-alt1 expandable notInherited">
688 <td class="micon"><a class="exi" href="#expand"> </a></td>
692 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
693 <div class="fixedFont">
694 <span class="attributes"></span><b class="itemname">clearFilter</b>
703 <div class="short">Clears the current filter.</div>
709 Clears the current filter.
738 <tr class="method-row config-row-alt0 expandable">
739 <td class="micon"><a class="exi" href="#expand"> </a></td>
743 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
744 <div class="fixedFont">
745 <span class="attributes"></span><b class="itemname">clearSelections</b>
747 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
754 <div class="short">Clear all selections</div>
767 <dl class="detailList">
768 <dt class="heading">Parameters:</dt>
771 <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>
774 <dd>(optional) true to skip firing of the selectionchange event</dd>
794 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
800 <tr class="method-row config-row-alt1 expandable notInherited">
801 <td class="micon"><a class="exi" href="#expand"> </a></td>
805 <a id="Roo.JsonView-method-filter" name=".filter"></a>
806 <div class="fixedFont">
807 <span class="attributes"></span><b class="itemname">filter</b>
809 (<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>)
816 <div class="short">Filter the data by a specific property.</div>
822 Filter the data by a specific property.
829 <dl class="detailList">
830 <dt class="heading">Parameters:</dt>
833 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
836 <dd>A property on your JSON objects</dd>
839 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
842 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
868 <tr class="method-row config-row-alt0 expandable notInherited">
869 <td class="micon"><a class="exi" href="#expand"> </a></td>
873 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
874 <div class="fixedFont">
875 <span class="attributes"></span><b class="itemname">filterBy</b>
877 (<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>)
884 <div class="short">Filter by a function.</div>
890 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.
897 <dl class="detailList">
898 <dt class="heading">Parameters:</dt>
901 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
907 <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>
910 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
936 <tr class="method-row config-row-alt1 expandable">
937 <td class="micon"><a class="exi" href="#expand"> </a></td>
941 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
942 <div class="fixedFont">
943 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
945 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
951 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
960 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
966 Returns the template node the passed child belongs to or null if it doesn't belong to one.
973 <dl class="detailList">
974 <dt class="heading">Parameters:</dt>
977 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
988 <dl class="detailList">
989 <dt class="heading">Returns:</dt>
991 <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>
1005 <td class="msource">
1007 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1013 <tr class="method-row config-row-alt0 expandable">
1014 <td class="micon"><a class="exi" href="#expand"> </a></td>
1018 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1019 <div class="fixedFont">
1020 <span class="attributes"></span><b class="itemname">fireEvent</b>
1022 (<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>)
1028 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1037 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1043 Fires the specified event with the passed parameters (minus the event name).
1050 <dl class="detailList">
1051 <dt class="heading">Parameters:</dt>
1054 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1060 <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>
1063 <dd>Variable number of parameters are passed to handlers</dd>
1071 <dl class="detailList">
1072 <dt class="heading">Returns:</dt>
1074 <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>
1088 <td class="msource">
1090 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1096 <tr class="method-row config-row-alt1 expandable notInherited">
1097 <td class="micon"><a class="exi" href="#expand"> </a></td>
1101 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
1102 <div class="fixedFont">
1103 <span class="attributes"></span><b class="itemname">getCount</b>
1111 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1120 <div class="short">Get the number of records in the current JSON dataset</div>
1126 Get the number of records in the current JSON dataset
1137 <dl class="detailList">
1138 <dt class="heading">Returns:</dt>
1140 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1154 <td class="msource">
1162 <tr class="method-row config-row-alt0 expandable">
1163 <td class="micon"><a class="exi" href="#expand"> </a></td>
1167 <a id="Roo.View-method-getEl" name=".getEl"></a>
1168 <div class="fixedFont">
1169 <span class="attributes"></span><b class="itemname">getEl</b>
1177 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
1186 <div class="short">Returns the element this view is bound to.</div>
1192 Returns the element this view is bound to.
1203 <dl class="detailList">
1204 <dt class="heading">Returns:</dt>
1206 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1220 <td class="msource">
1222 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1228 <tr class="method-row config-row-alt1 expandable">
1229 <td class="micon"><a class="exi" href="#expand"> </a></td>
1233 <a id="Roo.View-method-getNode" name=".getNode"></a>
1234 <div class="fixedFont">
1235 <span class="attributes"></span><b class="itemname">getNode</b>
1237 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1243 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1252 <div class="short">Gets a template node.</div>
1258 Gets a template node.
1265 <dl class="detailList">
1266 <dt class="heading">Parameters:</dt>
1269 <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>
1272 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1280 <dl class="detailList">
1281 <dt class="heading">Returns:</dt>
1283 <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>
1297 <td class="msource">
1299 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1305 <tr class="method-row config-row-alt0 expandable notInherited">
1306 <td class="micon"><a class="exi" href="#expand"> </a></td>
1310 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1311 <div class="fixedFont">
1312 <span class="attributes"></span><b class="itemname">getNodeData</b>
1314 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1320 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1329 <div class="short">Returns the JSON object for the specified node(s)</div>
1335 Returns the JSON object for the specified node(s)
1342 <dl class="detailList">
1343 <dt class="heading">Parameters:</dt>
1346 <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>
1349 <dd>The node or an array of nodes</dd>
1357 <dl class="detailList">
1358 <dt class="heading">Returns:</dt>
1360 <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>
1374 <td class="msource">
1382 <tr class="method-row config-row-alt1 expandable">
1383 <td class="micon"><a class="exi" href="#expand"> </a></td>
1387 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1388 <div class="fixedFont">
1389 <span class="attributes"></span><b class="itemname">getNodes</b>
1391 (<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>)
1397 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1406 <div class="short">Gets a range template nodes.</div>
1412 Gets a range template nodes.
1419 <dl class="detailList">
1420 <dt class="heading">Parameters:</dt>
1423 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1429 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1440 <dl class="detailList">
1441 <dt class="heading">Returns:</dt>
1443 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1457 <td class="msource">
1459 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1465 <tr class="method-row config-row-alt0 expandable">
1466 <td class="micon"><a class="exi" href="#expand"> </a></td>
1470 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1471 <div class="fixedFont">
1472 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1480 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1489 <div class="short">Get the indexes of the selected nodes.</div>
1495 Get the indexes of the selected nodes.
1506 <dl class="detailList">
1507 <dt class="heading">Returns:</dt>
1509 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1523 <td class="msource">
1525 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1531 <tr class="method-row config-row-alt1 expandable">
1532 <td class="micon"><a class="exi" href="#expand"> </a></td>
1536 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1537 <div class="fixedFont">
1538 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1546 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1555 <div class="short">Get the currently selected nodes.</div>
1561 Get the currently selected nodes.
1572 <dl class="detailList">
1573 <dt class="heading">Returns:</dt>
1575 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1589 <td class="msource">
1591 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1597 <tr class="method-row config-row-alt0 expandable">
1598 <td class="micon"><a class="exi" href="#expand"> </a></td>
1602 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1603 <div class="fixedFont">
1604 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1612 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1621 <div class="short">Get the number of selected nodes.</div>
1627 Get the number of selected nodes.
1638 <dl class="detailList">
1639 <dt class="heading">Returns:</dt>
1641 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1655 <td class="msource">
1657 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1663 <tr class="method-row config-row-alt1 expandable">
1664 <td class="micon"><a class="exi" href="#expand"> </a></td>
1668 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1669 <div class="fixedFont">
1670 <span class="attributes"></span><b class="itemname">hasListener</b>
1672 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1678 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1687 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1693 Checks to see if this object has any listeners for a specified event
1700 <dl class="detailList">
1701 <dt class="heading">Parameters:</dt>
1704 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1707 <dd>The name of the event to check for</dd>
1715 <dl class="detailList">
1716 <dt class="heading">Returns:</dt>
1718 <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>
1732 <td class="msource">
1734 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1740 <tr class="method-row config-row-alt0 expandable">
1741 <td class="micon"><a class="exi" href="#expand"> </a></td>
1745 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1746 <div class="fixedFont">
1747 <span class="attributes"></span><b class="itemname">indexOf</b>
1749 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1755 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1764 <div class="short">Finds the index of the passed node</div>
1770 Finds the index of the passed node
1777 <dl class="detailList">
1778 <dt class="heading">Parameters:</dt>
1781 <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>
1784 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1792 <dl class="detailList">
1793 <dt class="heading">Returns:</dt>
1795 <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>
1809 <td class="msource">
1811 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1817 <tr class="method-row config-row-alt1 expandable">
1818 <td class="micon"><a class="exi" href="#expand"> </a></td>
1822 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1823 <div class="fixedFont">
1824 <span class="attributes"></span><b class="itemname">isSelected</b>
1826 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1832 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1841 <div class="short">Returns true if the passed node is selected</div>
1847 Returns true if the passed node is selected
1854 <dl class="detailList">
1855 <dt class="heading">Parameters:</dt>
1858 <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>
1861 <dd>The node or node index</dd>
1869 <dl class="detailList">
1870 <dt class="heading">Returns:</dt>
1872 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1886 <td class="msource">
1888 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1894 <tr class="method-row config-row-alt0 expandable notInherited">
1895 <td class="micon"><a class="exi" href="#expand"> </a></td>
1899 <a id="Roo.JsonView-method-load" name=".load"></a>
1900 <div class="fixedFont">
1901 <span class="attributes"></span><b class="itemname">load</b>
1903 (<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>)
1910 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
1916 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.
1923 <dl class="detailList">
1924 <dt class="heading">Parameters:</dt>
1927 <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>
1930 <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>
1933 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
1936 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
1939 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
1942 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
1945 <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>
1948 <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>
1966 <td class="msource">
1974 <tr class="method-row config-row-alt1 expandable">
1975 <td class="micon"><a class="exi" href="#expand"> </a></td>
1979 <a id="Roo.util.Observable-method-on" name=".on"></a>
1980 <div class="fixedFont">
1981 <span class="attributes"></span><b class="itemname">on</b>
1983 (<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>)
1990 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1996 Appends an event handler to this element (shorthand for addListener)
2003 <dl class="detailList">
2004 <dt class="heading">Parameters:</dt>
2007 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2010 <dd>The type of event to listen for</dd>
2013 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2016 <dd>The method the event invokes</dd>
2019 <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>
2022 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
2025 <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>
2046 <td class="msource">
2048 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2054 <tr class="method-row config-row-alt0 expandable">
2055 <td class="micon"><a class="exi" href="#expand"> </a></td>
2059 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
2060 <div class="fixedFont">
2061 <span class="attributes"></span><b class="itemname">prepareData</b>
2063 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
2070 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
2076 Function to override to reformat the data that is sent to<br/>the template for each node.<br/>DEPRICATED - use the preparedata event handler.
2083 <dl class="detailList">
2084 <dt class="heading">Parameters:</dt>
2087 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
2090 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
2108 <td class="msource">
2110 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2116 <tr class="method-row config-row-alt1 expandable">
2117 <td class="micon"><a class="exi" href="#expand"> </a></td>
2121 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2122 <div class="fixedFont">
2123 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2132 <div class="short">Removes all listeners for this object</div>
2138 Removes all listeners for this object
2159 <td class="msource">
2161 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2167 <tr class="method-row config-row-alt0 expandable notInherited">
2168 <td class="micon"><a class="exi" href="#expand"> </a></td>
2172 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
2173 <div class="fixedFont">
2174 <span class="attributes"></span><b class="itemname">refresh</b>
2183 <div class="short">Refreshes the view.</div>
2210 <td class="msource">
2218 <tr class="method-row config-row-alt1 expandable">
2219 <td class="micon"><a class="exi" href="#expand"> </a></td>
2223 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
2224 <div class="fixedFont">
2225 <span class="attributes"></span><b class="itemname">refreshNode</b>
2227 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2234 <div class="short">Refresh an individual node.</div>
2240 Refresh an individual node.
2247 <dl class="detailList">
2248 <dt class="heading">Parameters:</dt>
2251 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</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-alt0 expandable">
2281 <td class="micon"><a class="exi" href="#expand"> </a></td>
2285 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2286 <div class="fixedFont">
2287 <span class="attributes"></span><b class="itemname">removeListener</b>
2289 (<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>)
2296 <div class="short">Removes a listener</div>
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>eventName</b>
2316 <dd>The type of event to listen for</dd>
2319 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2322 <dd>The handler to remove</dd>
2325 <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>
2328 <dd>(optional) The scope (this object) for the handler</dd>
2346 <td class="msource">
2348 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2354 <tr class="method-row config-row-alt1 expandable">
2355 <td class="micon"><a class="exi" href="#expand"> </a></td>
2359 <a id="Roo.View-method-select" name=".select"></a>
2360 <div class="fixedFont">
2361 <span class="attributes"></span><b class="itemname">select</b>
2363 (<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>)
2370 <div class="short">Selects nodes.</div>
2383 <dl class="detailList">
2384 <dt class="heading">Parameters:</dt>
2387 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2390 <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>
2393 <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>
2396 <dd>(optional) true to keep existing selections</dd>
2399 <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>
2402 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2420 <td class="msource">
2422 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2428 <tr class="method-row config-row-alt0 expandable">
2429 <td class="micon"><a class="exi" href="#expand"> </a></td>
2433 <a id="Roo.View-method-setStore" name=".setStore"></a>
2434 <div class="fixedFont">
2435 <span class="attributes"></span><b class="itemname">setStore</b>
2437 (Store <B><i>store</i></B>)
2444 <div class="short">Changes the data store this view uses and refresh the view.</div>
2450 Changes the data store this view uses and refresh the view.
2457 <dl class="detailList">
2458 <dt class="heading">Parameters:</dt>
2461 <span class="fixedFont">Store</span> <b>store</b>
2482 <td class="msource">
2484 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2490 <tr class="method-row config-row-alt1 expandable notInherited">
2491 <td class="micon"><a class="exi" href="#expand"> </a></td>
2495 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2496 <div class="fixedFont">
2497 <span class="attributes"></span><b class="itemname">sort</b>
2499 (<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>)
2506 <div class="short">Sorts the data for this view and refreshes it.</div>
2512 Sorts the data for this view and refreshes it.
2519 <dl class="detailList">
2520 <dt class="heading">Parameters:</dt>
2523 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2526 <dd>A property on your JSON objects to sort on</dd>
2529 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2532 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2535 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2538 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2556 <td class="msource">
2564 <tr class="method-row config-row-alt0 expandable">
2565 <td class="micon"><a class="exi" href="#expand"> </a></td>
2569 <a id="Roo.util.Observable-method-un" name=".un"></a>
2570 <div class="fixedFont">
2571 <span class="attributes"></span><b class="itemname">un</b>
2573 (<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>)
2580 <div class="short">Removes a listener (shorthand for removeListener)</div>
2586 Removes a listener (shorthand for removeListener)
2593 <dl class="detailList">
2594 <dt class="heading">Parameters:</dt>
2597 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2600 <dd>The type of event to listen for</dd>
2603 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2606 <dd>The handler to remove</dd>
2609 <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>
2612 <dd>(optional) The scope (this object) for the handler</dd>
2630 <td class="msource">
2632 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2638 <tr class="method-row config-row-alt1 expandable">
2639 <td class="micon"><a class="exi" href="#expand"> </a></td>
2643 <a id="Roo.View-method-unselect" name=".unselect"></a>
2644 <div class="fixedFont">
2645 <span class="attributes"></span><b class="itemname">unselect</b>
2647 (<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>)
2654 <div class="short">Unselects nodes.</div>
2667 <dl class="detailList">
2668 <dt class="heading">Parameters:</dt>
2671 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2674 <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>
2677 <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>
2680 <dd>(optional) true IGNORED (for campatibility with select)</dd>
2683 <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>
2686 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2704 <td class="msource">
2706 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2715 <!-- ============================== events summary / details ======================== -->
2718 <a id="Roo.JsonView-events"></a>
2727 <table cellspacing="0" class="member-table">
2728 <caption>Events</caption>
2731 <th class="sig-header" colspan="2">Event</th>
2732 <th class="msource-header">Defined By</th>
2741 <tr class="method-row expandable config-row-alt0">
2742 <td class="micon"><a class="exi" href="#expand"> </a></td>
2745 <a id="Roo.View-event-*beforeclick"></a>
2747 <div class="fixedFont">
2748 <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>)
2754 <div class="short">Fires before a click is processed.
2760 Fires before a click is processed. Returns false to cancel the default action.
2766 <dl class="detailList">
2767 <dt class="heading">Parameters:</dt>
2770 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2776 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2779 <dd>The index of the target node</dd>
2782 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2785 <dd>The target node</dd>
2788 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2791 <dd>The raw event object</dd>
2809 <td class="msource">
2810 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2814 <tr class="method-row expandable config-row-alt1 notInherited">
2815 <td class="micon"><a class="exi" href="#expand"> </a></td>
2818 <a id="Roo.JsonView-event-*beforerender"></a>
2820 <div class="fixedFont">
2821 <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>)
2827 <div class="short">Fires before rendering of the downloaded JSON data.
2833 Fires before rendering of the downloaded JSON data.
2839 <dl class="detailList">
2840 <dt class="heading">Parameters:</dt>
2843 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2849 <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>
2852 <dd>The JSON data loaded</dd>
2870 <td class="msource">
2875 <tr class="method-row expandable config-row-alt0">
2876 <td class="micon"><a class="exi" href="#expand"> </a></td>
2879 <a id="Roo.View-event-*beforeselect"></a>
2881 <div class="fixedFont">
2882 <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>)
2888 <div class="short">Fires before a selection is made.
2894 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2900 <dl class="detailList">
2901 <dt class="heading">Parameters:</dt>
2904 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2910 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2913 <dd>The node to be selected</dd>
2916 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2919 <dd>Array of currently selected nodes</dd>
2937 <td class="msource">
2938 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2942 <tr class="method-row expandable config-row-alt1">
2943 <td class="micon"><a class="exi" href="#expand"> </a></td>
2946 <a id="Roo.View-event-*click"></a>
2948 <div class="fixedFont">
2949 <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>)
2955 <div class="short">Fires when a template node is clicked.
2961 Fires when a template node is clicked.
2967 <dl class="detailList">
2968 <dt class="heading">Parameters:</dt>
2971 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2977 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2980 <dd>The index of the target node</dd>
2983 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2986 <dd>The target node</dd>
2989 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2992 <dd>The raw event object</dd>
3010 <td class="msource">
3011 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3015 <tr class="method-row expandable config-row-alt0">
3016 <td class="micon"><a class="exi" href="#expand"> </a></td>
3019 <a id="Roo.View-event-*contextmenu"></a>
3021 <div class="fixedFont">
3022 <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>)
3028 <div class="short">Fires when a template node is right clicked.
3034 Fires when a template node is right clicked.
3040 <dl class="detailList">
3041 <dt class="heading">Parameters:</dt>
3044 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3050 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3053 <dd>The index of the target node</dd>
3056 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3059 <dd>The target node</dd>
3062 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3065 <dd>The raw event object</dd>
3083 <td class="msource">
3084 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3088 <tr class="method-row expandable config-row-alt1">
3089 <td class="micon"><a class="exi" href="#expand"> </a></td>
3092 <a id="Roo.View-event-*dblclick"></a>
3094 <div class="fixedFont">
3095 <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>)
3101 <div class="short">Fires when a template node is double clicked.
3107 Fires when a template node is double clicked.
3113 <dl class="detailList">
3114 <dt class="heading">Parameters:</dt>
3117 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3123 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
3126 <dd>The index of the target node</dd>
3129 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
3132 <dd>The target node</dd>
3135 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
3138 <dd>The raw event object</dd>
3156 <td class="msource">
3157 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3161 <tr class="method-row expandable config-row-alt0 notInherited">
3162 <td class="micon"><a class="exi" href="#expand"> </a></td>
3165 <a id="Roo.JsonView-event-*load"></a>
3167 <div class="fixedFont">
3168 <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>)
3174 <div class="short">Fires when data is loaded.
3180 Fires when data is loaded.
3186 <dl class="detailList">
3187 <dt class="heading">Parameters:</dt>
3190 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3196 <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>
3199 <dd>The JSON data loaded</dd>
3202 <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>
3205 <dd>The raw Connect response object</dd>
3223 <td class="msource">
3228 <tr class="method-row expandable config-row-alt1 notInherited">
3229 <td class="micon"><a class="exi" href="#expand"> </a></td>
3232 <a id="Roo.JsonView-event-*loadexception"></a>
3234 <div class="fixedFont">
3235 <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>)
3241 <div class="short">Fires when loading fails.
3247 Fires when loading fails.
3253 <dl class="detailList">
3254 <dt class="heading">Parameters:</dt>
3257 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3263 <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>
3266 <dd>The raw Connect response object</dd>
3284 <td class="msource">
3289 <tr class="method-row expandable config-row-alt0">
3290 <td class="micon"><a class="exi" href="#expand"> </a></td>
3293 <a id="Roo.View-event-*preparedata"></a>
3295 <div class="fixedFont">
3296 <b class="itemname">preparedata</b> (<a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</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>)
3302 <div class="short">Fires on every row to render, to allow you to change the data.
3308 Fires on every row to render, to allow you to change the data.
3314 <dl class="detailList">
3315 <dt class="heading">Parameters:</dt>
3318 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3324 <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>
3327 <dd>to be rendered (change this)</dd>
3345 <td class="msource">
3346 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3350 <tr class="method-row expandable config-row-alt1">
3351 <td class="micon"><a class="exi" href="#expand"> </a></td>
3354 <a id="Roo.View-event-*selectionchange"></a>
3356 <div class="fixedFont">
3357 <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>)
3363 <div class="short">Fires when the selected nodes change.
3369 Fires when the selected nodes change.
3375 <dl class="detailList">
3376 <dt class="heading">Parameters:</dt>
3379 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3385 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3388 <dd>Array of the selected nodes</dd>
3406 <td class="msource">
3407 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3418 <!-- ============================== footer ================================= -->
3419 <div class="fineprint" style="clear:both">
3421 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Wed May 02 2012 11:27:32 GMT+0800 (HKT)
3423 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>