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: package com.gwtext.client.widgets.layout;
09:
10: import com.google.gwt.core.client.JavaScriptObject;
11: import com.gwtext.client.util.JavaScriptObjectHelper;
12:
13: public class TableLayout extends ContainerLayout {
14: private int columns;
15:
16: public TableLayout() {
17: }
18:
19: public TableLayout(int columns) {
20: this .columns = columns;
21: setColumns(columns);
22: }
23:
24: public int getColumns() {
25: return columns;
26: }
27:
28: public void setColumns(int columns) {
29: this .columns = columns;
30: JavaScriptObjectHelper.setAttribute(configJS, "columns",
31: columns);
32: }
33:
34: protected native JavaScriptObject create(JavaScriptObject config) /*-{
35: return new $wnd.Ext.layout.TableLayout(config);
36: }-*/;
37: }
|