API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.dnd. DropTargetDropEvent View Source
Author(s)
Since
1.2
Version
1.29, 11/17/05
Serial
Hierarchy
 Object
      EventObject
          DropTargetEvent
              DropTargetDropEvent
Implements
Subclasses
Description
public class DropTargetDropEvent
  The DropTargetDropEvent is delivered via the DropTargetListener drop() method.
See also:   
Constructors
public DropTargetDropEvent (DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions)
  Construct a DropTargetDropEvent given the DropTargetContext for this operation, the location of the drag Cursor's hotspot in the Component's coordinates, the currently selected user drop action, and the current set of actions supported by the source.
public DropTargetDropEvent (DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions, boolean isLocal)
  Construct a DropTargetEvent given the DropTargetContext for this operation, the location of the drag Cursor's hotspot in the Component's coordinates, the currently selected user drop action, the current set of actions supported by the source, and a boolean indicating if the source is in the same JVM as the target.
Methods
Hide/Show inherited methods
public void acceptDrop (int dropAction)
  accept the drop, using the specified action.
public void dropComplete (boolean success)
  This method notifies the DragSource that the drop transfer(s) are completed.
public DataFlavor getCurrentDataFlavors ()
  This method returns the current DataFlavors.
public List<DataFlavor> getCurrentDataFlavorsAsList ()
  This method returns the currently available 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 in 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 associated with the drop.
public boolean isDataFlavorSupported (DataFlavor df)
  This method returns a boolean indicating if the specified DataFlavor is available from the source.
public boolean isLocalTransfer ()
  This method returns an int indicating if the source is in the same JVM as the target.
public void rejectDrop ()
reject the Drop.
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