public interface

DropTargetContextPeer

java.awt.dnd.peer.DropTargetContextPeer
Known Indirect Subclasses

Class Overview

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

Summary

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

Public Methods

public abstract void acceptDrag (int dragAction)

accept the Drag

public abstract void acceptDrop (int dropAction)

accept the Drop

public abstract void dropComplete (boolean success)

signal complete

public abstract DropTarget getDropTarget ()

get the DropTarget associated with this peer

public abstract int getTargetActions ()

get the current Target actions

public abstract DataFlavor[] getTransferDataFlavors ()

get the (remote) DataFlavors from the peer

public abstract Transferable getTransferable ()

get an input stream to the remote data

public abstract boolean isTransferableJVMLocal ()

Returns
  • if the DragSource Transferable is in the same JVM as the Target

public abstract void rejectDrag ()

reject the Drag

public abstract void rejectDrop ()

reject the Drop

public abstract void setTargetActions (int actions)

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