java.awt.dnd
Class DropTargetDropEvent

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

public class DropTargetDropEvent
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
DropTargetDropEvent(DropTargetContext dtc, Point location, int dropAction, int actions)
          Initializes a DropTargetDropEvent.
DropTargetDropEvent(DropTargetContext dtc, Point location, int dropAction, int actions, boolean isLocalTx)
          Initializes a DropTargetDropEvent.
 
Method Summary
 void acceptDrop(int dropAction)
           
 void dropComplete(boolean success)
           
 DataFlavor[] getCurrentDataFlavors()
           
 List<DataFlavor> getCurrentDataFlavorsAsList()
           
 int getDropAction()
           
 Point getLocation()
           
 int getSourceActions()
           
 Transferable getTransferable()
           
 boolean isDataFlavorSupported(DataFlavor flavor)
           
 boolean isLocalTransfer()
           
 void rejectDrop()
           
 
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

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.
Method Detail

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()