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-text" name=".text"></a>
379 <div class="fixedFont">
380 <b class="itemname">text</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
386 <div class="short">to display on mask (default Loading)</div>
390 <div class="long">to display on mask (default Loading)</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-toggleSelect" name=".toggleSelect"></a>
409 <div class="fixedFont">
410 <b class="itemname">toggleSelect</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
416 <div class="short">- selecting</div>
420 <div class="long">- selecting</div>
434 <tr class="config-row expandable config-row-alt0 notInherited">
435 <td class="micon"><a class="exi" href="#expand"> </a></td>
438 <a id="Roo.View-cfg-tpl" name=".tpl"></a>
439 <div class="fixedFont">
440 <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>
446 <div class="short">The template used by this View</div>
450 <div class="long">The template used by this View</div>
474 <!-- ============================== public properties ==================== -->
478 <a id="Roo.View-props"></a>
484 <table cellspacing="0" class="member-table">
485 <caption class="Empty">Public Properties - Has None</caption>
491 <!-- ============================== methods summary / details ======================== -->
494 <a id="Roo.View-methods"></a>
495 <!-- constructor?? -->
502 <!-- then dynamics first -->
509 <table cellspacing="0" class="member-table">
510 <caption>Public Methods</caption>
512 <th class="sig-header" colspan="2">Method</th>
513 <th class="msource-header">Defined By</th>
523 <tr class="method-row config-row-alt0 expandable notInherited">
524 <td class="micon"><a class="exi" href="#expand"> </a></td>
528 <a id="Roo-method-View" name=".View"></a>
529 <div class="fixedFont">
530 <span class="attributes">new <B>Roo.</B></span><b class="itemname">View</b>
532 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
540 <div class="short">Create a new Roo.View</div>
547 Create a new Roo.View
550 <dl class="detailList">
551 <dt class="heading">Parameters:</dt>
554 <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>
557 <dd>The config object</dd>
581 <tr class="method-row config-row-alt1 expandable">
582 <td class="micon"><a class="exi" href="#expand"> </a></td>
586 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
587 <div class="fixedFont">
588 <span class="attributes"></span><b class="itemname">addEvents</b>
590 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
597 <div class="short">Used to define events on this Observable</div>
603 Used to define events on this Observable
610 <dl class="detailList">
611 <dt class="heading">Parameters:</dt>
614 <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>
617 <dd>The object with the events defined</dd>
637 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
643 <tr class="method-row config-row-alt0 expandable">
644 <td class="micon"><a class="exi" href="#expand"> </a></td>
648 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
649 <div class="fixedFont">
650 <span class="attributes"></span><b class="itemname">addListener</b>
652 (<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>)
659 <div class="short">Appends an event handler to this component</div>
665 Appends an event handler to this component
672 <dl class="detailList">
673 <dt class="heading">Parameters:</dt>
676 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
679 <dd>The type of event to listen for</dd>
682 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
685 <dd>The method the event invokes</dd>
688 <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>
691 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
694 <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>
697 <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>
717 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
723 <tr class="method-row config-row-alt1 expandable notInherited">
724 <td class="micon"><a class="exi" href="#expand"> </a></td>
728 <a id="Roo.View-method-clearSelections" name=".clearSelections"></a>
729 <div class="fixedFont">
730 <span class="attributes"></span><b class="itemname">clearSelections</b>
732 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>)
739 <div class="short">Clear all selections</div>
752 <dl class="detailList">
753 <dt class="heading">Parameters:</dt>
756 <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>
759 <dd>(optional) true to skip firing of the selectionchange event</dd>
785 <tr class="method-row config-row-alt0 expandable notInherited">
786 <td class="micon"><a class="exi" href="#expand"> </a></td>
790 <a id="Roo.View-method-findItemFromChild" name=".findItemFromChild"></a>
791 <div class="fixedFont">
792 <span class="attributes"></span><b class="itemname">findItemFromChild</b>
794 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a> <B><i>node</i></B>)
800 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
809 <div class="short">Returns the template node the passed child belongs to or null if it doesn't belong to one.</div>
815 Returns the template node the passed child belongs to or null if it doesn't belong to one.
822 <dl class="detailList">
823 <dt class="heading">Parameters:</dt>
826 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
837 <dl class="detailList">
838 <dt class="heading">Returns:</dt>
840 <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>
862 <tr class="method-row config-row-alt1 expandable">
863 <td class="micon"><a class="exi" href="#expand"> </a></td>
867 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
868 <div class="fixedFont">
869 <span class="attributes"></span><b class="itemname">fireEvent</b>
871 (<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>)
877 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
886 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
892 Fires the specified event with the passed parameters (minus the event name).
899 <dl class="detailList">
900 <dt class="heading">Parameters:</dt>
903 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
909 <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>
912 <dd>Variable number of parameters are passed to handlers</dd>
920 <dl class="detailList">
921 <dt class="heading">Returns:</dt>
923 <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>
939 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
945 <tr class="method-row config-row-alt0 expandable notInherited">
946 <td class="micon"><a class="exi" href="#expand"> </a></td>
950 <a id="Roo.View-method-getEl" name=".getEl"></a>
951 <div class="fixedFont">
952 <span class="attributes"></span><b class="itemname">getEl</b>
960 <a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a>
969 <div class="short">Returns the element this view is bound to.</div>
975 Returns the element this view is bound to.
986 <dl class="detailList">
987 <dt class="heading">Returns:</dt>
989 <dd><span class="fixedFont"><a href="./Roo.Element.html#constructor" roo:cls="Roo.Element.html#constructor">Roo.Element</a></span> </dd>
1003 <td class="msource">
1011 <tr class="method-row config-row-alt1 expandable notInherited">
1012 <td class="micon"><a class="exi" href="#expand"> </a></td>
1016 <a id="Roo.View-method-getNode" name=".getNode"></a>
1017 <div class="fixedFont">
1018 <span class="attributes"></span><b class="itemname">getNode</b>
1020 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1026 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>
1035 <div class="short">Gets a template node.</div>
1041 Gets a template node.
1048 <dl class="detailList">
1049 <dt class="heading">Parameters:</dt>
1052 <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>
1055 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1063 <dl class="detailList">
1064 <dt class="heading">Returns:</dt>
1066 <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>
1080 <td class="msource">
1088 <tr class="method-row config-row-alt0 expandable notInherited">
1089 <td class="micon"><a class="exi" href="#expand"> </a></td>
1093 <a id="Roo.View-method-getNodes" name=".getNodes"></a>
1094 <div class="fixedFont">
1095 <span class="attributes"></span><b class="itemname">getNodes</b>
1097 (<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>)
1103 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1112 <div class="short">Gets a range template nodes.</div>
1118 Gets a range template nodes.
1125 <dl class="detailList">
1126 <dt class="heading">Parameters:</dt>
1129 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>startIndex</b>
1135 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>endIndex</b>
1146 <dl class="detailList">
1147 <dt class="heading">Returns:</dt>
1149 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of nodes</dd>
1163 <td class="msource">
1171 <tr class="method-row config-row-alt1 expandable notInherited">
1172 <td class="micon"><a class="exi" href="#expand"> </a></td>
1176 <a id="Roo.View-method-getSelectedIndexes" name=".getSelectedIndexes"></a>
1177 <div class="fixedFont">
1178 <span class="attributes"></span><b class="itemname">getSelectedIndexes</b>
1186 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1195 <div class="short">Get the indexes of the selected nodes.</div>
1201 Get the indexes of the selected nodes.
1212 <dl class="detailList">
1213 <dt class="heading">Returns:</dt>
1215 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> </dd>
1229 <td class="msource">
1237 <tr class="method-row config-row-alt0 expandable notInherited">
1238 <td class="micon"><a class="exi" href="#expand"> </a></td>
1242 <a id="Roo.View-method-getSelectedNodes" name=".getSelectedNodes"></a>
1243 <div class="fixedFont">
1244 <span class="attributes"></span><b class="itemname">getSelectedNodes</b>
1252 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
1261 <div class="short">Get the currently selected nodes.</div>
1267 Get the currently selected nodes.
1278 <dl class="detailList">
1279 <dt class="heading">Returns:</dt>
1281 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> An array of HTMLElements</dd>
1295 <td class="msource">
1303 <tr class="method-row config-row-alt1 expandable notInherited">
1304 <td class="micon"><a class="exi" href="#expand"> </a></td>
1308 <a id="Roo.View-method-getSelectionCount" name=".getSelectionCount"></a>
1309 <div class="fixedFont">
1310 <span class="attributes"></span><b class="itemname">getSelectionCount</b>
1318 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1327 <div class="short">Get the number of selected nodes.</div>
1333 Get the number of selected nodes.
1344 <dl class="detailList">
1345 <dt class="heading">Returns:</dt>
1347 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1361 <td class="msource">
1369 <tr class="method-row config-row-alt0 expandable">
1370 <td class="micon"><a class="exi" href="#expand"> </a></td>
1374 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1375 <div class="fixedFont">
1376 <span class="attributes"></span><b class="itemname">hasListener</b>
1378 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1384 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1393 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1399 Checks to see if this object has any listeners for a specified event
1406 <dl class="detailList">
1407 <dt class="heading">Parameters:</dt>
1410 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1413 <dd>The name of the event to check for</dd>
1421 <dl class="detailList">
1422 <dt class="heading">Returns:</dt>
1424 <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>
1438 <td class="msource">
1440 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1446 <tr class="method-row config-row-alt1 expandable notInherited">
1447 <td class="micon"><a class="exi" href="#expand"> </a></td>
1451 <a id="Roo.View-method-indexOf" name=".indexOf"></a>
1452 <div class="fixedFont">
1453 <span class="attributes"></span><b class="itemname">indexOf</b>
1455 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/String/Number <B><i>nodeInfo</i></B>)
1461 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1470 <div class="short">Finds the index of the passed node</div>
1476 Finds the index of the passed node
1483 <dl class="detailList">
1484 <dt class="heading">Parameters:</dt>
1487 <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>
1490 <dd>An HTMLElement template node, index of a template node or the id of a template node</dd>
1498 <dl class="detailList">
1499 <dt class="heading">Returns:</dt>
1501 <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>
1515 <td class="msource">
1523 <tr class="method-row config-row-alt0 expandable notInherited">
1524 <td class="micon"><a class="exi" href="#expand"> </a></td>
1528 <a id="Roo.View-method-isSelected" name=".isSelected"></a>
1529 <div class="fixedFont">
1530 <span class="attributes"></span><b class="itemname">isSelected</b>
1532 (<a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Number <B><i>node</i></B>)
1538 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1547 <div class="short">Returns true if the passed node is selected</div>
1553 Returns true if the passed node is selected
1560 <dl class="detailList">
1561 <dt class="heading">Parameters:</dt>
1564 <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>
1567 <dd>The node or node index</dd>
1575 <dl class="detailList">
1576 <dt class="heading">Returns:</dt>
1578 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1592 <td class="msource">
1600 <tr class="method-row config-row-alt1 expandable">
1601 <td class="micon"><a class="exi" href="#expand"> </a></td>
1605 <a id="Roo.util.Observable-method-on" name=".on"></a>
1606 <div class="fixedFont">
1607 <span class="attributes"></span><b class="itemname">on</b>
1609 (<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>)
1616 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1622 Appends an event handler to this element (shorthand for addListener)
1629 <dl class="detailList">
1630 <dt class="heading">Parameters:</dt>
1633 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1636 <dd>The type of event to listen for</dd>
1639 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1642 <dd>The method the event invokes</dd>
1645 <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>
1648 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1651 <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>
1672 <td class="msource">
1674 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1680 <tr class="method-row config-row-alt0 expandable notInherited">
1681 <td class="micon"><a class="exi" href="#expand"> </a></td>
1685 <a id="Roo.View-method-onBeforeLoad" name=".onBeforeLoad"></a>
1686 <div class="fixedFont">
1687 <span class="attributes"></span><b class="itemname">onBeforeLoad</b>
1696 <div class="short">onbeforeLoad - masks the loading area.</div>
1702 onbeforeLoad - masks the loading area.
1723 <td class="msource">
1731 <tr class="method-row config-row-alt1 expandable notInherited">
1732 <td class="micon"><a class="exi" href="#expand"> </a></td>
1736 <a id="Roo.View-method-prepareData" name=".prepareData"></a>
1737 <div class="fixedFont">
1738 <span class="attributes"></span><b class="itemname">prepareData</b>
1740 (<a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>data</i></B>)
1747 <div class="short">Function to override to reformat the data that is sent to<br/>the template for each node.</div>
1753 Function to override to reformat the data that is sent to<br/>the template for each node.<br/>DEPRICATED - use the preparedata event handler.
1760 <dl class="detailList">
1761 <dt class="heading">Parameters:</dt>
1764 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>data</b>
1767 <dd>The raw data (array of colData for a data model bound view or<br/>a JSON object for an UpdateManager bound view).</dd>
1785 <td class="msource">
1793 <tr class="method-row config-row-alt0 expandable">
1794 <td class="micon"><a class="exi" href="#expand"> </a></td>
1798 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1799 <div class="fixedFont">
1800 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1809 <div class="short">Removes all listeners for this object</div>
1815 Removes all listeners for this object
1836 <td class="msource">
1838 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1844 <tr class="method-row config-row-alt1 expandable notInherited">
1845 <td class="micon"><a class="exi" href="#expand"> </a></td>
1849 <a id="Roo.View-method-refresh" name=".refresh"></a>
1850 <div class="fixedFont">
1851 <span class="attributes"></span><b class="itemname">refresh</b>
1860 <div class="short">Refreshes the view.</div>
1866 Refreshes the view. - called by datachanged on the store. - do not call directly.
1887 <td class="msource">
1895 <tr class="method-row config-row-alt0 expandable notInherited">
1896 <td class="micon"><a class="exi" href="#expand"> </a></td>
1900 <a id="Roo.View-method-refreshNode" name=".refreshNode"></a>
1901 <div class="fixedFont">
1902 <span class="attributes"></span><b class="itemname">refreshNode</b>
1904 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1911 <div class="short">Refresh an individual node.</div>
1917 Refresh an individual node.
1924 <dl class="detailList">
1925 <dt class="heading">Parameters:</dt>
1928 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1949 <td class="msource">
1957 <tr class="method-row config-row-alt1 expandable">
1958 <td class="micon"><a class="exi" href="#expand"> </a></td>
1962 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
1963 <div class="fixedFont">
1964 <span class="attributes"></span><b class="itemname">removeListener</b>
1966 (<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>)
1973 <div class="short">Removes a listener</div>
1986 <dl class="detailList">
1987 <dt class="heading">Parameters:</dt>
1990 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1993 <dd>The type of event to listen for</dd>
1996 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1999 <dd>The handler to remove</dd>
2002 <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>
2005 <dd>(optional) The scope (this object) for the handler</dd>
2023 <td class="msource">
2025 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2031 <tr class="method-row config-row-alt0 expandable notInherited">
2032 <td class="micon"><a class="exi" href="#expand"> </a></td>
2036 <a id="Roo.View-method-select" name=".select"></a>
2037 <div class="fixedFont">
2038 <span class="attributes"></span><b class="itemname">select</b>
2040 (<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>)
2047 <div class="short">Selects nodes.</div>
2060 <dl class="detailList">
2061 <dt class="heading">Parameters:</dt>
2064 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2067 <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>
2070 <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>
2073 <dd>(optional) true to keep existing selections</dd>
2076 <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>
2079 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2097 <td class="msource">
2105 <tr class="method-row config-row-alt1 expandable notInherited">
2106 <td class="micon"><a class="exi" href="#expand"> </a></td>
2110 <a id="Roo.View-method-setStore" name=".setStore"></a>
2111 <div class="fixedFont">
2112 <span class="attributes"></span><b class="itemname">setStore</b>
2114 (Store <B><i>store</i></B>)
2121 <div class="short">Changes the data store this view uses and refresh the view.</div>
2127 Changes the data store this view uses and refresh the view.
2134 <dl class="detailList">
2135 <dt class="heading">Parameters:</dt>
2138 <span class="fixedFont">Store</span> <b>store</b>
2159 <td class="msource">
2167 <tr class="method-row config-row-alt0 expandable">
2168 <td class="micon"><a class="exi" href="#expand"> </a></td>
2172 <a id="Roo.util.Observable-method-un" name=".un"></a>
2173 <div class="fixedFont">
2174 <span class="attributes"></span><b class="itemname">un</b>
2176 (<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>)
2183 <div class="short">Removes a listener (shorthand for removeListener)</div>
2189 Removes a listener (shorthand for removeListener)
2196 <dl class="detailList">
2197 <dt class="heading">Parameters:</dt>
2200 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2203 <dd>The type of event to listen for</dd>
2206 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2209 <dd>The handler to remove</dd>
2212 <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>
2215 <dd>(optional) The scope (this object) for the handler</dd>
2233 <td class="msource">
2235 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2241 <tr class="method-row config-row-alt1 expandable notInherited">
2242 <td class="micon"><a class="exi" href="#expand"> </a></td>
2246 <a id="Roo.View-method-unselect" name=".unselect"></a>
2247 <div class="fixedFont">
2248 <span class="attributes"></span><b class="itemname">unselect</b>
2250 (<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>)
2257 <div class="short">Unselects nodes.</div>
2270 <dl class="detailList">
2271 <dt class="heading">Parameters:</dt>
2274 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/HTMLElement/String/Number</span> <b>nodeInfo</b>
2277 <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>
2280 <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>
2283 <dd>(optional) true IGNORED (for campatibility with select)</dd>
2286 <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>
2289 <dd>(optional) true to skip firing of the selectionchange vent</dd>
2307 <td class="msource">
2318 <!-- ============================== events summary / details ======================== -->
2321 <a id="Roo.View-events"></a>
2330 <table cellspacing="0" class="member-table">
2331 <caption>Events</caption>
2334 <th class="sig-header" colspan="2">Event</th>
2335 <th class="msource-header">Defined By</th>
2344 <tr class="method-row expandable config-row-alt0 notInherited">
2345 <td class="micon"><a class="exi" href="#expand"> </a></td>
2348 <a id="Roo.View-event-*beforeclick"></a>
2350 <div class="fixedFont">
2351 <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>)
2357 <div class="short">Fires before a click is processed.
2363 Fires before a click is processed. Returns false to cancel the default action.
2369 <dl class="detailList">
2370 <dt class="heading">Parameters:</dt>
2373 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2379 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2382 <dd>The index of the target node</dd>
2385 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2388 <dd>The target node</dd>
2391 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2394 <dd>The raw event object</dd>
2412 <td class="msource">
2417 <tr class="method-row expandable config-row-alt1 notInherited">
2418 <td class="micon"><a class="exi" href="#expand"> </a></td>
2421 <a id="Roo.View-event-*beforeselect"></a>
2423 <div class="fixedFont">
2424 <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>)
2430 <div class="short">Fires before a selection is made.
2436 Fires before a selection is made. If any handlers return false, the selection is cancelled.
2442 <dl class="detailList">
2443 <dt class="heading">Parameters:</dt>
2446 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2452 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2455 <dd>The node to be selected</dd>
2458 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2461 <dd>Array of currently selected nodes</dd>
2479 <td class="msource">
2484 <tr class="method-row expandable config-row-alt0 notInherited">
2485 <td class="micon"><a class="exi" href="#expand"> </a></td>
2488 <a id="Roo.View-event-*click"></a>
2490 <div class="fixedFont">
2491 <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>)
2497 <div class="short">Fires when a template node is clicked.
2503 Fires when a template node is clicked.
2509 <dl class="detailList">
2510 <dt class="heading">Parameters:</dt>
2513 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2519 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2522 <dd>The index of the target node</dd>
2525 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2528 <dd>The target node</dd>
2531 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2534 <dd>The raw event object</dd>
2552 <td class="msource">
2557 <tr class="method-row expandable config-row-alt1 notInherited">
2558 <td class="micon"><a class="exi" href="#expand"> </a></td>
2561 <a id="Roo.View-event-*contextmenu"></a>
2563 <div class="fixedFont">
2564 <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>)
2570 <div class="short">Fires when a template node is right clicked.
2576 Fires when a template node is right clicked.
2582 <dl class="detailList">
2583 <dt class="heading">Parameters:</dt>
2586 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2592 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2595 <dd>The index of the target node</dd>
2598 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2601 <dd>The target node</dd>
2604 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2607 <dd>The raw event object</dd>
2625 <td class="msource">
2630 <tr class="method-row expandable config-row-alt0 notInherited">
2631 <td class="micon"><a class="exi" href="#expand"> </a></td>
2634 <a id="Roo.View-event-*dblclick"></a>
2636 <div class="fixedFont">
2637 <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>)
2643 <div class="short">Fires when a template node is double clicked.
2649 Fires when a template node is double clicked.
2655 <dl class="detailList">
2656 <dt class="heading">Parameters:</dt>
2659 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2665 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2668 <dd>The index of the target node</dd>
2671 <span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a></span> <b>node</b>
2674 <dd>The target node</dd>
2677 <span class="fixedFont"><a href="./Roo.EventObject.html#constructor" roo:cls="Roo.EventObject.html#constructor">Roo.EventObject</a></span> <b>e</b>
2680 <dd>The raw event object</dd>
2698 <td class="msource">
2703 <tr class="method-row expandable config-row-alt1 notInherited">
2704 <td class="micon"><a class="exi" href="#expand"> </a></td>
2707 <a id="Roo.View-event-*preparedata"></a>
2709 <div class="fixedFont">
2710 <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>)
2716 <div class="short">Fires on every row to render, to allow you to change the data.
2722 Fires on every row to render, to allow you to change the data.
2728 <dl class="detailList">
2729 <dt class="heading">Parameters:</dt>
2732 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2738 <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>
2741 <dd>to be rendered (change this)</dd>
2759 <td class="msource">
2764 <tr class="method-row expandable config-row-alt0 notInherited">
2765 <td class="micon"><a class="exi" href="#expand"> </a></td>
2768 <a id="Roo.View-event-*selectionchange"></a>
2770 <div class="fixedFont">
2771 <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>)
2777 <div class="short">Fires when the selected nodes change.
2783 Fires when the selected nodes change.
2789 <dl class="detailList">
2790 <dt class="heading">Parameters:</dt>
2793 <span class="fixedFont"><a href="./Roo.View.html#constructor" roo:cls="Roo.View.html#constructor">Roo.View</a></span> <b>this</b>
2799 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>selections</b>
2802 <dd>Array of the selected nodes</dd>
2820 <td class="msource">
2832 <!-- ============================== footer ================================= -->
2833 <div class="fineprint" style="clear:both">
2835 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Wed Apr 16 2014 15:10:13 GMT+0800 (HKT)
2837 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>