Java java.awt.dnd DropTargetDragEvent fields, constructors, methods, implement or subclass

Example usage for Java java.awt.dnd DropTargetDragEvent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.dnd DropTargetDragEvent.

The text is from its open source code.

Method

voidacceptDrag(int dragOperation)
Accepts the drag.
DataFlavor[]getCurrentDataFlavors()
This method returns the current DataFlavor s from the DropTargetContext .
intgetDropAction()
This method returns the user drop action.
DropTargetContextgetDropTargetContext()
This method returns the DropTargetContext associated with this DropTargetEvent .
PointgetLocation()
This method returns a Point indicating the Cursor 's current location within the Component' s coordinates.
intgetSourceActions()
This method returns the source drop actions.
TransferablegetTransferable()
This method returns the Transferable object that represents the data associated with the current drag operation.
booleanisDataFlavorSupported(DataFlavor df)
This method returns a boolean indicating if the specified DataFlavor is supported.
voidrejectDrag()
Rejects the drag as a result of examining either the dropAction or the available DataFlavor types.