Java Platform 1.2

java.awt.dnd
Class 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
See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DragSourceDropEvent(DragSourceContext dsc)
          construct a DragSourceDropEvent for a drag that does not result in a drop
DragSourceDropEvent(DragSourceContext dsc, int action, boolean success)
          construct a DragSourceDropEvent for a drop
 
Method Summary
 int getDropAction()
           
 boolean getDropSuccess()
           
 
Methods inherited from class java.awt.dnd.DragSourceEvent
getDragSourceContext
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DragSourceDropEvent

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

DragSourceDropEvent

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

getDropSuccess

public boolean getDropSuccess()
Returns:
if the drop was successful

getDropAction

public int getDropAction()
Returns:
the action performed by the target on the subject of the drop

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
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.