java.awt.dnd

Class DropTargetContext

public class DropTargetContext extends Object implements Serializable

Since: 1.2

Nested Class Summary
protected classDropTargetContext.TransferableProxy
Method Summary
protected voidacceptDrag(int dragOperation)
protected voidacceptDrop(int dropOperation)
voidaddNotify(DropTargetContextPeer dtcp)
protected TransferablecreateTransferableProxy(Transferable t, boolean local)
voiddropComplete(boolean success)
Signals that the drop is completed.
ComponentgetComponent()
protected DataFlavor[]getCurrentDataFlavors()
protected List<DataFlavor>getCurrentDataFlavorsAsList()
DropTargetgetDropTarget()
protected intgetTargetActions()
protected TransferablegetTransferable()
Return the Transferable operandof this operation.
protected booleanisDataFlavorSupported(DataFlavor flavor)
protected voidrejectDrag()
protected voidrejectDrop()
voidremoveNotify()
protected voidsetTargetActions(int actions)

Method Detail

acceptDrag

protected void acceptDrag(int dragOperation)

acceptDrop

protected void acceptDrop(int dropOperation)

addNotify

public void addNotify(DropTargetContextPeer dtcp)

createTransferableProxy

protected Transferable createTransferableProxy(Transferable t, boolean local)

dropComplete

public void dropComplete(boolean success)
Signals that the drop is completed.

Throws: InvalidDnDOperationException If a drop is not outstanding.

getComponent

public Component getComponent()

getCurrentDataFlavors

protected DataFlavor[] getCurrentDataFlavors()

getCurrentDataFlavorsAsList

protected List<DataFlavor> getCurrentDataFlavorsAsList()

getDropTarget

public DropTarget getDropTarget()

getTargetActions

protected int getTargetActions()

getTransferable

protected Transferable getTransferable()
Return the Transferable operandof this operation.

Throws: InvalidDnDOperationException If a drag is not outstanding.

isDataFlavorSupported

protected boolean isDataFlavorSupported(DataFlavor flavor)

rejectDrag

protected void rejectDrag()

rejectDrop

protected void rejectDrop()

removeNotify

public void removeNotify()

setTargetActions

protected void setTargetActions(int actions)