aicas logoJamaica 6.1 release 1

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(int dragAction)
          accept the Drag
 void acceptDrop(int dropAction)
          accept the Drop
 void dropComplete(boolean success)
          signal complete
 DropTarget getDropTarget()
          get the DropTarget associated with this peer
 int getTargetActions()
          get the current Target actions
 Transferable getTransferable()
          get an input stream to the remote data
 DataFlavor[] getTransferDataFlavors()
          get the (remote) DataFlavors from the peer
 boolean isTransferableJVMLocal()
           
 void rejectDrag()
          reject the Drag
 void rejectDrop()
          reject the Drop
 void setTargetActions(int actions)
          update the peer's notion of the Target's actions
 

Method Detail

setTargetActions

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


getTargetActions

int getTargetActions()
get the current Target actions


getDropTarget

DropTarget getDropTarget()
get the DropTarget associated with this peer


getTransferDataFlavors

DataFlavor[] getTransferDataFlavors()
get the (remote) DataFlavors from the peer


getTransferable

Transferable getTransferable()
                             throws InvalidDnDOperationException
get an input stream to the remote data

Throws:
InvalidDnDOperationException

isTransferableJVMLocal

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

acceptDrag

void acceptDrag(int dragAction)
accept the Drag


rejectDrag

void rejectDrag()
reject the Drag


acceptDrop

void acceptDrop(int dropAction)
accept the Drop


rejectDrop

void rejectDrop()
reject the Drop


dropComplete

void dropComplete(boolean success)
signal complete


aicas logoJamaica 6.1 release 1

aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2012 aicas GmbH. All Rights Reserved.