org.ocd.dcf.dnd
Interface IDropManager

All Known Implementing Classes:
DropManager

public interface IDropManager

<< License Info Goes HERE >> All Rights Reserved. DragListenerAdapter Description:

Since:
$Date: 2002/05/22 06:44:23 $
Version:
$Revision: 1.5 $
Author:
$Author: drichan $

Method Summary
 void dragStarted(java.awt.dnd.DragSourceContext pContext, java.awt.Image pDragImage, java.awt.Point pOffSet)
          Start the Drag opertation for a certain Context
 java.awt.dnd.DragSourceContext getCurrentDragSourceContext()
          Returns the current DragSource Context of the current Drag Operation or null if a drag operation is not going on
 java.awt.datatransfer.Transferable getCurrentTransferable()
          Get the Current Transferable Object for the current Drag operation
 java.awt.dnd.DropTarget getDropTarget(java.awt.Point pLocation)
          Return a Drop Component for the component at the Current Location This method should search up the component hierarchy until it finds a Drop Target
 void setDefaultDropTarget(java.awt.dnd.DropTarget pDropTarget)
          Sets the default drop target if a drag occurs over any item that is not a Drop Target.
 

Method Detail

setDefaultDropTarget

public void setDefaultDropTarget(java.awt.dnd.DropTarget pDropTarget)
Sets the default drop target if a drag occurs over any item that is not a Drop Target. This should usually be the desktop of the system.
Parameters:
default - Drop Target

getDropTarget

public java.awt.dnd.DropTarget getDropTarget(java.awt.Point pLocation)
Return a Drop Component for the component at the Current Location This method should search up the component hierarchy until it finds a Drop Target
Parameters:
Location - look for the Drop Target in Screen Corrdinates

getCurrentDragSourceContext

public java.awt.dnd.DragSourceContext getCurrentDragSourceContext()
Returns the current DragSource Context of the current Drag Operation or null if a drag operation is not going on
Returns:
DragSourceContext

dragStarted

public void dragStarted(java.awt.dnd.DragSourceContext pContext,
                        java.awt.Image pDragImage,
                        java.awt.Point pOffSet)
Start the Drag opertation for a certain Context
Parameters:
DragSourceContext - of this Drag
image - that should be used during Drag
pImageOffset - offSet of image location from Cursor or null to use Drag Component's Location

getCurrentTransferable

public java.awt.datatransfer.Transferable getCurrentTransferable()
Get the Current Transferable Object for the current Drag operation
Returns:
Transferable