3
* Copyright(c) 2006-2010 Ext JS, Inc.
5
* http://www.extjs.com/license
8
* @class Ext.grid.AbstractSelectionModel
9
* @extends Ext.util.Observable
10
* Abstract base class for grid SelectionModels. It provides the interface that should be
11
* implemented by descendant classes. This class should not be directly instantiated.
14
Ext.grid.AbstractSelectionModel = Ext.extend(Ext.util.Observable, {
16
* The GridPanel for which this SelectionModel is handling selection. Read-only.
21
constructor : function(){
23
Ext.grid.AbstractSelectionModel.superclass.constructor.call(this);
26
/** @ignore Called by the grid automatically. Do not call directly. */
27
init : function(grid){
30
delete this.lockOnInit;
38
* Locks the selections.
43
// If the grid has been set, then the view is already initialized.
48
beforerefresh: this.sortUnLock,
49
refresh: this.sortLock
52
this.lockOnInit = true;
57
// set the lock states before and after a view refresh
58
sortLock : function() {
62
// set the lock states before and after a view refresh
63
sortUnLock : function() {
68
* Unlocks the selections.
76
// If the grid has been set, then the view is already initialized.
79
gv.un('beforerefresh', this.sortUnLock, this);
80
gv.un('refresh', this.sortLock, this);
82
delete this.lockOnInit;
88
* Returns true if the selections are locked.
91
isLocked : function(){
97
this.purgeListeners();
b'\\ No newline at end of file'