home *** CD-ROM | disk | FTP | other *** search
- package java.awt.dnd;
-
- import java.awt.Point;
- import java.awt.datatransfer.DataFlavor;
- import java.awt.datatransfer.Transferable;
- import java.util.List;
-
- public class DropTargetDropEvent extends DropTargetEvent {
- private static final Point zero = new Point(0, 0);
- private Point location;
- private int actions;
- private int dropAction;
- private boolean isLocalTx;
-
- public DropTargetDropEvent(DropTargetContext var1, Point var2, int var3, int var4) {
- super(var1);
- this.location = zero;
- this.actions = 0;
- this.dropAction = 0;
- this.isLocalTx = false;
- if (var2 == null) {
- throw new NullPointerException("cursorLocn");
- } else if (var3 != 0 && var3 != 1 && var3 != 2 && var3 != 1073741824) {
- throw new IllegalArgumentException("dropAction = " + var3);
- } else if ((var4 & -1073741828) != 0) {
- throw new IllegalArgumentException("srcActions");
- } else {
- this.location = var2;
- this.actions = var4;
- this.dropAction = var3;
- }
- }
-
- public DropTargetDropEvent(DropTargetContext var1, Point var2, int var3, int var4, boolean var5) {
- this(var1, var2, var3, var4);
- this.isLocalTx = var5;
- }
-
- public Point getLocation() {
- return this.location;
- }
-
- public DataFlavor[] getCurrentDataFlavors() {
- return ((DropTargetEvent)this).getDropTargetContext().getCurrentDataFlavors();
- }
-
- public List getCurrentDataFlavorsAsList() {
- return ((DropTargetEvent)this).getDropTargetContext().getCurrentDataFlavorsAsList();
- }
-
- public boolean isDataFlavorSupported(DataFlavor var1) {
- return ((DropTargetEvent)this).getDropTargetContext().isDataFlavorSupported(var1);
- }
-
- public int getSourceActions() {
- return this.actions;
- }
-
- public int getDropAction() {
- return this.dropAction;
- }
-
- public Transferable getTransferable() {
- return ((DropTargetEvent)this).getDropTargetContext().getTransferable();
- }
-
- public void acceptDrop(int var1) {
- ((DropTargetEvent)this).getDropTargetContext().acceptDrop(var1);
- }
-
- public void rejectDrop() {
- ((DropTargetEvent)this).getDropTargetContext().rejectDrop();
- }
-
- public void dropComplete(boolean var1) {
- ((DropTargetEvent)this).getDropTargetContext().dropComplete(var1);
- }
-
- public boolean isLocalTransfer() {
- return this.isLocalTx;
- }
- }
-