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.gwtext.client.util.JavaScriptObjectHelper;
11:
12: /**
13: * Supporting class for {@link com.gwtext.client.widgets.layout.RowLayout}.
14: *
15: * @see com.gwtext.client.widgets.layout.RowLayout
16: */
17: public class RowLayoutData extends LayoutData {
18:
19: public RowLayoutData() {
20: JavaScriptObjectHelper.setAttribute(jsObj, "height", 0);
21: }
22:
23: public RowLayoutData(String height) {
24: setHeight(height);
25: }
26:
27: public RowLayoutData(int height) {
28: setHeight(height);
29: }
30:
31: public void setHeight(int height) {
32: JavaScriptObjectHelper.setAttribute(jsObj, "height", height);
33: }
34:
35: public void setHeight(String height) {
36: JavaScriptObjectHelper.setAttribute(jsObj, "height", height);
37: }
38: }
|