java.awt.dnd

Class DropTargetDragEvent

public class DropTargetDragEvent extends DropTargetEvent

Since: 1.2

Constructor Summary
DropTargetDragEvent(DropTargetContext context, Point location, int dropAction, int srcActions)
Initializes a DropTargetDragEvent.
Method Summary
voidacceptDrag(int dragOperation)
DataFlavor[]getCurrentDataFlavors()
List<DataFlavor>getCurrentDataFlavorsAsList()
intgetDropAction()
PointgetLocation()
intgetSourceActions()
TransferablegetTransferable()
TODO
booleanisDataFlavorSupported(DataFlavor df)
voidrejectDrag()

Constructor Detail

DropTargetDragEvent

public DropTargetDragEvent(DropTargetContext context, Point location, int dropAction, int srcActions)
Initializes a DropTargetDragEvent.

Throws: IllegalArgumentException If dropAction is not one of DnDConstants, srcActions is not a bitwise mask of DnDConstants, or dtc is null. NullPointerException If location is null.

Method Detail

acceptDrag

public void acceptDrag(int dragOperation)

getCurrentDataFlavors

public DataFlavor[] getCurrentDataFlavors()

getCurrentDataFlavorsAsList

public List<DataFlavor> getCurrentDataFlavorsAsList()

getDropAction

public int getDropAction()

getLocation

public Point getLocation()

getSourceActions

public int getSourceActions()

getTransferable

public Transferable getTransferable()
TODO

Returns:

Since: 1.5

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor df)

rejectDrag

public void rejectDrag()