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.dd;
10:
11: import com.google.gwt.core.client.JavaScriptObject;
12: import com.google.gwt.user.client.Element;
13: import com.gwtext.client.widgets.Component;
14:
15: public class DDProxy extends DD {
16:
17: public DDProxy(JavaScriptObject jsObj) {
18: super (jsObj);
19: }
20:
21: public DDProxy(String id) {
22: super (id);
23: }
24:
25: public DDProxy(String id, String sGroup) {
26: super (id, sGroup);
27: }
28:
29: public DDProxy(String id, String sGroup, DragDropProxyConfig config) {
30: super (id, sGroup, config);
31: }
32:
33: public DDProxy(Component component) {
34: super (component);
35: }
36:
37: public DDProxy(Component component, String sGroup) {
38: super (component, sGroup);
39: }
40:
41: public DDProxy(Component component, String sGroup,
42: DragDropConfig config) {
43: super (component, sGroup, config);
44: }
45:
46: protected native JavaScriptObject create(String id, String sGroup,
47: JavaScriptObject config)/*-{
48: return new $wnd.Ext.dd.DDProxy(id, sGroup, config);
49: }-*/;
50:
51: protected native JavaScriptObject create(Element element,
52: String sGroup, JavaScriptObject config)/*-{
53: return new $wnd.Ext.dd.DDProxy(element, sGroup, config);
54: }-*/;
55:
56: public native boolean isCenterFrame() /*-{
57: var ddProxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
58: return ddProxy.centerFrame ? true : false;
59: }-*/;
60:
61: public native void setCenterFrame(boolean centerFrame) /*-{
62: var ddProxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
63: ddProxy.centerFrame = centerFrame;
64: }-*/;
65:
66: public native boolean isResizeFrame() /*-{
67: var ddProxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
68: return ddProxy.resizeFrame ? true : false;
69: }-*/;
70:
71: public native void setResizeFrame(boolean resizeFrame) /*-{
72: var ddProxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
73: ddProxy.resizeFrame = resizeFrame;
74: }-*/;
75:
76: public native void createFrame() /*-{
77: var ddProxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
78: ddProxy.createFrame();
79: }-*/;
80:
81: public native void initFrame() /*-{
82: var ddProxy = this.@com.gwtext.client.core.JsObject::getJsObj()();
83: ddProxy.initFrame();
84: }-*/;
85: }
|