This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


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


Method Summary
 void
acceptDrag(int dragAction)

          accept the Drag
 void
acceptDrop(int dropAction)

          accept the Drop
 void
dropComplete(boolean success)

          signal complete
 DropTarget

          get the DropTarget associated with this peer
 int

          get the current Target actions
 Transferable

          get an input stream to the remote data
 DataFlavor[]

          get the (remote) DataFlavors from the peer
 boolean

          
 void

          reject the Drag
 void

          reject the Drop
 void
setTargetActions(int actions)

          update the peer's notion of the Target's actions
 

Method Detail

acceptDrag

public void acceptDrag(int dragAction)
accept the Drag

Parameters:
dragAction

acceptDrop

public void acceptDrop(int dropAction)
accept the Drop

Parameters:
dropAction

dropComplete

public void dropComplete(boolean success)
signal complete

Parameters:
success

getDropTarget

public DropTarget getDropTarget()
get the DropTarget associated with this peer


getTargetActions

public int getTargetActions()
get the current Target actions


getTransferable

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

Throws:
InvalidDnDOperationException

getTransferDataFlavors

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


isTransferableJVMLocal

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

rejectDrag

public void rejectDrag()
reject the Drag


rejectDrop

public void rejectDrop()
reject the Drop


setTargetActions

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

Parameters:
actions


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.