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 DragSource extends DDProxy {
16:
17: public DragSource(JavaScriptObject jsObj) {
18: super (jsObj);
19: }
20:
21: public DragSource(String id, String sGroup,
22: DragDropProxyConfig config) {
23: super (id, sGroup, config);
24: }
25:
26: public DragSource(Component component, String sGroup,
27: DragDropConfig config) {
28: super (component, sGroup, config);
29: }
30:
31: protected native JavaScriptObject create(String id, String sGroup,
32: JavaScriptObject config)/*-{
33: return new $wnd.Ext.dd.DragSource(id, sGroup, config);
34: }-*/;
35:
36: protected native JavaScriptObject create(Element element,
37: String sGroup, JavaScriptObject config)/*-{
38: return new $wnd.Ext.dd.DragSource(element, sGroup, config);
39: }-*/;
40:
41: private static DragSource instance(JavaScriptObject jsObj) {
42: return new DragSource(jsObj);
43: }
44:
45: public native StatusProxy getProxy() /*-{
46: var ds = this.@com.gwtext.client.core.JsObject::getJsObj()();
47: var proxy = ds.getProxy();
48: return @com.gwtext.client.dd.StatusProxy::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(proxy);
49: }-*/;
50:
51: }
|