java.awt.dnd
Class DropTargetDragEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.awt.dnd.DropTargetEvent
          extended by java.awt.dnd.DropTargetDragEvent
All Implemented Interfaces:
Serializable

public class DropTargetDragEvent
extends DropTargetEvent

Since:
1.2
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.dnd.DropTargetEvent
context
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DropTargetDragEvent(DropTargetContext context, Point location, int dropAction, int srcActions)
          Initializes a DropTargetDragEvent.
 
Method Summary
 void acceptDrag(int dragOperation)
           
 DataFlavor[] getCurrentDataFlavors()
           
 List<DataFlavor> getCurrentDataFlavorsAsList()
           
 int getDropAction()
           
 Point getLocation()
           
 int getSourceActions()
           
 Transferable getTransferable()
          TODO
 boolean isDataFlavorSupported(DataFlavor df)
           
 void rejectDrag()
           
 
Methods inherited from class java.awt.dnd.DropTargetEvent
getDropTargetContext
 
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

DropTargetDragEvent

public DropTargetDragEvent(DropTargetContext context,
                           Point location,
                           int dropAction,
                           int srcActions)
Initializes a DropTargetDragEvent.

Throws:
IllegalArgumentException - If dropAction is not one of DnDConstants, srcActions is not a bitwise mask of DnDConstants, or dtc is null.
NullPointerException - If location is null.
Method Detail

acceptDrag

public void acceptDrag(int dragOperation)

getCurrentDataFlavors

public DataFlavor[] getCurrentDataFlavors()

getCurrentDataFlavorsAsList

public List<DataFlavor> getCurrentDataFlavorsAsList()

getDropAction

public int getDropAction()

getLocation

public Point getLocation()

getSourceActions

public int getSourceActions()

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor df)

rejectDrag

public void rejectDrag()

getTransferable

public Transferable getTransferable()
TODO

Returns:
Since:
1.5