Last change
on this file since 619 was
619,
checked in by ramonb, 15 years ago
|
lib/:
- added new AJAX dependancies: ExtJS, pChart, Lightbox2
|
File size:
1.2 KB
|
Rev | Line | |
---|
[619] | 1 | /* |
---|
| 2 | * Ext JS Library 2.2.1 |
---|
| 3 | * Copyright(c) 2006-2009, Ext JS, LLC. |
---|
| 4 | * licensing@extjs.com |
---|
| 5 | * |
---|
| 6 | * http://extjs.com/license |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | /** |
---|
| 10 | * @class Ext.grid.AbstractSelectionModel |
---|
| 11 | * @extends Ext.util.Observable |
---|
| 12 | * Abstract base class for grid SelectionModels. It provides the interface that should be |
---|
| 13 | * implemented by descendant classes. This class should not be directly instantiated. |
---|
| 14 | * @constructor |
---|
| 15 | */ |
---|
| 16 | Ext.grid.AbstractSelectionModel = function(){ |
---|
| 17 | this.locked = false; |
---|
| 18 | Ext.grid.AbstractSelectionModel.superclass.constructor.call(this); |
---|
| 19 | }; |
---|
| 20 | |
---|
| 21 | Ext.extend(Ext.grid.AbstractSelectionModel, Ext.util.Observable, { |
---|
| 22 | /** @ignore Called by the grid automatically. Do not call directly. */ |
---|
| 23 | init : function(grid){ |
---|
| 24 | this.grid = grid; |
---|
| 25 | this.initEvents(); |
---|
| 26 | }, |
---|
| 27 | |
---|
| 28 | /** |
---|
| 29 | * Locks the selections. |
---|
| 30 | */ |
---|
| 31 | lock : function(){ |
---|
| 32 | this.locked = true; |
---|
| 33 | }, |
---|
| 34 | |
---|
| 35 | /** |
---|
| 36 | * Unlocks the selections. |
---|
| 37 | */ |
---|
| 38 | unlock : function(){ |
---|
| 39 | this.locked = false; |
---|
| 40 | }, |
---|
| 41 | |
---|
| 42 | /** |
---|
| 43 | * Returns true if the selections are locked. |
---|
| 44 | * @return {Boolean} |
---|
| 45 | */ |
---|
| 46 | isLocked : function(){ |
---|
| 47 | return this.locked; |
---|
| 48 | } |
---|
| 49 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.