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