API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.dnd. DragSourceDropEvent View Source
Author(s)
Since
1.2
Version
1.20, 11/17/05


Serial
Hierarchy
 Object
      EventObject
          DragSourceEvent
              DragSourceDropEvent
Implements
Subclasses
Description
public class DragSourceDropEvent
  The DragSourceDropEvent is delivered from the DragSourceContextPeer, via the DragSourceContext, to the dragDropEnd method of DragSourceListeners registered with that DragSourceContext and with its associated DragSource.
See also:   
Constructors
public DragSourceDropEvent (DragSourceContext dsc)
  Construct a DragSourceDropEvent for a drag that does not result in a drop.
public DragSourceDropEvent (DragSourceContext dsc, int action, boolean success)
  Construct a DragSourceDropEvent for a drop, given the DragSourceContext, the drop action, and a boolean indicating if the drop was successful.
public DragSourceDropEvent (DragSourceContext dsc, int action, boolean success, int x, int y)
  Construct a DragSourceDropEvent for a drop, given the DragSourceContext, the drop action, a boolean indicating if the drop was successful, and coordinates.
Methods
Hide/Show inherited methods
public DragSourceContext getDragSourceContext () [Inherited From DragSourceEvent]
  This method returns the DragSourceContext that originated the event.
public int getDropAction ()
  This method returns an int representing the action performed by the target on the subject of the drop.
public boolean getDropSuccess ()
  This method returns a boolean indicating if the drop was successful.
public Point getLocation () [Inherited From DragSourceEvent]
  This method returns a Point indicating the cursor location in screen coordinates at the moment this event occured, or null if the cursor location is not specified for this event.
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public int getX () [Inherited From DragSourceEvent]
  This method returns the horizontal coordinate of the cursor location in screen coordinates at the moment this event occured, or zero if the cursor location is not specified for this event.
public int getY () [Inherited From DragSourceEvent]
  This method returns the vertical coordinate of the cursor location in screen coordinates at the moment this event occured, or zero if the cursor location is not specified for this event.
public String toString () [Inherited From EventObject]
  Returns a String representation of this EventObject.
Fields
Hide/Show inherited fields
protectedtransient Object source [Inherited From EventObject]
The object on which the Event initially occurred.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar