📄 abstractselectionmodel.js
字号:
/**
* @class Ext.grid.AbstractSelectionModel
* @extends Ext.util.Observable
* Grid选区模型(SelectionModels)基本抽象类。本类提供了子类要实现的接口。该类不能被直接实例化。
* @constructor
*/
/**
* @class Ext.grid.AbstractSelectionModel
* @extends Ext.util.Observable
* Abstract base class for grid SelectionModels. It provides the interface that should be
* implemented by descendant classes. This class should not be directly instantiated.
* @constructor
*/
Ext.grid.AbstractSelectionModel = function(){
this.locked = false;
Ext.grid.AbstractSelectionModel.superclass.constructor.call(this);
};
Ext.extend(Ext.grid.AbstractSelectionModel, Ext.util.Observable, {
/** @ignore grid自动调用。勿直接调用*/
/** @ignore Called by the grid automatically. Do not call directly. */
init : function(grid){
this.grid = grid;
this.initEvents();
},
/**
* 锁定多个选区
*/
/**
* Locks the selections.
*/
lock : function(){
this.locked = true;
},
/**
* 解锁多个选区
*/
/**
* Unlocks the selections.
*/
unlock : function(){
this.locked = false;
},
/**
* 返回true如果选区被锁
* @return {Boolean}
*/
/**
* Returns true if the selections are locked.
* @return {Boolean}
*/
isLocked : function(){
return this.locked;
}
});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -