Example usage for Java java.awt.dnd DropTargetDragEvent fields, constructors, methods, implement or subclass
The text is from its open source code.
void | acceptDrag(int dragOperation) Accepts the drag. |
DataFlavor[] | getCurrentDataFlavors() This method returns the current DataFlavor s from the DropTargetContext . |
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 within the Component' s coordinates. |
int | getSourceActions() This method returns the source drop actions. |
Transferable | getTransferable() This method returns the Transferable object that represents the data associated with the current drag operation. |
boolean | isDataFlavorSupported(DataFlavor df) This method returns a boolean indicating if the specified DataFlavor is supported. |
void | rejectDrag() Rejects the drag as a result of examining either the dropAction or the available DataFlavor types. |