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