java.awt.dnd

Class DropTargetDropEvent

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
voidacceptDrop(int dropAction)
voiddropComplete(boolean success)
DataFlavor[]getCurrentDataFlavors()
List<DataFlavor>getCurrentDataFlavorsAsList()
intgetDropAction()
PointgetLocation()
intgetSourceActions()
TransferablegetTransferable()
booleanisDataFlavorSupported(DataFlavor flavor)
booleanisLocalTransfer()
voidrejectDrop()

Constructor Detail

DropTargetDropEvent

public DropTargetDropEvent(DropTargetContext dtc, Point location, int dropAction, int actions)
Initializes a 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

public DropTargetDropEvent(DropTargetContext dtc, Point location, int dropAction, int actions, boolean isLocalTx)
Initializes a 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.

Method Detail

acceptDrop

public void acceptDrop(int dropAction)

dropComplete

public void dropComplete(boolean success)

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()

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)

isLocalTransfer

public boolean isLocalTransfer()

rejectDrop

public void rejectDrop()