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: import com.google.gwt.core.client.JavaScriptObject;
12:
13: public class AbsoluteLayoutData extends LayoutData {
14:
15: private int x;
16: private int y;
17:
18: public AbsoluteLayoutData(int x, int y) {
19: this .x = x;
20: this .y = y;
21: JavaScriptObjectHelper.setAttribute(jsObj, "x", x);
22: JavaScriptObjectHelper.setAttribute(jsObj, "y", y);
23: }
24:
25: public JavaScriptObject getContainerAttributes() {
26: JavaScriptObject containerJS = JavaScriptObjectHelper
27: .createObject();
28: JavaScriptObjectHelper.setAttribute(containerJS, "x", x);
29: JavaScriptObjectHelper.setAttribute(containerJS, "y", y);
30: return containerJS;
31: }
32: }
|