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
DropTargetDropEvent(DropTargetContext, Point, int)
- Construct a DropTargetEvent
acceptDrop(int)
- accept the Drop, using the specified operation.
getCurrentDataFlavors()
-
getLocation()
-
getSourceActions()
-
getTransferable()
-
rejectDrop()
- reject the Drop.
DropTargetDropEvent
public DropTargetDropEvent(DropTargetContext dtc,
Point cursorLocn,
int srcActions)
- Construct a DropTargetEvent
getLocation
public Point getLocation()
- Returns:
- the current cursor location in Component's coords.
getCurrentDataFlavors
public DataFlavor[] getCurrentDataFlavors()
- Returns:
- current DataFlavors
getSourceActions
public int getSourceActions()
- Returns:
- source actions
getTransferable
public Transferable getTransferable()
- Returns:
- the Transferable associated with the drop
acceptDrop
public void acceptDrop(int dropAction)
- accept the Drop, using the specified operation.
rejectDrop
public void rejectDrop()
- reject the Drop.
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature