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
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DropTargetDropEvent
public DropTargetDropEvent(DropTargetContext dtc,
Point cursorLocn,
int dropAction,
int srcActions)
- Construct a DropTargetEvent
DropTargetDropEvent
public DropTargetDropEvent(DropTargetContext dtc,
Point cursorLocn,
int dropAction,
int srcActions,
boolean isLocal)
- 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
getDropAction
public int getDropAction()
- 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.
isLocalTransfer
public boolean isLocalTransfer()
- Returns:
- if the Source is in the same JVM
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.