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.grid.CellSelectionModel</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.grid.CellSelectionModel-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.grid.CellSelectionModel-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.grid.CellSelectionModel-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.grid.CellSelectionModel-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.grid.AbstractSelectionModel.html#constructor" roo:cls="Roo.grid.AbstractSelectionModel.html#constructor">Roo.grid.AbstractSelectionModel</a>
48 <img src="../../images/default/s.gif" height="1" width="40"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.grid.CellSelectionModel
53 <!-- ============================== class title / details ============================ -->
56 <h1 class="classTitle">
58 Class Roo.grid.CellSelectionModel
61 <table cellspacing="0" class="class-summary-table">
63 <tr><td class="label">Package:</td><td class="hd-info">Roo.grid</td></tr>
65 <tr><td class="label">Defined In:</td><td class="hd-info">
67 <a href="./src/Roo_grid_CellSelectionModel.js.html">Roo/grid/CellSelectionModel.js</a>.
70 <tr><td class="label">Class:</td><td class="hd-info">CellSelectionModel</td></tr>
75 <tr><td class="label">Extends:</td><td class="hd-info">
76 <a href="./Roo.grid.AbstractSelectionModel.html#constructor" roo:cls="Roo.grid.AbstractSelectionModel.html#constructor">Roo.grid.AbstractSelectionModel</a>
84 <!-- ============================== class summary ========================== -->
85 <div class="description">
86 This class provides the basic implementation for cell selection in a grid.
90 <!-- ============================== Class comment block... ========================== -->
92 <div class="comments">
93 <b>Class Comments / Notes</B> =>
94 <u onclick="parent.CommentDialog.showCommentId = 'Roo.grid.CellSelectionModel';">[Add Your comment/notes about this class]</u>
96 <iframe frameborder="0" id="comments-Roo.grid" style="border: none;width:100%;"
97 src="/blog.php/GtkDjsComments/Roo.grid.CellSelectionModel.html"></iframe>
102 <!-- ============================== config options ========================== -->
107 <div class="hr"></div>
108 <a id="Roo.grid.CellSelectionModel-configs"></a>
114 <table cellspacing="0" class="member-table">
115 <caption>Config Options (Usually are also Properties)</caption>
119 <th class="sig-header" colspan="2">Options</th>
121 <th class="msource-header">Defined By</th>
128 <tr class="config-row expandable config-row-alt0">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
133 <div class="fixedFont">
134 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
140 <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>
144 <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>
152 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
168 <!-- ============================== public properties ==================== -->
172 <a id="Roo.grid.CellSelectionModel-props"></a>
178 <table cellspacing="0" class="member-table">
179 <caption class="Empty">Public Properties - Has None</caption>
185 <!-- ============================== methods summary / details ======================== -->
188 <a id="Roo.grid.CellSelectionModel-methods"></a>
189 <!-- constructor?? -->
196 <!-- then dynamics first -->
203 <table cellspacing="0" class="member-table">
204 <caption>Public Methods</caption>
206 <th class="sig-header" colspan="2">Method</th>
207 <th class="msource-header">Defined By</th>
217 <tr class="method-row config-row-alt0 expandable notInherited">
218 <td class="micon"><a class="exi" href="#expand"> </a></td>
222 <a id="Roo.grid-method-CellSelectionModel" name=".CellSelectionModel"></a>
223 <div class="fixedFont">
224 <span class="attributes">new <B>Roo.grid.</B></span><b class="itemname">CellSelectionModel</b>
226 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
234 <div class="short">Create a new Roo.grid.CellSelectionModel</div>
241 Create a new Roo.grid.CellSelectionModel
244 <dl class="detailList">
245 <dt class="heading">Parameters:</dt>
248 <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>
251 <dd>The object containing the configuration of this model.</dd>
275 <tr class="method-row config-row-alt1 expandable">
276 <td class="micon"><a class="exi" href="#expand"> </a></td>
280 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
281 <div class="fixedFont">
282 <span class="attributes"></span><b class="itemname">addEvents</b>
284 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
291 <div class="short">Used to define events on this Observable</div>
297 Used to define events on this Observable
304 <dl class="detailList">
305 <dt class="heading">Parameters:</dt>
308 <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>
311 <dd>The object with the events defined</dd>
331 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
337 <tr class="method-row config-row-alt0 expandable">
338 <td class="micon"><a class="exi" href="#expand"> </a></td>
342 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
343 <div class="fixedFont">
344 <span class="attributes"></span><b class="itemname">addListener</b>
346 (<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>)
353 <div class="short">Appends an event handler to this component</div>
359 Appends an event handler to this component
366 <dl class="detailList">
367 <dt class="heading">Parameters:</dt>
370 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
373 <dd>The type of event to listen for</dd>
376 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
379 <dd>The method the event invokes</dd>
382 <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>
385 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
388 <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>
391 <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>
411 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
417 <tr class="method-row config-row-alt1 expandable notInherited">
418 <td class="micon"><a class="exi" href="#expand"> </a></td>
422 <a id="Roo.grid.CellSelectionModel-method-clearSelections" name=".clearSelections"></a>
423 <div class="fixedFont">
424 <span class="attributes"></span><b class="itemname">clearSelections</b>
426 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>true</i></B>)
433 <div class="short">Clears all selections.</div>
439 Clears all selections.
446 <dl class="detailList">
447 <dt class="heading">Parameters:</dt>
450 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>true</b>
453 <dd>to prevent the gridview from being notified about the change.</dd>
473 Roo.grid.CellSelectionModel
479 <tr class="method-row config-row-alt0 expandable">
480 <td class="micon"><a class="exi" href="#expand"> </a></td>
484 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
485 <div class="fixedFont">
486 <span class="attributes"></span><b class="itemname">fireEvent</b>
488 (<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>)
494 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
503 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
509 Fires the specified event with the passed parameters (minus the event name).
516 <dl class="detailList">
517 <dt class="heading">Parameters:</dt>
520 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
526 <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>
529 <dd>Variable number of parameters are passed to handlers</dd>
537 <dl class="detailList">
538 <dt class="heading">Returns:</dt>
540 <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>
556 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
562 <tr class="method-row config-row-alt1 expandable notInherited">
563 <td class="micon"><a class="exi" href="#expand"> </a></td>
567 <a id="Roo.grid.CellSelectionModel-method-getSelectedCell" name=".getSelectedCell"></a>
568 <div class="fixedFont">
569 <span class="attributes"></span><b class="itemname">getSelectedCell</b>
577 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
586 <div class="short">Returns the currently selected cell,.</div>
592 Returns the currently selected cell,.
603 <dl class="detailList">
604 <dt class="heading">Returns:</dt>
606 <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> The selected cell (row, column) or null if none selected.</dd>
622 Roo.grid.CellSelectionModel
628 <tr class="method-row config-row-alt0 expandable">
629 <td class="micon"><a class="exi" href="#expand"> </a></td>
633 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
634 <div class="fixedFont">
635 <span class="attributes"></span><b class="itemname">hasListener</b>
637 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
643 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
652 <div class="short">Checks to see if this object has any listeners for a specified event</div>
658 Checks to see if this object has any listeners for a specified event
665 <dl class="detailList">
666 <dt class="heading">Parameters:</dt>
669 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
672 <dd>The name of the event to check for</dd>
680 <dl class="detailList">
681 <dt class="heading">Returns:</dt>
683 <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>
699 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
705 <tr class="method-row config-row-alt1 expandable notInherited">
706 <td class="micon"><a class="exi" href="#expand"> </a></td>
710 <a id="Roo.grid.CellSelectionModel-method-hasSelection" name=".hasSelection"></a>
711 <div class="fixedFont">
712 <span class="attributes"></span><b class="itemname">hasSelection</b>
720 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
729 <div class="short">Returns true if there is a selection.</div>
735 Returns true if there is a selection.
746 <dl class="detailList">
747 <dt class="heading">Returns:</dt>
749 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
765 Roo.grid.CellSelectionModel
771 <tr class="method-row config-row-alt0 expandable">
772 <td class="micon"><a class="exi" href="#expand"> </a></td>
776 <a id="Roo.grid.AbstractSelectionModel-method-isLocked" name=".isLocked"></a>
777 <div class="fixedFont">
778 <span class="attributes"></span><b class="itemname">isLocked</b>
786 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
795 <div class="short">Returns true if the selections are locked.</div>
801 Returns true if the selections are locked.
812 <dl class="detailList">
813 <dt class="heading">Returns:</dt>
815 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
831 <a href="./Roo.grid.AbstractSelectionModel.html#constructor" roo:cls="Roo.grid.AbstractSelectionModel.html#constructor">Roo.grid.AbstractSelectionModel</a>
837 <tr class="method-row config-row-alt1 expandable">
838 <td class="micon"><a class="exi" href="#expand"> </a></td>
842 <a id="Roo.grid.AbstractSelectionModel-method-lock" name=".lock"></a>
843 <div class="fixedFont">
844 <span class="attributes"></span><b class="itemname">lock</b>
853 <div class="short">Locks the selections.</div>
859 Locks the selections.
882 <a href="./Roo.grid.AbstractSelectionModel.html#constructor" roo:cls="Roo.grid.AbstractSelectionModel.html#constructor">Roo.grid.AbstractSelectionModel</a>
888 <tr class="method-row config-row-alt0 expandable">
889 <td class="micon"><a class="exi" href="#expand"> </a></td>
893 <a id="Roo.util.Observable-method-on" name=".on"></a>
894 <div class="fixedFont">
895 <span class="attributes"></span><b class="itemname">on</b>
897 (<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>)
904 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
910 Appends an event handler to this element (shorthand for addListener)
917 <dl class="detailList">
918 <dt class="heading">Parameters:</dt>
921 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
924 <dd>The type of event to listen for</dd>
927 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
930 <dd>The method the event invokes</dd>
933 <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>
936 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
939 <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>
962 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
968 <tr class="method-row config-row-alt1 expandable">
969 <td class="micon"><a class="exi" href="#expand"> </a></td>
973 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
974 <div class="fixedFont">
975 <span class="attributes"></span><b class="itemname">purgeListeners</b>
984 <div class="short">Removes all listeners for this object</div>
990 Removes all listeners for this object
1011 <td class="msource">
1013 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1019 <tr class="method-row config-row-alt0 expandable">
1020 <td class="micon"><a class="exi" href="#expand"> </a></td>
1024 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
1025 <div class="fixedFont">
1026 <span class="attributes"></span><b class="itemname">removeListener</b>
1028 (<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>)
1035 <div class="short">Removes a listener</div>
1048 <dl class="detailList">
1049 <dt class="heading">Parameters:</dt>
1052 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1055 <dd>The type of event to listen for</dd>
1058 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1061 <dd>The handler to remove</dd>
1064 <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>
1067 <dd>(optional) The scope (this object) for the handler</dd>
1085 <td class="msource">
1087 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1093 <tr class="method-row config-row-alt1 expandable notInherited">
1094 <td class="micon"><a class="exi" href="#expand"> </a></td>
1098 <a id="Roo.grid.CellSelectionModel-method-select" name=".select"></a>
1099 <div class="fixedFont">
1100 <span class="attributes"></span><b class="itemname">select</b>
1102 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>rowIndex</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>collIndex</i></B>)
1109 <div class="short">Selects a cell.</div>
1122 <dl class="detailList">
1123 <dt class="heading">Parameters:</dt>
1126 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>rowIndex</b>
1132 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>collIndex</b>
1153 <td class="msource">
1155 Roo.grid.CellSelectionModel
1161 <tr class="method-row config-row-alt0 expandable">
1162 <td class="micon"><a class="exi" href="#expand"> </a></td>
1166 <a id="Roo.util.Observable-method-un" name=".un"></a>
1167 <div class="fixedFont">
1168 <span class="attributes"></span><b class="itemname">un</b>
1170 (<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>)
1177 <div class="short">Removes a listener (shorthand for removeListener)</div>
1183 Removes a listener (shorthand for removeListener)
1190 <dl class="detailList">
1191 <dt class="heading">Parameters:</dt>
1194 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1197 <dd>The type of event to listen for</dd>
1200 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1203 <dd>The handler to remove</dd>
1206 <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>
1209 <dd>(optional) The scope (this object) for the handler</dd>
1227 <td class="msource">
1229 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1235 <tr class="method-row config-row-alt1 expandable">
1236 <td class="micon"><a class="exi" href="#expand"> </a></td>
1240 <a id="Roo.grid.AbstractSelectionModel-method-unlock" name=".unlock"></a>
1241 <div class="fixedFont">
1242 <span class="attributes"></span><b class="itemname">unlock</b>
1251 <div class="short">Unlocks the selections.</div>
1257 Unlocks the selections.
1278 <td class="msource">
1280 <a href="./Roo.grid.AbstractSelectionModel.html#constructor" roo:cls="Roo.grid.AbstractSelectionModel.html#constructor">Roo.grid.AbstractSelectionModel</a>
1289 <!-- ============================== events summary / details ======================== -->
1292 <a id="Roo.grid.CellSelectionModel-events"></a>
1301 <table cellspacing="0" class="member-table">
1302 <caption>Events</caption>
1305 <th class="sig-header" colspan="2">Event</th>
1306 <th class="msource-header">Defined By</th>
1315 <tr class="method-row expandable config-row-alt0 notInherited">
1316 <td class="micon"><a class="exi" href="#expand"> </a></td>
1319 <a id="Roo.grid.CellSelectionModel-event-*beforerowselect"></a>
1321 <div class="fixedFont">
1322 <b class="itemname">beforerowselect</b> (SelectionModel <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>rowIndex</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>colIndex</i></B>)
1328 <div class="short">Fires before a cell is selected.
1334 Fires before a cell is selected.
1340 <dl class="detailList">
1341 <dt class="heading">Parameters:</dt>
1344 <span class="fixedFont">SelectionModel</span> <b>this</b>
1350 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>rowIndex</b>
1353 <dd>The selected row index</dd>
1356 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>colIndex</b>
1359 <dd>The selected cell index</dd>
1377 <td class="msource">
1378 Roo.grid.CellSelectionModel
1382 <tr class="method-row expandable config-row-alt1 notInherited">
1383 <td class="micon"><a class="exi" href="#expand"> </a></td>
1386 <a id="Roo.grid.CellSelectionModel-event-*cellselect"></a>
1388 <div class="fixedFont">
1389 <b class="itemname">cellselect</b> (SelectionModel <B><i>this</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>rowIndex</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>colIndex</i></B>)
1395 <div class="short">Fires when a cell is selected.
1401 Fires when a cell is selected.
1407 <dl class="detailList">
1408 <dt class="heading">Parameters:</dt>
1411 <span class="fixedFont">SelectionModel</span> <b>this</b>
1417 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>rowIndex</b>
1420 <dd>The selected row index</dd>
1423 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>colIndex</b>
1426 <dd>The selected cell index</dd>
1444 <td class="msource">
1445 Roo.grid.CellSelectionModel
1449 <tr class="method-row expandable config-row-alt0 notInherited">
1450 <td class="micon"><a class="exi" href="#expand"> </a></td>
1453 <a id="Roo.grid.CellSelectionModel-event-*selectionchange"></a>
1455 <div class="fixedFont">
1456 <b class="itemname">selectionchange</b> (SelectionModel <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>selection</i></B>)
1462 <div class="short">Fires when the active selection changes.
1468 Fires when the active selection changes.
1474 <dl class="detailList">
1475 <dt class="heading">Parameters:</dt>
1478 <span class="fixedFont">SelectionModel</span> <b>this</b>
1484 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>selection</b>
1487 <dd>null for no selection or an object (o) with two properties<br/> <ul><br/> <li>o.record: the record object for the row the selection is in</li><br/> <li>o.cell: An array of [rowIndex, columnIndex]</li><br/> </ul></dd>
1505 <td class="msource">
1506 Roo.grid.CellSelectionModel
1517 <!-- ============================== footer ================================= -->
1518 <div class="fineprint" style="clear:both">
1520 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Apr 01 2011 15:13:01 GMT+0800 (HKT)
1522 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>