Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / docs / source / AbstractSelectionModel.html
1 <html>\r
2 <head>\r
3   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    \r
4   <title>The source code</title>\r
5     <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
6     <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
7 </head>\r
8 <body  onload="prettyPrint();">\r
9     <pre class="prettyprint lang-js"><div id="cls-Ext.grid.AbstractSelectionModel"></div>/**\r
10  * @class Ext.grid.AbstractSelectionModel\r
11  * @extends Ext.util.Observable\r
12  * Abstract base class for grid SelectionModels.  It provides the interface that should be\r
13  * implemented by descendant classes.  This class should not be directly instantiated.\r
14  * @constructor\r
15  */\r
16 Ext.grid.AbstractSelectionModel = Ext.extend(Ext.util.Observable,  {\r
17     <div id="prop-Ext.grid.AbstractSelectionModel-grid"></div>/**\r
18      * The GridPanel for which this SelectionModel is handling selection. Read-only.\r
19      * @type Object\r
20      * @property grid\r
21      */\r
22     \r
23     constructor : function(){\r
24         this.locked = false;\r
25         Ext.grid.AbstractSelectionModel.superclass.constructor.call(this);\r
26     },\r
27 \r
28     /** @ignore Called by the grid automatically. Do not call directly. */\r
29     init : function(grid){\r
30         this.grid = grid;\r
31         this.initEvents();\r
32     },\r
33 \r
34     <div id="method-Ext.grid.AbstractSelectionModel-lock"></div>/**\r
35      * Locks the selections.\r
36      */\r
37     lock : function(){\r
38         this.locked = true;\r
39     },\r
40 \r
41     <div id="method-Ext.grid.AbstractSelectionModel-unlock"></div>/**\r
42      * Unlocks the selections.\r
43      */\r
44     unlock : function(){\r
45         this.locked = false;\r
46     },\r
47 \r
48     <div id="method-Ext.grid.AbstractSelectionModel-isLocked"></div>/**\r
49      * Returns true if the selections are locked.\r
50      * @return {Boolean}\r
51      */\r
52     isLocked : function(){\r
53         return this.locked;\r
54     },\r
55     \r
56     destroy: function(){\r
57         this.purgeListeners();\r
58     }\r
59 });</pre>    \r
60 </body>\r
61 </html>