java.awt.dnd
Class DropTargetDropEvent
java.lang.Object
java.util.EventObject
java.awt.dnd.DropTargetEvent
java.awt.dnd.DropTargetDropEvent
- All Implemented Interfaces:
- Serializable
public class DropTargetDropEvent
- extends DropTargetEvent
- Since:
- 1.2
- See Also:
- Serialized Form
DropTargetDropEvent
public DropTargetDropEvent(DropTargetContext dtc,
Point location,
int dropAction,
int actions)
- Initializes a
DropTargetDropEvent
. By default this constructor
assumes that the target is not int same JVM.
- Throws:
IllegalArgumentException
- If dropAction is not one of DnDConstants,
actions is not a bitwise mask of DnDConstants, or dtc is null.
NullPointerException
- If location is null.
DropTargetDropEvent
public DropTargetDropEvent(DropTargetContext dtc,
Point location,
int dropAction,
int actions,
boolean isLocalTx)
- Initializes a
DropTargetDropEvent
.
- Throws:
IllegalArgumentException
- If dropAction is not one of DnDConstants,
actions is not a bitwise mask of DnDConstants, or dtc is null.
NullPointerException
- If location is null.
getLocation
public Point getLocation()
getCurrentDataFlavors
public DataFlavor[] getCurrentDataFlavors()
getCurrentDataFlavorsAsList
public List<DataFlavor> getCurrentDataFlavorsAsList()
isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor flavor)
getSourceActions
public int getSourceActions()
getDropAction
public int getDropAction()
getTransferable
public Transferable getTransferable()
acceptDrop
public void acceptDrop(int dropAction)
rejectDrop
public void rejectDrop()
dropComplete
public void dropComplete(boolean success)
isLocalTransfer
public boolean isLocalTransfer()