All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.dnd.DropTargetDropEvent

java.lang.Object
    |
    +----java.util.EventObject
            |
            +----java.awt.dnd.DropTargetEvent
                    |
                    +----java.awt.dnd.DropTargetDropEvent

public class DropTargetDropEvent
extends DropTargetEvent

The DropTargetDropEvent is delivered via the DropTargetListener drop() method.

Since:
JDK1.2

Constructor Index

 o DropTargetDropEvent(DropTargetContext, Point, int)
Construct a DropTargetEvent

Method Index

 o acceptDrop(int)
accept the Drop, using the specified operation.
 o getCurrentDataFlavors()
 o getLocation()
 o getSourceActions()
 o getTransferable()
 o rejectDrop()
reject the Drop.

Constructors

 o DropTargetDropEvent
public DropTargetDropEvent(DropTargetContext dtc,
                           Point cursorLocn,
                           int srcActions)
Construct a DropTargetEvent

Methods

 o getLocation
public Point getLocation()
Returns:
the current cursor location in Component's coords.
 o getCurrentDataFlavors
public DataFlavor[] getCurrentDataFlavors()
Returns:
current DataFlavors
 o getSourceActions
public int getSourceActions()
Returns:
source actions
 o getTransferable
public Transferable getTransferable()
Returns:
the Transferable associated with the drop
 o acceptDrop
public void acceptDrop(int dropAction)
accept the Drop, using the specified operation.

 o rejectDrop
public void rejectDrop()
reject the Drop.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature