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 notInherited">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.grid.CellSelectionModel-cfg-enter_is_tab" name=".enter_is_tab"></a>
133 <div class="fixedFont">
134 <b class="itemname">enter_is_tab</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
140 <div class="short">Enter behaves the same as tab.</div>
144 <div class="long">Enter behaves the same as tab. (eg. goes to next cell) default: false</div>
152 Roo.grid.CellSelectionModel
158 <tr class="config-row expandable config-row-alt1">
159 <td class="micon"><a class="exi" href="#expand"> </a></td>
162 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
163 <div class="fixedFont">
164 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
170 <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>
174 <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>
182 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
198 <!-- ============================== public properties ==================== -->
202 <a id="Roo.grid.CellSelectionModel-props"></a>
208 <table cellspacing="0" class="member-table">
209 <caption class="Empty">Public Properties - Has None</caption>
215 <!-- ============================== methods summary / details ======================== -->
218 <a id="Roo.grid.CellSelectionModel-methods"></a>
219 <!-- constructor?? -->
226 <!-- then dynamics first -->
233 <table cellspacing="0" class="member-table">
234 <caption>Public Methods</caption>
236 <th class="sig-header" colspan="2">Method</th>
237 <th class="msource-header">Defined By</th>
247 <tr class="method-row config-row-alt0 expandable notInherited">
248 <td class="micon"><a class="exi" href="#expand"> </a></td>
252 <a id="Roo.grid-method-CellSelectionModel" name=".CellSelectionModel"></a>
253 <div class="fixedFont">
254 <span class="attributes">new <B>Roo.grid.</B></span><b class="itemname">CellSelectionModel</b>
256 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
264 <div class="short">Create a new Roo.grid.CellSelectionModel</div>
271 Create a new Roo.grid.CellSelectionModel
274 <dl class="detailList">
275 <dt class="heading">Parameters:</dt>
278 <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>
281 <dd>The object containing the configuration of this model.</dd>
305 <tr class="method-row config-row-alt1 expandable">
306 <td class="micon"><a class="exi" href="#expand"> </a></td>
310 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
311 <div class="fixedFont">
312 <span class="attributes"></span><b class="itemname">addEvents</b>
314 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
321 <div class="short">Used to define events on this Observable</div>
327 Used to define events on this Observable
334 <dl class="detailList">
335 <dt class="heading">Parameters:</dt>
338 <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>
341 <dd>The object with the events defined</dd>
361 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
367 <tr class="method-row config-row-alt0 expandable">
368 <td class="micon"><a class="exi" href="#expand"> </a></td>
372 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
373 <div class="fixedFont">
374 <span class="attributes"></span><b class="itemname">addListener</b>
376 (<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>)
383 <div class="short">Appends an event handler to this component</div>
389 Appends an event handler to this component
396 <dl class="detailList">
397 <dt class="heading">Parameters:</dt>
400 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
403 <dd>The type of event to listen for</dd>
406 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
409 <dd>The method the event invokes</dd>
412 <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>
415 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
418 <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>
421 <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>
441 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
447 <tr class="method-row config-row-alt1 expandable notInherited">
448 <td class="micon"><a class="exi" href="#expand"> </a></td>
452 <a id="Roo.grid.CellSelectionModel-method-clearSelections" name=".clearSelections"></a>
453 <div class="fixedFont">
454 <span class="attributes"></span><b class="itemname">clearSelections</b>
456 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>true</i></B>)
463 <div class="short">Clears all selections.</div>
469 Clears all selections.
476 <dl class="detailList">
477 <dt class="heading">Parameters:</dt>
480 <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>
483 <dd>to prevent the gridview from being notified about the change.</dd>
503 Roo.grid.CellSelectionModel
509 <tr class="method-row config-row-alt0 expandable">
510 <td class="micon"><a class="exi" href="#expand"> </a></td>
514 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
515 <div class="fixedFont">
516 <span class="attributes"></span><b class="itemname">fireEvent</b>
518 (<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>)
524 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
533 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
539 Fires the specified event with the passed parameters (minus the event name).
546 <dl class="detailList">
547 <dt class="heading">Parameters:</dt>
550 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
556 <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>
559 <dd>Variable number of parameters are passed to handlers</dd>
567 <dl class="detailList">
568 <dt class="heading">Returns:</dt>
570 <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>
586 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
592 <tr class="method-row config-row-alt1 expandable notInherited">
593 <td class="micon"><a class="exi" href="#expand"> </a></td>
597 <a id="Roo.grid.CellSelectionModel-method-getSelectedCell" name=".getSelectedCell"></a>
598 <div class="fixedFont">
599 <span class="attributes"></span><b class="itemname">getSelectedCell</b>
607 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
616 <div class="short">Returns the currently selected cell,.</div>
622 Returns the currently selected cell,.
633 <dl class="detailList">
634 <dt class="heading">Returns:</dt>
636 <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>
652 Roo.grid.CellSelectionModel
658 <tr class="method-row config-row-alt0 expandable">
659 <td class="micon"><a class="exi" href="#expand"> </a></td>
663 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
664 <div class="fixedFont">
665 <span class="attributes"></span><b class="itemname">hasListener</b>
667 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
673 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
682 <div class="short">Checks to see if this object has any listeners for a specified event</div>
688 Checks to see if this object has any listeners for a specified event
695 <dl class="detailList">
696 <dt class="heading">Parameters:</dt>
699 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
702 <dd>The name of the event to check for</dd>
710 <dl class="detailList">
711 <dt class="heading">Returns:</dt>
713 <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>
729 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
735 <tr class="method-row config-row-alt1 expandable notInherited">
736 <td class="micon"><a class="exi" href="#expand"> </a></td>
740 <a id="Roo.grid.CellSelectionModel-method-hasSelection" name=".hasSelection"></a>
741 <div class="fixedFont">
742 <span class="attributes"></span><b class="itemname">hasSelection</b>
750 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
759 <div class="short">Returns true if there is a selection.</div>
765 Returns true if there is a selection.
776 <dl class="detailList">
777 <dt class="heading">Returns:</dt>
779 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
795 Roo.grid.CellSelectionModel
801 <tr class="method-row config-row-alt0 expandable">
802 <td class="micon"><a class="exi" href="#expand"> </a></td>
806 <a id="Roo.grid.AbstractSelectionModel-method-isLocked" name=".isLocked"></a>
807 <div class="fixedFont">
808 <span class="attributes"></span><b class="itemname">isLocked</b>
816 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
825 <div class="short">Returns true if the selections are locked.</div>
831 Returns true if the selections are locked.
842 <dl class="detailList">
843 <dt class="heading">Returns:</dt>
845 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
861 <a href="./Roo.grid.AbstractSelectionModel.html#constructor" roo:cls="Roo.grid.AbstractSelectionModel.html#constructor">Roo.grid.AbstractSelectionModel</a>
867 <tr class="method-row config-row-alt1 expandable">
868 <td class="micon"><a class="exi" href="#expand"> </a></td>
872 <a id="Roo.grid.AbstractSelectionModel-method-lock" name=".lock"></a>
873 <div class="fixedFont">
874 <span class="attributes"></span><b class="itemname">lock</b>
883 <div class="short">Locks the selections.</div>
889 Locks the selections.
912 <a href="./Roo.grid.AbstractSelectionModel.html#constructor" roo:cls="Roo.grid.AbstractSelectionModel.html#constructor">Roo.grid.AbstractSelectionModel</a>
918 <tr class="method-row config-row-alt0 expandable">
919 <td class="micon"><a class="exi" href="#expand"> </a></td>
923 <a id="Roo.util.Observable-method-on" name=".on"></a>
924 <div class="fixedFont">
925 <span class="attributes"></span><b class="itemname">on</b>
927 (<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>)
934 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
940 Appends an event handler to this element (shorthand for addListener)
947 <dl class="detailList">
948 <dt class="heading">Parameters:</dt>
951 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
954 <dd>The type of event to listen for</dd>
957 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
960 <dd>The method the event invokes</dd>
963 <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>
966 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
969 <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>
992 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
998 <tr class="method-row config-row-alt1 expandable notInherited">
999 <td class="micon"><a class="exi" href="#expand"> </a></td>
1003 <a id="Roo.grid.CellSelectionModel-method-onEditorKey" name=".onEditorKey"></a>
1004 <div class="fixedFont">
1005 <span class="attributes"></span><b class="itemname">onEditorKey</b>
1007 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>field</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>e</i></B>)
1014 <div class="short">Selects a cell.</div>
1027 <dl class="detailList">
1028 <dt class="heading">Parameters:</dt>
1031 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>field</b>
1034 <dd>(not used) - as it's normally used as a listener</dd>
1037 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>e</b>
1040 <dd>- event - fake it by using<br/><br/>var e = Roo.EventObjectImpl.prototype;<br/>e.keyCode = e.TAB</dd>
1058 <td class="msource">
1060 Roo.grid.CellSelectionModel
1066 <tr class="method-row config-row-alt0 expandable">
1067 <td class="micon"><a class="exi" href="#expand"> </a></td>
1071 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1072 <div class="fixedFont">
1073 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1082 <div class="short">Removes all listeners for this object</div>
1088 Removes all listeners for this object
1109 <td class="msource">
1111 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1117 <tr class="method-row config-row-alt1 expandable">
1118 <td class="micon"><a class="exi" href="#expand"> </a></td>
1122 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
1123 <div class="fixedFont">
1124 <span class="attributes"></span><b class="itemname">removeListener</b>
1126 (<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>)
1133 <div class="short">Removes a listener</div>
1146 <dl class="detailList">
1147 <dt class="heading">Parameters:</dt>
1150 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1153 <dd>The type of event to listen for</dd>
1156 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1159 <dd>The handler to remove</dd>
1162 <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>
1165 <dd>(optional) The scope (this object) for the handler</dd>
1183 <td class="msource">
1185 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1191 <tr class="method-row config-row-alt0 expandable notInherited">
1192 <td class="micon"><a class="exi" href="#expand"> </a></td>
1196 <a id="Roo.grid.CellSelectionModel-method-select" name=".select"></a>
1197 <div class="fixedFont">
1198 <span class="attributes"></span><b class="itemname">select</b>
1200 (<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>)
1207 <div class="short">Selects a cell.</div>
1220 <dl class="detailList">
1221 <dt class="heading">Parameters:</dt>
1224 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>rowIndex</b>
1230 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>collIndex</b>
1251 <td class="msource">
1253 Roo.grid.CellSelectionModel
1259 <tr class="method-row config-row-alt1 expandable">
1260 <td class="micon"><a class="exi" href="#expand"> </a></td>
1264 <a id="Roo.util.Observable-method-un" name=".un"></a>
1265 <div class="fixedFont">
1266 <span class="attributes"></span><b class="itemname">un</b>
1268 (<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>)
1275 <div class="short">Removes a listener (shorthand for removeListener)</div>
1281 Removes a listener (shorthand for removeListener)
1288 <dl class="detailList">
1289 <dt class="heading">Parameters:</dt>
1292 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1295 <dd>The type of event to listen for</dd>
1298 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1301 <dd>The handler to remove</dd>
1304 <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>
1307 <dd>(optional) The scope (this object) for the handler</dd>
1325 <td class="msource">
1327 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1333 <tr class="method-row config-row-alt0 expandable">
1334 <td class="micon"><a class="exi" href="#expand"> </a></td>
1338 <a id="Roo.grid.AbstractSelectionModel-method-unlock" name=".unlock"></a>
1339 <div class="fixedFont">
1340 <span class="attributes"></span><b class="itemname">unlock</b>
1349 <div class="short">Unlocks the selections.</div>
1355 Unlocks the selections.
1376 <td class="msource">
1378 <a href="./Roo.grid.AbstractSelectionModel.html#constructor" roo:cls="Roo.grid.AbstractSelectionModel.html#constructor">Roo.grid.AbstractSelectionModel</a>
1387 <!-- ============================== events summary / details ======================== -->
1390 <a id="Roo.grid.CellSelectionModel-events"></a>
1399 <table cellspacing="0" class="member-table">
1400 <caption>Events</caption>
1403 <th class="sig-header" colspan="2">Event</th>
1404 <th class="msource-header">Defined By</th>
1413 <tr class="method-row expandable config-row-alt0 notInherited">
1414 <td class="micon"><a class="exi" href="#expand"> </a></td>
1417 <a id="Roo.grid.CellSelectionModel-event-*beforerowselect"></a>
1419 <div class="fixedFont">
1420 <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>)
1426 <div class="short">Fires before a cell is selected.
1432 Fires before a cell is selected.
1438 <dl class="detailList">
1439 <dt class="heading">Parameters:</dt>
1442 <span class="fixedFont">SelectionModel</span> <b>this</b>
1448 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>rowIndex</b>
1451 <dd>The selected row index</dd>
1454 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>colIndex</b>
1457 <dd>The selected cell index</dd>
1475 <td class="msource">
1476 Roo.grid.CellSelectionModel
1480 <tr class="method-row expandable config-row-alt1 notInherited">
1481 <td class="micon"><a class="exi" href="#expand"> </a></td>
1484 <a id="Roo.grid.CellSelectionModel-event-*cellselect"></a>
1486 <div class="fixedFont">
1487 <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>)
1493 <div class="short">Fires when a cell is selected.
1499 Fires when a cell is selected.
1505 <dl class="detailList">
1506 <dt class="heading">Parameters:</dt>
1509 <span class="fixedFont">SelectionModel</span> <b>this</b>
1515 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>rowIndex</b>
1518 <dd>The selected row index</dd>
1521 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>colIndex</b>
1524 <dd>The selected cell index</dd>
1542 <td class="msource">
1543 Roo.grid.CellSelectionModel
1547 <tr class="method-row expandable config-row-alt0 notInherited">
1548 <td class="micon"><a class="exi" href="#expand"> </a></td>
1551 <a id="Roo.grid.CellSelectionModel-event-*selectionchange"></a>
1553 <div class="fixedFont">
1554 <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>)
1560 <div class="short">Fires when the active selection changes.
1566 Fires when the active selection changes.
1572 <dl class="detailList">
1573 <dt class="heading">Parameters:</dt>
1576 <span class="fixedFont">SelectionModel</span> <b>this</b>
1582 <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>
1585 <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>
1603 <td class="msource">
1604 Roo.grid.CellSelectionModel
1608 <tr class="method-row expandable config-row-alt1 notInherited">
1609 <td class="micon"><a class="exi" href="#expand"> </a></td>
1612 <a id="Roo.grid.CellSelectionModel-event-*tabend"></a>
1614 <div class="fixedFont">
1615 <b class="itemname">tabend</b> (SelectionModel <B><i>this</i></B>)
1621 <div class="short">Fires when the tab (or enter) was pressed on the last editable cell<br/>You can use this to trigger add new row.
1627 Fires when the tab (or enter) was pressed on the last editable cell<br/>You can use this to trigger add new row.
1633 <dl class="detailList">
1634 <dt class="heading">Parameters:</dt>
1637 <span class="fixedFont">SelectionModel</span> <b>this</b>
1658 <td class="msource">
1659 Roo.grid.CellSelectionModel
1670 <!-- ============================== footer ================================= -->
1671 <div class="fineprint" style="clear:both">
1673 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Dec 16 2011 12:06:08 GMT+0800 (HKT)
1675 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>