KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > dnd > DropTargetDropEvent


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4  
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7  
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9  
10    $Log: DropTargetDropEvent.java,v $
11    Revision 1.1 2004/05/05 12:43:19 bobintetley
12    Patches/new files from Laurent Martell
13
14  
15  */

16 package swingwt.awt.dnd;
17
18 import swingwt.awt.Point;
19 import swingwt.awt.datatransfer.Transferable;
20
21 /** @author Laurent Martell */
22 public class DropTargetDropEvent extends DropTargetEvent {
23     public DropTargetDropEvent(DropTargetContext context,
24                                Point cursorLocation,
25                                int dropAction,
26                                int srcActions)
27     {
28         super(context);
29         this.location = cursorLocation;
30     }
31
32     public DropTargetDropEvent(DropTargetContext context,
33                                Point cursorLocation,
34                                int dropAction,
35                                int srcActions,
36                                boolean isLocal)
37     {
38         super(context);
39         this.location = cursorLocation;
40     }
41
42     Point location;
43
44     public Transferable getTransferable() {
45         return getDropTargetContext().getTransferable();
46     }
47
48     public Point getLocation() {
49         return location;
50     }
51 }
52
Popular Tags