java.awt.dnd
public class DropTargetDropEvent extends DropTargetEvent
Since: 1.2
| Constructor Summary | |
|---|---|
| DropTargetDropEvent(DropTargetContext dtc, Point location, int dropAction, int actions)
Initializes a DropTargetDropEvent. | |
| DropTargetDropEvent(DropTargetContext dtc, Point location, int dropAction, int actions, boolean isLocalTx)
Initializes a DropTargetDropEvent.
| |
| Method Summary | |
|---|---|
| void | acceptDrop(int dropAction) |
| void | dropComplete(boolean success) |
| DataFlavor[] | getCurrentDataFlavors() |
| List<DataFlavor> | getCurrentDataFlavorsAsList() |
| int | getDropAction() |
| Point | getLocation() |
| int | getSourceActions() |
| Transferable | getTransferable() |
| boolean | isDataFlavorSupported(DataFlavor flavor) |
| boolean | isLocalTransfer() |
| void | rejectDrop() |
DropTargetDropEvent. By default this constructor
assumes that the target is not int same JVM.
Throws: IllegalArgumentException If dropAction is not one of DnDConstants, actions is not a bitwise mask of DnDConstants, or dtc is null. NullPointerException If location is null.
DropTargetDropEvent.
Throws: IllegalArgumentException If dropAction is not one of DnDConstants, actions is not a bitwise mask of DnDConstants, or dtc is null. NullPointerException If location is null.