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
 void acceptDrag(int dragAction)
           
 void acceptDrop(int dropAction)
           
 void dropComplete(boolean success)
           
 DropTarget getDropTarget()
           
 int getTargetActions()
           
 Transferable getTransferable()
           
 DataFlavor[] getTransferDataFlavors()
           
 boolean isTransferableJVMLocal()
           
 void rejectDrag()
           
 void rejectDrop()
           
 void setTargetActions(int actions)
           
 

Method Detail

setTargetActions

void setTargetActions(int actions)

getTargetActions

int getTargetActions()

getDropTarget

DropTarget getDropTarget()

getTransferDataFlavors

DataFlavor[] getTransferDataFlavors()

getTransferable

Transferable getTransferable()
                             throws InvalidDnDOperationException
Throws:
InvalidDnDOperationException

isTransferableJVMLocal

boolean isTransferableJVMLocal()

acceptDrag

void acceptDrag(int dragAction)

rejectDrag

void rejectDrag()

acceptDrop

void acceptDrop(int dropAction)

rejectDrop

void rejectDrop()

dropComplete

void dropComplete(boolean success)