java.awt.dnd
Class DropTargetContext

java.lang.Object
  extended by java.awt.dnd.DropTargetContext
All Implemented Interfaces:
Serializable

public class DropTargetContext
extends Object
implements Serializable

Since:
1.2
See Also:
Serialized Form

Nested Class Summary
protected  class DropTargetContext.TransferableProxy
           
 
Method Summary
protected  void acceptDrag(int dragOperation)
           
protected  void acceptDrop(int dropOperation)
           
 void addNotify(DropTargetContextPeer dtcp)
           
protected  Transferable createTransferableProxy(Transferable t, boolean local)
           
 void dropComplete(boolean success)
          Signals that the drop is completed.
 Component getComponent()
           
protected  DataFlavor[] getCurrentDataFlavors()
           
protected  List<DataFlavor> getCurrentDataFlavorsAsList()
           
 DropTarget getDropTarget()
           
protected  int getTargetActions()
           
protected  Transferable getTransferable()
          Return the Transferable operandof this operation.
protected  boolean isDataFlavorSupported(DataFlavor flavor)
           
protected  void rejectDrag()
           
protected  void rejectDrop()
           
 void removeNotify()
           
protected  void setTargetActions(int actions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDropTarget

public DropTarget getDropTarget()

getComponent

public Component getComponent()

addNotify

public void addNotify(DropTargetContextPeer dtcp)

removeNotify

public void removeNotify()

setTargetActions

protected void setTargetActions(int actions)

getTargetActions

protected int getTargetActions()

dropComplete

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

Throws:
InvalidDnDOperationException - If a drop is not outstanding.

acceptDrag

protected void acceptDrag(int dragOperation)

rejectDrag

protected void rejectDrag()

acceptDrop

protected void acceptDrop(int dropOperation)

rejectDrop

protected void rejectDrop()

getCurrentDataFlavors

protected DataFlavor[] getCurrentDataFlavors()

getCurrentDataFlavorsAsList

protected List<DataFlavor> getCurrentDataFlavorsAsList()

isDataFlavorSupported

protected boolean isDataFlavorSupported(DataFlavor flavor)

getTransferable

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

Throws:
InvalidDnDOperationException - If a drag is not outstanding.

createTransferableProxy

protected Transferable createTransferableProxy(Transferable t,
                                               boolean local)