1 16 package swingwt.awt.dnd; 17 18 import swingwt.awt.Point; 19 import swingwt.awt.datatransfer.Transferable; 20 21 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 |