All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.dnd.DragSourceDropEvent

java.lang.Object
    |
    +----java.util.EventObject
            |
            +----java.awt.dnd.DragSourceEvent
                    |
                    +----java.awt.dnd.DragSourceDropEvent

public class DragSourceDropEvent
extends DragSourceEvent

The DragSourceDropEvent is delivered from the DragSourceContextPeer, via the DragSourceContext, to its currently registered DragSourceListener. It contains sufficient information for the originator of the operation to provide appropriate feedback to the end user when the operation completes.

Since:
JDK1.2

Constructor Index

 o DragSourceDropEvent(DragSourceContext)
construct a DragSourceDropEvent for a drag that does not result in a drop
 o DragSourceDropEvent(DragSourceContext, int, boolean)
construct a DragSourceDropEvent for a drop

Method Index

 o getDropAction()
 o getDropOccurred()
 o getDropSuccess()

Constructors

 o DragSourceDropEvent
public DragSourceDropEvent(DragSourceContext dsc,
                           int action,
                           boolean success)
construct a DragSourceDropEvent for a drop

 o DragSourceDropEvent
public DragSourceDropEvent(DragSourceContext dsc)
construct a DragSourceDropEvent for a drag that does not result in a drop

Methods

 o getDropOccurred
public boolean getDropOccurred()
Returns:
did the drop occur
 o getDropSuccess
public boolean getDropSuccess()
Returns:
if the drop was successful
 o getDropAction
public int getDropAction()
Returns:
the action performed by the target on the subject of the drop

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature