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