java.awt.dnd
Class DropTargetDragEvent
java.lang.Object
java.util.EventObject
java.awt.dnd.DropTargetEvent
java.awt.dnd.DropTargetDragEvent
- All Implemented Interfaces:
- Serializable
public class DropTargetDragEvent
- extends DropTargetEvent
- Since:
- 1.2
- See Also:
- Serialized Form
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.
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