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.View</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.View-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.View-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.View-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.View-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 class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.View
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_View.js.html">Roo/View.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">View</td></tr>
72 <tr><td class="label">Subclasses:</td><td class="hd-info">
73 <a href="./Roo.JsonView.html#constructor" roo:cls="Roo.JsonView.html#constructor">Roo.JsonView</a>
81 <tr><td class="label">Extends:</td><td class="hd-info">
82 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
90 <!-- ============================== class summary ========================== -->
91 <div class="description">
92 Create a "View" for an element based on a data model or UpdateManager and the supplied DomHelper template. <br/>This class also supports single and multi selection modes. <br><br/>Create a data model bound view:<br/> <pre><code><br/> var store = new Roo.data.Store(...);<br/><br/> var view = new Roo.View({<br/> el : "my-element",<br/> tpl : '<div id="{0}">{2} - {1}</div>', // auto create template<br/> <br/> singleSelect: true,<br/> selectedClass: "ydataview-selected",<br/> store: store<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/> // load XML data<br/> dataModel.load("foobar.xml");<br/> </code></pre><br/> For an example of creating a JSON/UpdateManager view, see {<b>link</b> Roo.JsonView}.<br/><br><br><br/><b>Note: The root of your template must be a single node. Table/row implementations may work but are not supported due to<br/>IE"s limited insertion support with tables and Opera"s faulty event bubbling.</b><br/><br/>Note: old style constructor is still suported (container, template, config)
96 <!-- ============================== Class comment block... ========================== -->
98 <div class="comments">
99 <b>Class Comments / Notes</B> =>
100 <u onclick="parent.CommentDialog.showCommentId = 'Roo.View';">[Add Your comment/notes about this class]</u>
102 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
103 src="/blog.php/GtkDjsComments/Roo.View.html"></iframe>
108 <!-- ============================== config options ========================== -->
113 <div class="hr"></div>
114 <a id="Roo.View-configs"></a>
120 <table cellspacing="0" class="member-table">
121 <caption>Config Options (Usually are also Properties)</caption>
125 <th class="sig-header" colspan="2">Options</th>
127 <th class="msource-header">Defined By</th>
134 <tr class="config-row expandable config-row-alt0 notInherited">
135 <td class="micon"><a class="exi" href="#expand"> </a></td>
138 <a id="Roo.View-cfg-dataName" name=".dataName"></a>
139 <div class="fixedFont">
140 <b class="itemname">dataName</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
146 <div class="short">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
150 <div class="long">the named area of the template to use as the data area<br/> Works with domtemplates roo-name="name"</div>
164 <tr class="config-row expandable config-row-alt1 notInherited">
165 <td class="micon"><a class="exi" href="#expand"> </a></td>
168 <a id="Roo.View-cfg-el" name=".el"></a>
169 <div class="fixedFont">
170 <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>
176 <div class="short">The container element.</div>
180 <div class="long">The container element.</div>
194 <tr class="config-row expandable config-row-alt0 notInherited">
195 <td class="micon"><a class="exi" href="#expand"> </a></td>
198 <a id="Roo.View-cfg-emptyText" name=".emptyText"></a>
199 <div class="fixedFont">
200 <b class="itemname">emptyText</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
206 <div class="short">The empty text to show when nothing is loaded.</div>
210 <div class="long">The empty text to show when nothing is loaded.</div>
224 <tr class="config-row expandable config-row-alt1">
225 <td class="micon"><a class="exi" href="#expand"> </a></td>
228 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
229 <div class="fixedFont">
230 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
236 <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>
240 <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>
248 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
254 <tr class="config-row expandable config-row-alt0 notInherited">
255 <td class="micon"><a class="exi" href="#expand"> </a></td>
258 <a id="Roo.View-cfg-multiSelect" name=".multiSelect"></a>
259 <div class="fixedFont">
260 <b class="itemname">multiSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
266 <div class="short">Allow multiple selection</div>
270 <div class="long">Allow multiple selection</div>
284 <tr class="config-row expandable config-row-alt1 notInherited">
285 <td class="micon"><a class="exi" href="#expand"> </a></td>
288 <a id="Roo.View-cfg-selectedClass" name=".selectedClass"></a>
289 <div class="fixedFont">
290 <b class="itemname">selectedClass</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
296 <div class="short">The css class to add to selected nodes</div>
300 <div class="long">The css class to add to selected nodes</div>
314 <tr class="config-row expandable config-row-alt0 notInherited">
315 <td class="micon"><a class="exi" href="#expand"> </a></td>
318 <a id="Roo.View-cfg-singleSelect" name=".singleSelect"></a>
319 <div class="fixedFont">
320 <b class="itemname">singleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
326 <div class="short">Allow single selection</div>
330 <div class="long">Allow single selection</div>
344 <tr class="config-row expandable config-row-alt1 notInherited">
345 <td class="micon"><a class="exi" href="#expand"> </a></td>
348 <a id="Roo.View-cfg-store" name=".store"></a>
349 <div class="fixedFont">
350 <b class="itemname">store</b> : <a href="./Roo.data.Store.html#constructor" roo:cls="Roo.data.Store.html#constructor">Roo.data.Store</a>
356 <div class="short">Data store to load data from.</div>
360 <div class="long">Data store to load data from.</div>
374 <tr class="config-row expandable config-row-alt0 notInherited">
375 <td class="micon"><a class="exi" href="#expand"> </a></td>
378 <a id="Roo.View-cfg-toggleSelect" name=".toggleSelect"></a>
379 <div class="fixedFont">
380 <b class="itemname">toggleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
386 <div class="short">- selecting</div>
390 <div class="long">- selecting</div>
404 <tr class="config-row expandable config-row-alt1 notInherited">
405 <td class="micon"><a class="exi" href="#expand"> </a></td>
408 <a id="Roo.View-cfg-tpl" name=".tpl"></a>
409 <div class="fixedFont">
410 <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>
416 <div class="short">The template used by this View</div>
420 <div class="long">The template used by this View</div>
444 <!-- ============================== public properties ==================== -->
448 <a id="Roo.View-props"></a>
454 <table cellspacing="0" class="member-table">
455 <caption class="Empty">Public Properties - Has None</caption>
461 <!-- ============================== methods summary / details ======================== -->
464 <a id="Roo.View-methods"></a>
465 <!-- constructor?? -->
472 <!-- then dynamics first -->
479 <table cellspacing="0" class="member-table">
480 <caption>Public Methods</caption>
482 <th class="sig-header" colspan="2">Method</th>
483 <th class="msource-header">Defined By</th>
493 <tr class="method-row config-row-alt0 expandable notInherited">
494 <td class="micon"><a class="exi" href="#expand"> </a></td>
498 <a id="Roo-method-View" name=".View"></a>
499 <div class="fixedFont">
500 <span class="attributes">new <B>Roo.</B></span><b class="itemname">View</b>
502 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
510 <div class="short">Create a new Roo.View</div>
517 Create a new Roo.View
520 <dl class="detailList">
521 <dt class="heading">Parameters:</dt>
524 <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>
527 <dd>The config object</dd>
551 <tr class="method-row config-row-alt1 expandable">
552 <td class="micon"><a class="exi" href="#expand"> </a></td>
556 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
557 <div class="fixedFont">
558 <span class="attributes"></span><b class="itemname">addEvents</b>
560 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
567 <div class="short">Used to define events on this Observable</div>
573 Used to define events on this Observable
580 <dl class="detailList">
581 <dt class="heading">Parameters:</dt>
584 <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>
587 <dd>The object with the events defined</dd>
607 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
613 <tr class="method-row config-row-alt0 expandable">
614 <td class="micon"><a class="exi" href="#expand"> </a></td>
618 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
619 <div class="fixedFont">
620 <span class="attributes"></span><b class="itemname">addListener</b>
622 (<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>)
629 <div class="short">Appends an event handler to this component</div>
635 Appends an event handler to this component
642 <dl class="detailList">
643 <dt class="heading">Parameters:</dt>
646 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
649 <dd>The type of event to listen for</dd>
652 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
655 <dd>The method the event invokes</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>scope</b>
661 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
664 <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>
667 <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>
687 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
693 <tr class="method-row config-row-alt1 expandable notInherited">
694 <td class="micon"><a class="exi" href="#expand"> </a></td>
698 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
699 <div class="fixedFont">
700 <span class="attributes"></span><b class="itemname">clearSelections</b>
702 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
709 <div class="short">Clear all selections</div>
722 <dl class="detailList">
723 <dt class="heading">Parameters:</dt>
726 <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>
729 <dd>(optional) true to skip firing of the selectionchange event</dd>
755 <tr class="method-row config-row-alt0 expandable notInherited">
756 <td class="micon"><a class="exi" href="#expand"> </a></td>
760 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
761 <div class="fixedFont">
762 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
764 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
770 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
779 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
785 Returns the template node the passed child belongs to or null if it doesn't belong to one.
792 <dl class="detailList">
793 <dt class="heading">Parameters:</dt>
796 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
807 <dl class="detailList">
808 <dt class="heading">Returns:</dt>
810 <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>
832 <tr class="method-row config-row-alt1 expandable">
833 <td class="micon"><a class="exi" href="#expand"> </a></td>
837 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
838 <div class="fixedFont">
839 <span class="attributes"></span><b class="itemname">fireEvent</b>
841 (<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>)
847 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
856 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
862 Fires the specified event with the passed parameters (minus the event name).
869 <dl class="detailList">
870 <dt class="heading">Parameters:</dt>
873 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
879 <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>
882 <dd>Variable number of parameters are passed to handlers</dd>
890 <dl class="detailList">
891 <dt class="heading">Returns:</dt>
893 <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>
909 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
915 <tr class="method-row config-row-alt0 expandable notInherited">
916 <td class="micon"><a class="exi" href="#expand"> </a></td>
920 <a id="Roo.View-method-getEl" name=".getEl"></a>
921 <div class="fixedFont">
922 <span class="attributes"></span><b class="itemname">getEl</b>
930 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
939 <div class="short">Returns the element this view is bound to.</div>
945 Returns the element this view is bound to.
956 <dl class="detailList">
957 <dt class="heading">Returns:</dt>
959 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
981 <tr class="method-row config-row-alt1 expandable notInherited">
982 <td class="micon"><a class="exi" href="#expand"> </a></td>
986 <a id="Roo.View-method-getNode" name=".getNode"></a>
987 <div class="fixedFont">
988 <span class="attributes"></span><b class="itemname">getNode</b>
990 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
996 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1005 <div class="short">Gets a template node.</div>
1011 Gets a template node.
1018 <dl class="detailList">
1019 <dt class="heading">Parameters:</dt>
1022 <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>
1025 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1033 <dl class="detailList">
1034 <dt class="heading">Returns:</dt>
1036 <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>
1050 <td class="msource">
1058 <tr class="method-row config-row-alt0 expandable notInherited">
1059 <td class="micon"><a class="exi" href="#expand"> </a></td>
1063 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1064 <div class="fixedFont">
1065 <span class="attributes"></span><b class="itemname">getNodes</b>
1067 (<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>)
1073 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1082 <div class="short">Gets a range template nodes.</div>
1088 Gets a range template nodes.
1095 <dl class="detailList">
1096 <dt class="heading">Parameters:</dt>
1099 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1105 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1116 <dl class="detailList">
1117 <dt class="heading">Returns:</dt>
1119 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1133 <td class="msource">
1141 <tr class="method-row config-row-alt1 expandable notInherited">
1142 <td class="micon"><a class="exi" href="#expand"> </a></td>
1146 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1147 <div class="fixedFont">
1148 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1156 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1165 <div class="short">Get the indexes of the selected nodes.</div>
1171 Get the indexes of the selected nodes.
1182 <dl class="detailList">
1183 <dt class="heading">Returns:</dt>
1185 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1199 <td class="msource">
1207 <tr class="method-row config-row-alt0 expandable notInherited">
1208 <td class="micon"><a class="exi" href="#expand"> </a></td>
1212 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1213 <div class="fixedFont">
1214 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1222 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1231 <div class="short">Get the currently selected nodes.</div>
1237 Get the currently selected nodes.
1248 <dl class="detailList">
1249 <dt class="heading">Returns:</dt>
1251 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1265 <td class="msource">
1273 <tr class="method-row config-row-alt1 expandable notInherited">
1274 <td class="micon"><a class="exi" href="#expand"> </a></td>
1278 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1279 <div class="fixedFont">
1280 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1288 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1297 <div class="short">Get the number of selected nodes.</div>
1303 Get the number of selected nodes.
1314 <dl class="detailList">
1315 <dt class="heading">Returns:</dt>
1317 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1331 <td class="msource">
1339 <tr class="method-row config-row-alt0 expandable">
1340 <td class="micon"><a class="exi" href="#expand"> </a></td>
1344 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1345 <div class="fixedFont">
1346 <span class="attributes"></span><b class="itemname">hasListener</b>
1348 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1354 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1363 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1369 Checks to see if this object has any listeners for a specified event
1376 <dl class="detailList">
1377 <dt class="heading">Parameters:</dt>
1380 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1383 <dd>The name of the event to check for</dd>
1391 <dl class="detailList">
1392 <dt class="heading">Returns:</dt>
1394 <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>
1408 <td class="msource">
1410 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1416 <tr class="method-row config-row-alt1 expandable notInherited">
1417 <td class="micon"><a class="exi" href="#expand"> </a></td>
1421 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1422 <div class="fixedFont">
1423 <span class="attributes"></span><b class="itemname">indexOf</b>
1425 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1431 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1440 <div class="short">Finds the index of the passed node</div>
1446 Finds the index of the passed node
1453 <dl class="detailList">
1454 <dt class="heading">Parameters:</dt>
1457 <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>
1460 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1468 <dl class="detailList">
1469 <dt class="heading">Returns:</dt>
1471 <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>
1485 <td class="msource">
1493 <tr class="method-row config-row-alt0 expandable notInherited">
1494 <td class="micon"><a class="exi" href="#expand"> </a></td>
1498 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1499 <div class="fixedFont">
1500 <span class="attributes"></span><b class="itemname">isSelected</b>
1502 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1508 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1517 <div class="short">Returns true if the passed node is selected</div>
1523 Returns true if the passed node is selected
1530 <dl class="detailList">
1531 <dt class="heading">Parameters:</dt>
1534 <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>
1537 <dd>The node or node index</dd>
1545 <dl class="detailList">
1546 <dt class="heading">Returns:</dt>
1548 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1562 <td class="msource">
1570 <tr class="method-row config-row-alt1 expandable">
1571 <td class="micon"><a class="exi" href="#expand"> </a></td>
1575 <a id="Roo.util.Observable-method-on" name=".on"></a>
1576 <div class="fixedFont">
1577 <span class="attributes"></span><b class="itemname">on</b>
1579 (<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>)
1586 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1592 Appends an event handler to this element (shorthand for addListener)
1599 <dl class="detailList">
1600 <dt class="heading">Parameters:</dt>
1603 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1606 <dd>The type of event to listen for</dd>
1609 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1612 <dd>The method the event invokes</dd>
1615 <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>
1618 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1621 <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>
1642 <td class="msource">
1644 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1650 <tr class="method-row config-row-alt0 expandable notInherited">
1651 <td class="micon"><a class="exi" href="#expand"> </a></td>
1655 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
1656 <div class="fixedFont">
1657 <span class="attributes"></span><b class="itemname">prepareData</b>
1659 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
1666 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
1672 Function to override to reformat the data that is sent to<br/>the template for each node.<br/>DEPRICATED - use the preparedata event handler.
1679 <dl class="detailList">
1680 <dt class="heading">Parameters:</dt>
1683 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
1686 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
1704 <td class="msource">
1712 <tr class="method-row config-row-alt1 expandable">
1713 <td class="micon"><a class="exi" href="#expand"> </a></td>
1717 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1718 <div class="fixedFont">
1719 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1728 <div class="short">Removes all listeners for this object</div>
1734 Removes all listeners for this object
1755 <td class="msource">
1757 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1763 <tr class="method-row config-row-alt0 expandable notInherited">
1764 <td class="micon"><a class="exi" href="#expand"> </a></td>
1768 <a id="Roo.View-method-refresh" name=".refresh"></a>
1769 <div class="fixedFont">
1770 <span class="attributes"></span><b class="itemname">refresh</b>
1779 <div class="short">Refreshes the view.</div>
1806 <td class="msource">
1814 <tr class="method-row config-row-alt1 expandable notInherited">
1815 <td class="micon"><a class="exi" href="#expand"> </a></td>
1819 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
1820 <div class="fixedFont">
1821 <span class="attributes"></span><b class="itemname">refreshNode</b>
1823 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1830 <div class="short">Refresh an individual node.</div>
1836 Refresh an individual node.
1843 <dl class="detailList">
1844 <dt class="heading">Parameters:</dt>
1847 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1868 <td class="msource">
1876 <tr class="method-row config-row-alt0 expandable">
1877 <td class="micon"><a class="exi" href="#expand"> </a></td>
1881 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
1882 <div class="fixedFont">
1883 <span class="attributes"></span><b class="itemname">removeListener</b>
1885 (<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>)
1892 <div class="short">Removes a listener</div>
1905 <dl class="detailList">
1906 <dt class="heading">Parameters:</dt>
1909 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1912 <dd>The type of event to listen for</dd>
1915 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1918 <dd>The handler to remove</dd>
1921 <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>
1924 <dd>(optional) The scope (this object) for the handler</dd>
1942 <td class="msource">
1944 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1950 <tr class="method-row config-row-alt1 expandable notInherited">
1951 <td class="micon"><a class="exi" href="#expand"> </a></td>
1955 <a id="Roo.View-method-select" name=".select"></a>
1956 <div class="fixedFont">
1957 <span class="attributes"></span><b class="itemname">select</b>
1959 (<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>)
1966 <div class="short">Selects nodes.</div>
1979 <dl class="detailList">
1980 <dt class="heading">Parameters:</dt>
1983 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
1986 <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>
1989 <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>
1992 <dd>(optional) true to keep existing selections</dd>
1995 <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>
1998 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2016 <td class="msource">
2024 <tr class="method-row config-row-alt0 expandable notInherited">
2025 <td class="micon"><a class="exi" href="#expand"> </a></td>
2029 <a id="Roo.View-method-setStore" name=".setStore"></a>
2030 <div class="fixedFont">
2031 <span class="attributes"></span><b class="itemname">setStore</b>
2033 (Store <B><i>store</i></B>)
2040 <div class="short">Changes the data store this view uses and refresh the view.</div>
2046 Changes the data store this view uses and refresh the view.
2053 <dl class="detailList">
2054 <dt class="heading">Parameters:</dt>
2057 <span class="fixedFont">Store</span> <b>store</b>
2078 <td class="msource">
2086 <tr class="method-row config-row-alt1 expandable">
2087 <td class="micon"><a class="exi" href="#expand"> </a></td>
2091 <a id="Roo.util.Observable-method-un" name=".un"></a>
2092 <div class="fixedFont">
2093 <span class="attributes"></span><b class="itemname">un</b>
2095 (<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>)
2102 <div class="short">Removes a listener (shorthand for removeListener)</div>
2108 Removes a listener (shorthand for removeListener)
2115 <dl class="detailList">
2116 <dt class="heading">Parameters:</dt>
2119 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2122 <dd>The type of event to listen for</dd>
2125 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2128 <dd>The handler to remove</dd>
2131 <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>
2134 <dd>(optional) The scope (this object) for the handler</dd>
2152 <td class="msource">
2154 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2160 <tr class="method-row config-row-alt0 expandable notInherited">
2161 <td class="micon"><a class="exi" href="#expand"> </a></td>
2165 <a id="Roo.View-method-unselect" name=".unselect"></a>
2166 <div class="fixedFont">
2167 <span class="attributes"></span><b class="itemname">unselect</b>
2169 (<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>)
2176 <div class="short">Unselects nodes.</div>
2189 <dl class="detailList">
2190 <dt class="heading">Parameters:</dt>
2193 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2196 <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>
2199 <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>
2202 <dd>(optional) true IGNORED (for campatibility with select)</dd>
2205 <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>
2208 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2226 <td class="msource">
2237 <!-- ============================== events summary / details ======================== -->
2240 <a id="Roo.View-events"></a>
2249 <table cellspacing="0" class="member-table">
2250 <caption>Events</caption>
2253 <th class="sig-header" colspan="2">Event</th>
2254 <th class="msource-header">Defined By</th>
2263 <tr class="method-row expandable config-row-alt0 notInherited">
2264 <td class="micon"><a class="exi" href="#expand"> </a></td>
2267 <a id="Roo.View-event-*beforeclick"></a>
2269 <div class="fixedFont">
2270 <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>)
2276 <div class="short">Fires before a click is processed.
2282 Fires before a click is processed. Returns false to cancel the default action.
2288 <dl class="detailList">
2289 <dt class="heading">Parameters:</dt>
2292 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2298 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2301 <dd>The index of the target node</dd>
2304 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2307 <dd>The target node</dd>
2310 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2313 <dd>The raw event object</dd>
2331 <td class="msource">
2336 <tr class="method-row expandable config-row-alt1 notInherited">
2337 <td class="micon"><a class="exi" href="#expand"> </a></td>
2340 <a id="Roo.View-event-*beforeselect"></a>
2342 <div class="fixedFont">
2343 <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>)
2349 <div class="short">Fires before a selection is made.
2355 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2361 <dl class="detailList">
2362 <dt class="heading">Parameters:</dt>
2365 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2371 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2374 <dd>The node to be selected</dd>
2377 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2380 <dd>Array of currently selected nodes</dd>
2398 <td class="msource">
2403 <tr class="method-row expandable config-row-alt0 notInherited">
2404 <td class="micon"><a class="exi" href="#expand"> </a></td>
2407 <a id="Roo.View-event-*click"></a>
2409 <div class="fixedFont">
2410 <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>)
2416 <div class="short">Fires when a template node is clicked.
2422 Fires when a template node is clicked.
2428 <dl class="detailList">
2429 <dt class="heading">Parameters:</dt>
2432 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2438 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2441 <dd>The index of the target node</dd>
2444 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2447 <dd>The target node</dd>
2450 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2453 <dd>The raw event object</dd>
2471 <td class="msource">
2476 <tr class="method-row expandable config-row-alt1 notInherited">
2477 <td class="micon"><a class="exi" href="#expand"> </a></td>
2480 <a id="Roo.View-event-*contextmenu"></a>
2482 <div class="fixedFont">
2483 <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>)
2489 <div class="short">Fires when a template node is right clicked.
2495 Fires when a template node is right clicked.
2501 <dl class="detailList">
2502 <dt class="heading">Parameters:</dt>
2505 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2511 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2514 <dd>The index of the target node</dd>
2517 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2520 <dd>The target node</dd>
2523 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2526 <dd>The raw event object</dd>
2544 <td class="msource">
2549 <tr class="method-row expandable config-row-alt0 notInherited">
2550 <td class="micon"><a class="exi" href="#expand"> </a></td>
2553 <a id="Roo.View-event-*dblclick"></a>
2555 <div class="fixedFont">
2556 <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>)
2562 <div class="short">Fires when a template node is double clicked.
2568 Fires when a template node is double clicked.
2574 <dl class="detailList">
2575 <dt class="heading">Parameters:</dt>
2578 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2584 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2587 <dd>The index of the target node</dd>
2590 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2593 <dd>The target node</dd>
2596 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2599 <dd>The raw event object</dd>
2617 <td class="msource">
2622 <tr class="method-row expandable config-row-alt1 notInherited">
2623 <td class="micon"><a class="exi" href="#expand"> </a></td>
2626 <a id="Roo.View-event-*preparedata"></a>
2628 <div class="fixedFont">
2629 <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>)
2635 <div class="short">Fires on every row to render, to allow you to change the data.
2641 Fires on every row to render, to allow you to change the data.
2647 <dl class="detailList">
2648 <dt class="heading">Parameters:</dt>
2651 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2657 <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>
2660 <dd>to be rendered (change this)</dd>
2678 <td class="msource">
2683 <tr class="method-row expandable config-row-alt0 notInherited">
2684 <td class="micon"><a class="exi" href="#expand"> </a></td>
2687 <a id="Roo.View-event-*selectionchange"></a>
2689 <div class="fixedFont">
2690 <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>)
2696 <div class="short">Fires when the selected nodes change.
2702 Fires when the selected nodes change.
2708 <dl class="detailList">
2709 <dt class="heading">Parameters:</dt>
2712 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2718 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2721 <dd>Array of the selected nodes</dd>
2739 <td class="msource">
2751 <!-- ============================== footer ================================= -->
2752 <div class="fineprint" style="clear:both">
2754 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Wed May 02 2012 11:27:35 GMT+0800 (HKT)
2756 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>