All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.gloaming.awt.dnd.DropTargetDragEvent

java.lang.Object
   |
   +----com.gloaming.awt.dnd.DropTargetEvent
           |
           +----com.gloaming.awt.dnd.DropTargetDragEvent

public abstract class DropTargetDragEvent
extends com.gloaming.awt.dnd.DropTargetEvent
Local equivelent to the Java2 DropTargetDragEvent. This is an abstract base class which defines the interface to the class. Platform specific sub-classes are created depending on the run-time environment.

See Also:
java.awt.dnd.DropTargetDragEvent

Constructor Index

 o DropTargetDragEvent()

Method Index

 o acceptDrag(int)
Called by the target to accept the drag being offered.
 o getCurrentDataFlavors()
Returns the data flavors of the transferable objects from the drag source.
 o getDropAction()
Gets the drop action of the drag.
 o getSourceActions()
Gets the drop actions supported by the drag source.
 o isDataFlavorSupported(DataFlavor)
Determines if a specific data flavor is supported by the transferable data in the drag.
 o rejectDrag()
Called by the target to reject the drag being offered.

Constructors

 o DropTargetDragEvent
 public DropTargetDragEvent()

Methods

 o acceptDrag
 public abstract void acceptDrag(int dragOperation)
Called by the target to accept the drag being offered.

Parameters:
dragOperation - the action (MOVE, COPY, etc.) being accepted
 o rejectDrag
 public abstract void rejectDrag()
Called by the target to reject the drag being offered.

 o getCurrentDataFlavors
 public abstract java.awt.datatransfer.DataFlavor[] getCurrentDataFlavors()
Returns the data flavors of the transferable objects from the drag source.

Returns:
DataFlavor[] of source data
 o getDropAction
 public abstract int getDropAction()
Gets the drop action of the drag.

Returns:
current drop action
 o getSourceActions
 public abstract int getSourceActions()
Gets the drop actions supported by the drag source.

Returns:
source action(s)
 o isDataFlavorSupported
 public abstract boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
Determines if a specific data flavor is supported by the transferable data in the drag.

Parameters:
df - DataFlavor to test
Returns:
true, if DataFlavor is supported

All Packages  Class Hierarchy  This Package  Previous  Next  Index