java.awt.dnd.peer
Interface DropTargetContextPeer


public interface DropTargetContextPeer

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

Since:
1.2

Method Summary
 void acceptDrag sample code for java.awt.dnd.peer.DropTargetContextPeer.acceptDrag(int) definition code for java.awt.dnd.peer.DropTargetContextPeer.acceptDrag(int) (int dragAction)
          accept the Drag
 void acceptDrop sample code for java.awt.dnd.peer.DropTargetContextPeer.acceptDrop(int) definition code for java.awt.dnd.peer.DropTargetContextPeer.acceptDrop(int) (int dropAction)
          accept the Drop
 void dropComplete sample code for java.awt.dnd.peer.DropTargetContextPeer.dropComplete(boolean) definition code for java.awt.dnd.peer.DropTargetContextPeer.dropComplete(boolean) (boolean success)
          signal complete
 DropTarget sample code for java.awt.dnd.DropTarget definition code for java.awt.dnd.DropTarget getDropTarget sample code for java.awt.dnd.peer.DropTargetContextPeer.getDropTarget() definition code for java.awt.dnd.peer.DropTargetContextPeer.getDropTarget() ()
          get the DropTarget associated with this peer
 int getTargetActions sample code for java.awt.dnd.peer.DropTargetContextPeer.getTargetActions() definition code for java.awt.dnd.peer.DropTargetContextPeer.getTargetActions() ()
          get the current Target actions
 Transferable sample code for java.awt.datatransfer.Transferable definition code for java.awt.datatransfer.Transferable getTransferable sample code for java.awt.dnd.peer.DropTargetContextPeer.getTransferable() definition code for java.awt.dnd.peer.DropTargetContextPeer.getTransferable() ()
          get an input stream to the remote data
 DataFlavor sample code for java.awt.datatransfer.DataFlavor definition code for java.awt.datatransfer.DataFlavor [] getTransferDataFlavors sample code for java.awt.dnd.peer.DropTargetContextPeer.getTransferDataFlavors() definition code for java.awt.dnd.peer.DropTargetContextPeer.getTransferDataFlavors() ()
          get the (remote) DataFlavors from the peer
 boolean isTransferableJVMLocal sample code for java.awt.dnd.peer.DropTargetContextPeer.isTransferableJVMLocal() definition code for java.awt.dnd.peer.DropTargetContextPeer.isTransferableJVMLocal() ()
           
 void rejectDrag sample code for java.awt.dnd.peer.DropTargetContextPeer.rejectDrag() definition code for java.awt.dnd.peer.DropTargetContextPeer.rejectDrag() ()
          reject the Drag
 void rejectDrop sample code for java.awt.dnd.peer.DropTargetContextPeer.rejectDrop() definition code for java.awt.dnd.peer.DropTargetContextPeer.rejectDrop() ()
          reject the Drop
 void setTargetActions sample code for java.awt.dnd.peer.DropTargetContextPeer.setTargetActions(int) definition code for java.awt.dnd.peer.DropTargetContextPeer.setTargetActions(int) (int actions)
          update the peer's notion of the Target's actions
 

Method Detail

setTargetActions sample code for java.awt.dnd.peer.DropTargetContextPeer.setTargetActions(int) definition code for java.awt.dnd.peer.DropTargetContextPeer.setTargetActions(int)

void setTargetActions(int actions)
update the peer's notion of the Target's actions


getTargetActions sample code for java.awt.dnd.peer.DropTargetContextPeer.getTargetActions() definition code for java.awt.dnd.peer.DropTargetContextPeer.getTargetActions()

int getTargetActions()
get the current Target actions


getDropTarget sample code for java.awt.dnd.peer.DropTargetContextPeer.getDropTarget() definition code for java.awt.dnd.peer.DropTargetContextPeer.getDropTarget()

DropTarget sample code for java.awt.dnd.DropTarget definition code for java.awt.dnd.DropTarget  getDropTarget()
get the DropTarget associated with this peer


getTransferDataFlavors sample code for java.awt.dnd.peer.DropTargetContextPeer.getTransferDataFlavors() definition code for java.awt.dnd.peer.DropTargetContextPeer.getTransferDataFlavors()

DataFlavor sample code for java.awt.datatransfer.DataFlavor definition code for java.awt.datatransfer.DataFlavor [] getTransferDataFlavors()
get the (remote) DataFlavors from the peer


getTransferable sample code for java.awt.dnd.peer.DropTargetContextPeer.getTransferable() definition code for java.awt.dnd.peer.DropTargetContextPeer.getTransferable()

Transferable sample code for java.awt.datatransfer.Transferable definition code for java.awt.datatransfer.Transferable  getTransferable()
                             throws InvalidDnDOperationException sample code for java.awt.dnd.InvalidDnDOperationException definition code for java.awt.dnd.InvalidDnDOperationException 
get an input stream to the remote data

Throws:
InvalidDnDOperationException sample code for java.awt.dnd.InvalidDnDOperationException definition code for java.awt.dnd.InvalidDnDOperationException

isTransferableJVMLocal sample code for java.awt.dnd.peer.DropTargetContextPeer.isTransferableJVMLocal() definition code for java.awt.dnd.peer.DropTargetContextPeer.isTransferableJVMLocal()

boolean isTransferableJVMLocal()
Returns:
if the DragSource Transferable is in the same JVM as the Target

acceptDrag sample code for java.awt.dnd.peer.DropTargetContextPeer.acceptDrag(int) definition code for java.awt.dnd.peer.DropTargetContextPeer.acceptDrag(int)

void acceptDrag(int dragAction)
accept the Drag


rejectDrag sample code for java.awt.dnd.peer.DropTargetContextPeer.rejectDrag() definition code for java.awt.dnd.peer.DropTargetContextPeer.rejectDrag()

void rejectDrag()
reject the Drag


acceptDrop sample code for java.awt.dnd.peer.DropTargetContextPeer.acceptDrop(int) definition code for java.awt.dnd.peer.DropTargetContextPeer.acceptDrop(int)

void acceptDrop(int dropAction)
accept the Drop


rejectDrop sample code for java.awt.dnd.peer.DropTargetContextPeer.rejectDrop() definition code for java.awt.dnd.peer.DropTargetContextPeer.rejectDrop()

void rejectDrop()
reject the Drop


dropComplete sample code for java.awt.dnd.peer.DropTargetContextPeer.dropComplete(boolean) definition code for java.awt.dnd.peer.DropTargetContextPeer.dropComplete(boolean)

void dropComplete(boolean success)
signal complete