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;
09:
10: import com.google.gwt.core.client.JavaScriptObject;
11: import com.gwtext.client.data.Record;
12: import com.gwtext.client.dd.DragData;
13: import com.gwtext.client.util.JavaScriptObjectHelper;
14: import com.gwtext.client.widgets.grid.GridPanel;
15:
16: /**
17: * An implementation of DragData that is passed to the drop target when the source is a Panel.
18: *
19: */
20: public class PanelDragData extends DragData {
21:
22: public PanelDragData(JavaScriptObject jsObj) {
23: super (jsObj);
24: }
25:
26: /**
27: * The source Panel.
28: *
29: * @return the source Panel
30: */
31: public Panel getPanel() {
32: JavaScriptObject gridJS = getPropertyAsJavaScriptObject("panel");
33: return (Panel) ComponentFactory.getComponent(gridJS);
34: }
35:
36: }
|