Example usage for Java java.awt.dnd DropTargetDropEvent fields, constructors, methods, implement or subclass
The text is from its open source code.
void | acceptDrop(int dropAction) accept the drop, using the specified action. |
void | dropComplete(boolean success) This method notifies the DragSource that the drop transfer(s) are completed. |
DataFlavor[] | getCurrentDataFlavors() This method returns the current DataFlavors. |
int | getDropAction() This method returns the user drop action. |
DropTargetContext | getDropTargetContext() This method returns the DropTargetContext associated with this DropTargetEvent . |
Point | getLocation() This method returns a Point indicating the Cursor 's current location in the Component 's coordinates. |
Object | getSource() The object on which the Event initially occurred. |
int | getSourceActions() This method returns the source drop actions. |
Transferable | getTransferable() This method returns the Transferable object associated with the drop. |
boolean | isDataFlavorSupported(DataFlavor df) This method returns a boolean indicating if the specified DataFlavor is available from the source. |
boolean | isLocalTransfer() This method returns an int indicating if the source is in the same JVM as the target. |
void | rejectDrop() reject the Drop. |