All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.dnd.DropTargetDragEvent

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

public class DropTargetDragEvent
extends DropTargetEvent

The DropTargetDragEvent is delivered to a DropTargetListener via its dragEnter(), dragOver(), and dragScroll() methods.

Since:
JDK1.2

Constructor Index

 o DropTargetDragEvent(DropTargetContext, Point, int)
construct an Event

Method Index

 o acceptDrag(int)
Accept the drag
 o getCurrentDataFlavors()
 o getLocation()
 o getSourceActions()
 o rejectDrag()
Reject the drag

Constructors

 o DropTargetDragEvent
public DropTargetDragEvent(DropTargetContext dtc,
                           Point cursorLocn,
                           int srcActions)
construct an Event

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 acceptDrag
public void acceptDrag(int dragOperation)
Accept the drag

 o rejectDrag
public void rejectDrag()
Reject the drag


All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature