1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.JsonView</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.JsonView-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.JsonView-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.JsonView-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.JsonView-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
48 <img src="../../images/default/s.gif" height="1" width="40"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.JsonView
53 <!-- ============================== class title / details ============================ -->
56 <h1 class="classTitle">
61 <table cellspacing="0" class="class-summary-table">
63 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
65 <tr><td class="label">Defined In:</td><td class="hd-info">
67 <a href="./src/Roo_JsonView.js.html">Roo/JsonView.js</a>.
70 <tr><td class="label">Class:</td><td class="hd-info">JsonView</td></tr>
75 <tr><td class="label">Extends:</td><td class="hd-info">
76 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
84 <!-- ============================== class summary ========================== -->
85 <div class="description">
86 Shortcut class to create a JSON + {<b>link</b> Roo.UpdateManager} template view. Usage:<br/><pre><code><br/>var view = new Roo.JsonView({<br/> container: "my-element",<br/> template: '<div id="{id}">{foo} - {bar}</div>', // auto create template<br/> multiSelect: true, <br/> jsonRoot: "data" <br/>});<br/><br/>// listen for node click?<br/>view.on("click", function(vw, index, node, e){<br/> alert('Node "' + node.id + '" at index: ' + index + " was clicked.");<br/>});<br/><br/>// direct load of JSON data<br/>view.load("foobar.php");<br/><br/>// Example from my blog list<br/>var tpl = new Roo.Template(<br/> '<div class="entry">' +<br/> '<a class="entry-title" href="{link}">{title}</a>' +<br/> "<h4>{date} by {author} | {comments} Comments</h4>{description}" +<br/> "</div><hr />"<br/>);<br/><br/>var moreView = new Roo.JsonView({<br/> container : "entry-list", <br/> template : tpl,<br/> jsonRoot: "posts"<br/>});<br/>moreView.on("beforerender", this.sortEntries, this);<br/>moreView.load({<br/> url: "/blog/get-posts.php",<br/> params: "allposts=true",<br/> text: "Loading Blog Entries..."<br/>});<br/></code></pre><br/><br/>Note: old code is supported with arguments : (container, template, config)
90 <!-- ============================== Class comment block... ========================== -->
92 <div class="comments">
93 <b>Class Comments / Notes</B> =>
94 <u onclick="parent.CommentDialog.showCommentId = 'Roo.JsonView';">[Add Your comment/notes about this class]</u>
96 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
97 src="/blog.php/GtkDjsComments/Roo.JsonView.html"></iframe>
102 <!-- ============================== config options ========================== -->
107 <div class="hr"></div>
108 <a id="Roo.JsonView-configs"></a>
114 <table cellspacing="0" class="member-table">
115 <caption>Config Options (Usually are also Properties)</caption>
119 <th class="sig-header" colspan="2">Options</th>
121 <th class="msource-header">Defined By</th>
128 <tr class="config-row expandable config-row-alt0">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.View-cfg-el" name=".el"></a>
133 <div class="fixedFont">
134 <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>
140 <div class="short">The container element.</div>
144 <div class="long">The container element.</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-emptyText" name=".emptyText"></a>
163 <div class="fixedFont">
164 <b class="itemname">emptyText</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
170 <div class="short">The empty text to show when nothing is loaded.</div>
174 <div class="long">The empty text to show when nothing is loaded.</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-selectedClass" name=".selectedClass"></a>
223 <div class="fixedFont">
224 <b class="itemname">selectedClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
230 <div class="short">The css class to add to selected nodes</div>
234 <div class="long">The css class to add to selected nodes</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-store" name=".store"></a>
253 <div class="fixedFont">
254 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
260 <div class="short">Data store to load data from.</div>
264 <div class="long">Data store to load data from.</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-tpl" name=".tpl"></a>
283 <div class="fixedFont">
284 <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>
290 <div class="short">The template used by this View</div>
294 <div class="long">The template used by this View</div>
302 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
318 <!-- ============================== public properties ==================== -->
322 <a id="Roo.JsonView-props"></a>
328 <table cellspacing="0" class="member-table">
329 <caption class="Empty">Public Properties - Has None</caption>
335 <!-- ============================== methods summary / details ======================== -->
338 <a id="Roo.JsonView-methods"></a>
339 <!-- constructor?? -->
346 <!-- then dynamics first -->
353 <table cellspacing="0" class="member-table">
354 <caption>Public Methods</caption>
356 <th class="sig-header" colspan="2">Method</th>
357 <th class="msource-header">Defined By</th>
367 <tr class="method-row config-row-alt0 expandable notInherited">
368 <td class="micon"><a class="exi" href="#expand"> </a></td>
372 <a id="Roo-method-JsonView" name=".JsonView"></a>
373 <div class="fixedFont">
374 <span class="attributes">new <B>Roo.</B></span><b class="itemname">JsonView</b>
376 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
384 <div class="short">Create a new Roo.JsonView</div>
391 Create a new Roo.JsonView
394 <dl class="detailList">
395 <dt class="heading">Parameters:</dt>
398 <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>
401 <dd>The config object</dd>
425 <tr class="method-row config-row-alt1 expandable">
426 <td class="micon"><a class="exi" href="#expand"> </a></td>
430 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
431 <div class="fixedFont">
432 <span class="attributes"></span><b class="itemname">addEvents</b>
434 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
441 <div class="short">Used to define events on this Observable</div>
447 Used to define events on this Observable
454 <dl class="detailList">
455 <dt class="heading">Parameters:</dt>
458 <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>
461 <dd>The object with the events defined</dd>
481 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
487 <tr class="method-row config-row-alt0 expandable">
488 <td class="micon"><a class="exi" href="#expand"> </a></td>
492 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
493 <div class="fixedFont">
494 <span class="attributes"></span><b class="itemname">addListener</b>
496 (<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>)
503 <div class="short">Appends an event handler to this component</div>
509 Appends an event handler to this component
516 <dl class="detailList">
517 <dt class="heading">Parameters:</dt>
520 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
523 <dd>The type of event to listen for</dd>
526 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
529 <dd>The method the event invokes</dd>
532 <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>
535 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
538 <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>
541 <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>
561 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
567 <tr class="method-row config-row-alt1 expandable notInherited">
568 <td class="micon"><a class="exi" href="#expand"> </a></td>
572 <a id="Roo.JsonView-method-clearFilter" name=".clearFilter"></a>
573 <div class="fixedFont">
574 <span class="attributes"></span><b class="itemname">clearFilter</b>
583 <div class="short">Clears the current filter.</div>
589 Clears the current filter.
618 <tr class="method-row config-row-alt0 expandable">
619 <td class="micon"><a class="exi" href="#expand"> </a></td>
623 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
624 <div class="fixedFont">
625 <span class="attributes"></span><b class="itemname">clearSelections</b>
627 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
634 <div class="short">Clear all selections</div>
647 <dl class="detailList">
648 <dt class="heading">Parameters:</dt>
651 <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>
654 <dd>(optional) true to skip firing of the selectionchange event</dd>
674 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
680 <tr class="method-row config-row-alt1 expandable notInherited">
681 <td class="micon"><a class="exi" href="#expand"> </a></td>
685 <a id="Roo.JsonView-method-filter" name=".filter"></a>
686 <div class="fixedFont">
687 <span class="attributes"></span><b class="itemname">filter</b>
689 (<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>)
696 <div class="short">Filter the data by a specific property.</div>
702 Filter the data by a specific property.
709 <dl class="detailList">
710 <dt class="heading">Parameters:</dt>
713 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
716 <dd>A property on your JSON objects</dd>
719 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span> <b>value</b>
722 <dd>Either string that the property values<br/>should start with, or a RegExp to test against the property</dd>
748 <tr class="method-row config-row-alt0 expandable notInherited">
749 <td class="micon"><a class="exi" href="#expand"> </a></td>
753 <a id="Roo.JsonView-method-filterBy" name=".filterBy"></a>
754 <div class="fixedFont">
755 <span class="attributes"></span><b class="itemname">filterBy</b>
757 (<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>)
764 <div class="short">Filter by a function.</div>
770 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.
777 <dl class="detailList">
778 <dt class="heading">Parameters:</dt>
781 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
787 <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>
790 <dd>(optional) The scope of the function (defaults to this JsonView)</dd>
816 <tr class="method-row config-row-alt1 expandable">
817 <td class="micon"><a class="exi" href="#expand"> </a></td>
821 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
822 <div class="fixedFont">
823 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
825 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
831 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
840 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
846 Returns the template node the passed child belongs to or null if it doesn't belong to one.
853 <dl class="detailList">
854 <dt class="heading">Parameters:</dt>
857 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
868 <dl class="detailList">
869 <dt class="heading">Returns:</dt>
871 <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>
887 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
893 <tr class="method-row config-row-alt0 expandable">
894 <td class="micon"><a class="exi" href="#expand"> </a></td>
898 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
899 <div class="fixedFont">
900 <span class="attributes"></span><b class="itemname">fireEvent</b>
902 (<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>)
908 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
917 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
923 Fires the specified event with the passed parameters (minus the event name).
930 <dl class="detailList">
931 <dt class="heading">Parameters:</dt>
934 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
940 <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>
943 <dd>Variable number of parameters are passed to handlers</dd>
951 <dl class="detailList">
952 <dt class="heading">Returns:</dt>
954 <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>
970 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
976 <tr class="method-row config-row-alt1 expandable notInherited">
977 <td class="micon"><a class="exi" href="#expand"> </a></td>
981 <a id="Roo.JsonView-method-getCount" name=".getCount"></a>
982 <div class="fixedFont">
983 <span class="attributes"></span><b class="itemname">getCount</b>
991 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1000 <div class="short">Get the number of records in the current JSON dataset</div>
1006 Get the number of records in the current JSON dataset
1017 <dl class="detailList">
1018 <dt class="heading">Returns:</dt>
1020 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1034 <td class="msource">
1042 <tr class="method-row config-row-alt0 expandable">
1043 <td class="micon"><a class="exi" href="#expand"> </a></td>
1047 <a id="Roo.View-method-getEl" name=".getEl"></a>
1048 <div class="fixedFont">
1049 <span class="attributes"></span><b class="itemname">getEl</b>
1057 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
1066 <div class="short">Returns the element this view is bound to.</div>
1072 Returns the element this view is bound to.
1083 <dl class="detailList">
1084 <dt class="heading">Returns:</dt>
1086 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1100 <td class="msource">
1102 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1108 <tr class="method-row config-row-alt1 expandable">
1109 <td class="micon"><a class="exi" href="#expand"> </a></td>
1113 <a id="Roo.View-method-getNode" name=".getNode"></a>
1114 <div class="fixedFont">
1115 <span class="attributes"></span><b class="itemname">getNode</b>
1117 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1123 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1132 <div class="short">Gets a template node.</div>
1138 Gets a template node.
1145 <dl class="detailList">
1146 <dt class="heading">Parameters:</dt>
1149 <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>
1152 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1160 <dl class="detailList">
1161 <dt class="heading">Returns:</dt>
1163 <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>
1177 <td class="msource">
1179 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1185 <tr class="method-row config-row-alt0 expandable notInherited">
1186 <td class="micon"><a class="exi" href="#expand"> </a></td>
1190 <a id="Roo.JsonView-method-getNodeData" name=".getNodeData"></a>
1191 <div class="fixedFont">
1192 <span class="attributes"></span><b class="itemname">getNodeData</b>
1194 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Array <B><i>node</i></B>)
1200 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>/Array
1209 <div class="short">Returns the JSON object for the specified node(s)</div>
1215 Returns the JSON object for the specified node(s)
1222 <dl class="detailList">
1223 <dt class="heading">Parameters:</dt>
1226 <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>
1229 <dd>The node or an array of nodes</dd>
1237 <dl class="detailList">
1238 <dt class="heading">Returns:</dt>
1240 <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>
1254 <td class="msource">
1262 <tr class="method-row config-row-alt1 expandable">
1263 <td class="micon"><a class="exi" href="#expand"> </a></td>
1267 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1268 <div class="fixedFont">
1269 <span class="attributes"></span><b class="itemname">getNodes</b>
1271 (<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>)
1277 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1286 <div class="short">Gets a range template nodes.</div>
1292 Gets a range template nodes.
1299 <dl class="detailList">
1300 <dt class="heading">Parameters:</dt>
1303 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1309 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1320 <dl class="detailList">
1321 <dt class="heading">Returns:</dt>
1323 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1337 <td class="msource">
1339 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1345 <tr class="method-row config-row-alt0 expandable">
1346 <td class="micon"><a class="exi" href="#expand"> </a></td>
1350 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1351 <div class="fixedFont">
1352 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1360 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1369 <div class="short">Get the indexes of the selected nodes.</div>
1375 Get the indexes of the selected nodes.
1386 <dl class="detailList">
1387 <dt class="heading">Returns:</dt>
1389 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1403 <td class="msource">
1405 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1411 <tr class="method-row config-row-alt1 expandable">
1412 <td class="micon"><a class="exi" href="#expand"> </a></td>
1416 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1417 <div class="fixedFont">
1418 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1426 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1435 <div class="short">Get the currently selected nodes.</div>
1441 Get the currently selected nodes.
1452 <dl class="detailList">
1453 <dt class="heading">Returns:</dt>
1455 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1469 <td class="msource">
1471 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1477 <tr class="method-row config-row-alt0 expandable">
1478 <td class="micon"><a class="exi" href="#expand"> </a></td>
1482 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1483 <div class="fixedFont">
1484 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1492 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1501 <div class="short">Get the number of selected nodes.</div>
1507 Get the number of selected nodes.
1518 <dl class="detailList">
1519 <dt class="heading">Returns:</dt>
1521 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1535 <td class="msource">
1537 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1543 <tr class="method-row config-row-alt1 expandable">
1544 <td class="micon"><a class="exi" href="#expand"> </a></td>
1548 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1549 <div class="fixedFont">
1550 <span class="attributes"></span><b class="itemname">hasListener</b>
1552 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1558 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1567 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1573 Checks to see if this object has any listeners for a specified event
1580 <dl class="detailList">
1581 <dt class="heading">Parameters:</dt>
1584 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1587 <dd>The name of the event to check for</dd>
1595 <dl class="detailList">
1596 <dt class="heading">Returns:</dt>
1598 <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>
1612 <td class="msource">
1614 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1620 <tr class="method-row config-row-alt0 expandable">
1621 <td class="micon"><a class="exi" href="#expand"> </a></td>
1625 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1626 <div class="fixedFont">
1627 <span class="attributes"></span><b class="itemname">indexOf</b>
1629 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1635 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1644 <div class="short">Finds the index of the passed node</div>
1650 Finds the index of the passed node
1657 <dl class="detailList">
1658 <dt class="heading">Parameters:</dt>
1661 <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>
1664 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1672 <dl class="detailList">
1673 <dt class="heading">Returns:</dt>
1675 <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>
1689 <td class="msource">
1691 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1697 <tr class="method-row config-row-alt1 expandable">
1698 <td class="micon"><a class="exi" href="#expand"> </a></td>
1702 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1703 <div class="fixedFont">
1704 <span class="attributes"></span><b class="itemname">isSelected</b>
1706 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1712 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1721 <div class="short">Returns true if the passed node is selected</div>
1727 Returns true if the passed node is selected
1734 <dl class="detailList">
1735 <dt class="heading">Parameters:</dt>
1738 <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>
1741 <dd>The node or node index</dd>
1749 <dl class="detailList">
1750 <dt class="heading">Returns:</dt>
1752 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1766 <td class="msource">
1768 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1774 <tr class="method-row config-row-alt0 expandable notInherited">
1775 <td class="micon"><a class="exi" href="#expand"> </a></td>
1779 <a id="Roo.JsonView-method-load" name=".load"></a>
1780 <div class="fixedFont">
1781 <span class="attributes"></span><b class="itemname">load</b>
1783 (<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>)
1790 <div class="short">Performs an async HTTP request, and loads the JSON from the response.</div>
1796 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.
1803 <dl class="detailList">
1804 <dt class="heading">Parameters:</dt>
1807 <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>
1810 <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>
1813 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Object</span> <b>params</b>
1816 <dd>(optional) The parameters to pass, as either a URL encoded string "param1=1&param2=2" or an object {param1: 1, param2: 2}</dd>
1819 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
1822 <dd>(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)</dd>
1825 <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>
1828 <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>
1846 <td class="msource">
1854 <tr class="method-row config-row-alt1 expandable">
1855 <td class="micon"><a class="exi" href="#expand"> </a></td>
1859 <a id="Roo.util.Observable-method-on" name=".on"></a>
1860 <div class="fixedFont">
1861 <span class="attributes"></span><b class="itemname">on</b>
1863 (<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>)
1870 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1876 Appends an event handler to this element (shorthand for addListener)
1883 <dl class="detailList">
1884 <dt class="heading">Parameters:</dt>
1887 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1890 <dd>The type of event to listen for</dd>
1893 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1896 <dd>The method the event invokes</dd>
1899 <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>
1902 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1905 <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>
1926 <td class="msource">
1928 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1934 <tr class="method-row config-row-alt0 expandable">
1935 <td class="micon"><a class="exi" href="#expand"> </a></td>
1939 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
1940 <div class="fixedFont">
1941 <span class="attributes"></span><b class="itemname">prepareData</b>
1943 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
1950 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
1956 Function to override to reformat the data that is sent to<br/>the template for each node.
1963 <dl class="detailList">
1964 <dt class="heading">Parameters:</dt>
1967 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
1970 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
1988 <td class="msource">
1990 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
1996 <tr class="method-row config-row-alt1 expandable">
1997 <td class="micon"><a class="exi" href="#expand"> </a></td>
2001 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2002 <div class="fixedFont">
2003 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2012 <div class="short">Removes all listeners for this object</div>
2018 Removes all listeners for this object
2039 <td class="msource">
2041 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2047 <tr class="method-row config-row-alt0 expandable notInherited">
2048 <td class="micon"><a class="exi" href="#expand"> </a></td>
2052 <a id="Roo.JsonView-method-refresh" name=".refresh"></a>
2053 <div class="fixedFont">
2054 <span class="attributes"></span><b class="itemname">refresh</b>
2063 <div class="short">Refreshes the view.</div>
2090 <td class="msource">
2098 <tr class="method-row config-row-alt1 expandable">
2099 <td class="micon"><a class="exi" href="#expand"> </a></td>
2103 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
2104 <div class="fixedFont">
2105 <span class="attributes"></span><b class="itemname">refreshNode</b>
2107 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2114 <div class="short">Refresh an individual node.</div>
2120 Refresh an individual node.
2127 <dl class="detailList">
2128 <dt class="heading">Parameters:</dt>
2131 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2152 <td class="msource">
2154 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2160 <tr class="method-row config-row-alt0 expandable">
2161 <td class="micon"><a class="exi" href="#expand"> </a></td>
2165 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2166 <div class="fixedFont">
2167 <span class="attributes"></span><b class="itemname">removeListener</b>
2169 (<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>)
2176 <div class="short">Removes a listener</div>
2189 <dl class="detailList">
2190 <dt class="heading">Parameters:</dt>
2193 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2196 <dd>The type of event to listen for</dd>
2199 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2202 <dd>The handler to remove</dd>
2205 <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>
2208 <dd>(optional) The scope (this object) for the handler</dd>
2226 <td class="msource">
2228 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2234 <tr class="method-row config-row-alt1 expandable">
2235 <td class="micon"><a class="exi" href="#expand"> </a></td>
2239 <a id="Roo.View-method-select" name=".select"></a>
2240 <div class="fixedFont">
2241 <span class="attributes"></span><b class="itemname">select</b>
2243 (<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>)
2250 <div class="short">Selects nodes.</div>
2263 <dl class="detailList">
2264 <dt class="heading">Parameters:</dt>
2267 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2270 <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>
2273 <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>
2276 <dd>(optional) true to keep existing selections</dd>
2279 <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>
2282 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2300 <td class="msource">
2302 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2308 <tr class="method-row config-row-alt0 expandable">
2309 <td class="micon"><a class="exi" href="#expand"> </a></td>
2313 <a id="Roo.View-method-setStore" name=".setStore"></a>
2314 <div class="fixedFont">
2315 <span class="attributes"></span><b class="itemname">setStore</b>
2317 (Store <B><i>store</i></B>)
2324 <div class="short">Changes the data store this view uses and refresh the view.</div>
2330 Changes the data store this view uses and refresh the view.
2337 <dl class="detailList">
2338 <dt class="heading">Parameters:</dt>
2341 <span class="fixedFont">Store</span> <b>store</b>
2362 <td class="msource">
2364 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2370 <tr class="method-row config-row-alt1 expandable notInherited">
2371 <td class="micon"><a class="exi" href="#expand"> </a></td>
2375 <a id="Roo.JsonView-method-sort" name=".sort"></a>
2376 <div class="fixedFont">
2377 <span class="attributes"></span><b class="itemname">sort</b>
2379 (<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>)
2386 <div class="short">Sorts the data for this view and refreshes it.</div>
2392 Sorts the data for this view and refreshes it.
2399 <dl class="detailList">
2400 <dt class="heading">Parameters:</dt>
2403 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>property</b>
2406 <dd>A property on your JSON objects to sort on</dd>
2409 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>direction</b>
2412 <dd>(optional) "desc" or "asc" (defaults to "asc")</dd>
2415 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>sortType</b>
2418 <dd>(optional) A function to call to convert the data to a sortable value.</dd>
2436 <td class="msource">
2444 <tr class="method-row config-row-alt0 expandable">
2445 <td class="micon"><a class="exi" href="#expand"> </a></td>
2449 <a id="Roo.util.Observable-method-un" name=".un"></a>
2450 <div class="fixedFont">
2451 <span class="attributes"></span><b class="itemname">un</b>
2453 (<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>)
2460 <div class="short">Removes a listener (shorthand for removeListener)</div>
2466 Removes a listener (shorthand for removeListener)
2473 <dl class="detailList">
2474 <dt class="heading">Parameters:</dt>
2477 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2480 <dd>The type of event to listen for</dd>
2483 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2486 <dd>The handler to remove</dd>
2489 <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>
2492 <dd>(optional) The scope (this object) for the handler</dd>
2510 <td class="msource">
2512 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2521 <!-- ============================== events summary / details ======================== -->
2524 <a id="Roo.JsonView-events"></a>
2533 <table cellspacing="0" class="member-table">
2534 <caption>Events</caption>
2537 <th class="sig-header" colspan="2">Event</th>
2538 <th class="msource-header">Defined By</th>
2547 <tr class="method-row expandable config-row-alt0">
2548 <td class="micon"><a class="exi" href="#expand"> </a></td>
2551 <a id="Roo.View-event-*beforeclick"></a>
2553 <div class="fixedFont">
2554 <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>)
2560 <div class="short">Fires before a click is processed.
2566 Fires before a click is processed. Returns false to cancel the default action.
2572 <dl class="detailList">
2573 <dt class="heading">Parameters:</dt>
2576 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2582 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2585 <dd>The index of the target node</dd>
2588 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2591 <dd>The target node</dd>
2594 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2597 <dd>The raw event object</dd>
2615 <td class="msource">
2616 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2620 <tr class="method-row expandable config-row-alt1 notInherited">
2621 <td class="micon"><a class="exi" href="#expand"> </a></td>
2624 <a id="Roo.JsonView-event-*beforerender"></a>
2626 <div class="fixedFont">
2627 <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>)
2633 <div class="short">Fires before rendering of the downloaded JSON data.
2639 Fires before rendering of the downloaded JSON data.
2645 <dl class="detailList">
2646 <dt class="heading">Parameters:</dt>
2649 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
2655 <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>
2658 <dd>The JSON data loaded</dd>
2676 <td class="msource">
2681 <tr class="method-row expandable config-row-alt0">
2682 <td class="micon"><a class="exi" href="#expand"> </a></td>
2685 <a id="Roo.View-event-*beforeselect"></a>
2687 <div class="fixedFont">
2688 <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>)
2694 <div class="short">Fires before a selection is made.
2700 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2706 <dl class="detailList">
2707 <dt class="heading">Parameters:</dt>
2710 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2716 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2719 <dd>The node to be selected</dd>
2722 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2725 <dd>Array of currently selected nodes</dd>
2743 <td class="msource">
2744 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2748 <tr class="method-row expandable config-row-alt1">
2749 <td class="micon"><a class="exi" href="#expand"> </a></td>
2752 <a id="Roo.View-event-*click"></a>
2754 <div class="fixedFont">
2755 <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>)
2761 <div class="short">Fires when a template node is clicked.
2767 Fires when a template node is clicked.
2773 <dl class="detailList">
2774 <dt class="heading">Parameters:</dt>
2777 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2783 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2786 <dd>The index of the target node</dd>
2789 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2792 <dd>The target node</dd>
2795 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2798 <dd>The raw event object</dd>
2816 <td class="msource">
2817 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2821 <tr class="method-row expandable config-row-alt0">
2822 <td class="micon"><a class="exi" href="#expand"> </a></td>
2825 <a id="Roo.View-event-*contextmenu"></a>
2827 <div class="fixedFont">
2828 <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>)
2834 <div class="short">Fires when a template node is right clicked.
2840 Fires when a template node is right clicked.
2846 <dl class="detailList">
2847 <dt class="heading">Parameters:</dt>
2850 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2856 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2859 <dd>The index of the target node</dd>
2862 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2865 <dd>The target node</dd>
2868 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2871 <dd>The raw event object</dd>
2889 <td class="msource">
2890 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2894 <tr class="method-row expandable config-row-alt1">
2895 <td class="micon"><a class="exi" href="#expand"> </a></td>
2898 <a id="Roo.View-event-*dblclick"></a>
2900 <div class="fixedFont">
2901 <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>)
2907 <div class="short">Fires when a template node is double clicked.
2913 Fires when a template node is double clicked.
2919 <dl class="detailList">
2920 <dt class="heading">Parameters:</dt>
2923 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2929 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2932 <dd>The index of the target node</dd>
2935 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2938 <dd>The target node</dd>
2941 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2944 <dd>The raw event object</dd>
2962 <td class="msource">
2963 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
2967 <tr class="method-row expandable config-row-alt0 notInherited">
2968 <td class="micon"><a class="exi" href="#expand"> </a></td>
2971 <a id="Roo.JsonView-event-*load"></a>
2973 <div class="fixedFont">
2974 <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>)
2980 <div class="short">Fires when data is loaded.
2986 Fires when data is loaded.
2992 <dl class="detailList">
2993 <dt class="heading">Parameters:</dt>
2996 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3002 <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>
3005 <dd>The JSON data loaded</dd>
3008 <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>
3011 <dd>The raw Connect response object</dd>
3029 <td class="msource">
3034 <tr class="method-row expandable config-row-alt1 notInherited">
3035 <td class="micon"><a class="exi" href="#expand"> </a></td>
3038 <a id="Roo.JsonView-event-*loadexception"></a>
3040 <div class="fixedFont">
3041 <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>)
3047 <div class="short">Fires when loading fails.
3053 Fires when loading fails.
3059 <dl class="detailList">
3060 <dt class="heading">Parameters:</dt>
3063 <span class="fixedFont"><a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a></span> <b>this</b>
3069 <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>
3072 <dd>The raw Connect response object</dd>
3090 <td class="msource">
3095 <tr class="method-row expandable config-row-alt0">
3096 <td class="micon"><a class="exi" href="#expand"> </a></td>
3099 <a id="Roo.View-event-*selectionchange"></a>
3101 <div class="fixedFont">
3102 <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>)
3108 <div class="short">Fires when the selected nodes change.
3114 Fires when the selected nodes change.
3120 <dl class="detailList">
3121 <dt class="heading">Parameters:</dt>
3124 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
3130 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
3133 <dd>Array of the selected nodes</dd>
3151 <td class="msource">
3152 <a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a>
3163 <!-- ============================== footer ================================= -->
3164 <div class="fineprint" style="clear:both">
3166 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Mon Jul 26 2010 19:28:49 GMT+0800 (HKT)
3168 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>