java.awt.dnd.peer

Interface DropTargetContextPeer

public interface DropTargetContextPeer

Used to control state of recipient protocol from the DropTargetListener. Occurs when a Component with an associated DropTarget and visible geometry is first intersected by a logical cursor.
Method Summary
voidacceptDrag(int dragAction)
voidacceptDrop(int dropAction)
voiddropComplete(boolean success)
DropTargetgetDropTarget()
intgetTargetActions()
TransferablegetTransferable()
DataFlavor[]getTransferDataFlavors()
booleanisTransferableJVMLocal()
voidrejectDrag()
voidrejectDrop()
voidsetTargetActions(int actions)

Method Detail

acceptDrag

public void acceptDrag(int dragAction)

acceptDrop

public void acceptDrop(int dropAction)

dropComplete

public void dropComplete(boolean success)

getDropTarget

public DropTarget getDropTarget()

getTargetActions

public int getTargetActions()

getTransferable

public Transferable getTransferable()

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()

isTransferableJVMLocal

public boolean isTransferableJVMLocal()

rejectDrag

public void rejectDrag()

rejectDrop

public void rejectDrop()

setTargetActions

public void setTargetActions(int actions)