01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08:
09: package com.gwtext.client.widgets.grid;
10:
11: import com.google.gwt.core.client.JavaScriptObject;
12: import com.gwtext.client.core.JsObject;
13:
14: /**
15: * Abstract base class for grid SelectionModels. It provides the interface that should be implemented by descendant
16: * classes. This class should not be directly instantiated.
17: */
18: public abstract class AbstractSelectionModel extends JsObject {
19:
20: public AbstractSelectionModel() {
21: }
22:
23: public AbstractSelectionModel(JavaScriptObject jsObj) {
24: super (jsObj);
25: }
26:
27: /**
28: * Returns true if the selections are locked.
29: *
30: * @return true if selections are locked
31: */
32: public native boolean isLocked() /*-{
33: var sm = this.@com.gwtext.client.core.JsObject::getJsObj()();
34: return sm.isLocked();
35: }-*/;
36:
37: /**
38: * Locks the selections.
39: */
40: public native void lock() /*-{
41: var sm = this.@com.gwtext.client.core.JsObject::getJsObj()();
42: sm.lock();
43: }-*/;
44:
45: /**
46: * Unlocks the selections.
47: */
48: public native void unlock() /*-{
49: var sm = this.@com.gwtext.client.core.JsObject::getJsObj()();
50: sm.unlock();
51: }-*/;
52: }
|