FileDocCategorySizeDatePackage
DropTargetContextPeer.javaAPI DocJava SE 5 API1843Fri Aug 26 14:56:48 BST 2005java.awt.dnd.peer

DropTargetContextPeer

public interface DropTargetContextPeer

This interface is exposed by the underlying window system platform to enable control of platform DnD operations

version
1.13, 12/19/03
since
1.2

Fields Summary
Constructors Summary
Methods Summary
public voidacceptDrag(int dragAction)
accept the Drag

public voidacceptDrop(int dropAction)
accept the Drop

public voiddropComplete(boolean success)
signal complete

public java.awt.dnd.DropTargetgetDropTarget()
get the DropTarget associated with this peer

public intgetTargetActions()
get the current Target actions

public java.awt.datatransfer.DataFlavor[]getTransferDataFlavors()
get the (remote) DataFlavors from the peer

public java.awt.datatransfer.TransferablegetTransferable()
get an input stream to the remote data

public booleanisTransferableJVMLocal()

return
if the DragSource Transferable is in the same JVM as the Target

public voidrejectDrag()
reject the Drag

public voidrejectDrop()
reject the Drop

public voidsetTargetActions(int actions)
update the peer's notion of the Target's actions