40 lines
No EOL
1.3 KiB
HTML
40 lines
No EOL
1.3 KiB
HTML
<html><head><title>AbstractSelectionModel.js</title><link rel="stylesheet" type="text/css" href="../resources/style.css" media="screen"/></head><body><h1>AbstractSelectionModel.js</h1><pre class="highlighted"><code><i>/**
|
|
@class Ext.grid.AbstractSelectionModel
|
|
@extends Ext.util.Observable
|
|
@constructor
|
|
*/</i>
|
|
Ext.grid.AbstractSelectionModel = <b>function</b>(){
|
|
<b>this</b>.locked = false;
|
|
Ext.grid.AbstractSelectionModel.superclass.constructor.call(<b>this</b>);
|
|
};
|
|
|
|
Ext.extend(Ext.grid.AbstractSelectionModel, Ext.util.Observable, {
|
|
<i>/** @ignore Called by the grid automatically. Do not call directly. */</i>
|
|
init : <b>function</b>(grid){
|
|
<b>this</b>.grid = grid;
|
|
<b>this</b>.initEvents();
|
|
},
|
|
|
|
<i>/**
|
|
* Lock the selections
|
|
*/</i>
|
|
lock : <b>function</b>(){
|
|
<b>this</b>.locked = true;
|
|
},
|
|
|
|
<i>/**
|
|
* Unlock the selections
|
|
*/</i>
|
|
unlock : <b>function</b>(){
|
|
<b>this</b>.locked = false;
|
|
},
|
|
|
|
<i>/**
|
|
* Returns true <b>if</b> the selections are locked
|
|
* @<b>return</b> {Boolean}
|
|
*/</i>
|
|
isLocked : <b>function</b>(){
|
|
<b>return</b> this.locked;
|
|
}
|
|
});</code></pre><hr><div style="font-size:10px;text-align:center;color:gray;">Ext - Copyright © 2006-2007 Ext JS, LLC<br />All rights reserved.</div>
|
|
</body></html> |