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: import com.gwtext.client.widgets.form.Field;
14:
15: /**
16: * Field Editor for a Grid column.
17: *
18: * @see com.gwtext.client.widgets.grid.ColumnConfig#setEditor(GridEditor)
19: * @see com.gwtext.client.widgets.grid.ColumnModel#setEditor(String, GridEditor)
20: */
21: public class GridEditor extends JsObject {
22:
23: /**
24: * Creates a new Grid Editor field.
25: *
26: * @param field the field
27: */
28: public GridEditor(Field field) {
29: jsObj = create(field.getOrCreateJsObj());
30: }
31:
32: private native JavaScriptObject create(JavaScriptObject field) /*-{
33: return new $wnd.Ext.grid.GridEditor(field);
34: }-*/;
35: }
|