API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.dnd. DropTargetDragEvent View Source
Author(s)
Since
1.2
Version
1.25, 11/17/05
Serial
Hierarchy
 Object
      EventObject
          DropTargetEvent
              DropTargetDragEvent
Implements
Subclasses
Description
public class DropTargetDragEvent
  The DropTargetDragEvent is delivered to a DropTargetListener via its dragEnter() and dragOver() methods.
See also:   
Constructors
public DropTargetDragEvent (DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions)
  Construct a DropTargetDragEvent given the DropTargetContext for this operation, the location of the "Drag" Cursor's hotspot in the Component's coordinates, the user drop action, and the source drop actions.
Methods
Hide/Show inherited methods
public void acceptDrag (int dragOperation)
  Accepts the drag.
public DataFlavor getCurrentDataFlavors ()
  This method returns the current DataFlavors from the DropTargetContext.
public List<DataFlavor> getCurrentDataFlavorsAsList ()
  This method returns the current DataFlavors as a java.util.List
public int getDropAction ()
  This method returns the user drop action.
public DropTargetContext getDropTargetContext () [Inherited From DropTargetEvent]
  This method returns the DropTargetContext associated with this DropTargetEvent.
public Point getLocation ()
  This method returns a Point indicating the Cursor's current location within the Component's coordinates.
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public int getSourceActions ()
  This method returns the source drop actions.
public Transferable getTransferable ()
  This method returns the Transferable object that represents the data associated with the current drag operation.
public boolean isDataFlavorSupported (DataFlavor df)
  This method returns a boolean indicating if the specified DataFlavor is supported.
public void rejectDrag ()
Rejects the drag as a result of examining either the dropAction or the available DataFlavor types.
public String toString () [Inherited From EventObject]
  Returns a String representation of this EventObject.
Fields
Hide/Show inherited fields
protected DropTargetContext context [Inherited From DropTargetEvent]
The DropTargetContext associated with this DropTargetEvent.
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