~cdparra/gelee/trunk

« back to all changes in this revision

Viewing changes to webui/web/extjs/source/widgets/grid/AbstractSelectionModel.js

  • Committer: parra
  • Date: 2010-03-15 15:56:56 UTC
  • Revision ID: svn-v4:ac5bba68-f036-4e09-846e-8f32731cc928:trunk/gelee:1448
merged gelee at svn

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Ext JS Library 3.0 RC2
 
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
});
 
 
b'\\ No newline at end of file'