public class DropTargetDragEvent extends DropTargetEvent
context
source
Constructor and Description |
---|
DropTargetDragEvent(DropTargetContext context,
Point location,
int dropAction,
int srcActions)
Initializes a
DropTargetDragEvent . |
Modifier and Type | Method and Description |
---|---|
void |
acceptDrag(int dragOperation) |
DataFlavor[] |
getCurrentDataFlavors() |
List<DataFlavor> |
getCurrentDataFlavorsAsList() |
int |
getDropAction() |
Point |
getLocation() |
int |
getSourceActions() |
Transferable |
getTransferable()
TODO
|
boolean |
isDataFlavorSupported(DataFlavor df) |
void |
rejectDrag() |
getDropTargetContext
getSource, toString
public DropTargetDragEvent(DropTargetContext context, Point location, int dropAction, int srcActions)
DropTargetDragEvent
.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.public void acceptDrag(int dragOperation)
public DataFlavor[] getCurrentDataFlavors()
public List<DataFlavor> getCurrentDataFlavorsAsList()
public int getDropAction()
public Point getLocation()
public int getSourceActions()
public boolean isDataFlavorSupported(DataFlavor df)
public void rejectDrag()
public Transferable getTransferable()