All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.gloaming.awt.dnd.DropTargetDropEvent

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

public abstract class DropTargetDropEvent
extends com.gloaming.awt.dnd.DropTargetEvent
Local equivelent to the Java2 DropTargetDropEvent. 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.DropTargetDropEvent

Constructor Index

 o DropTargetDropEvent()

Method Index

 o acceptDrop(int)
Called by the target to accept the drag being offered.
 o dropComplete(boolean)
Called by the target to indicate that the drop operation has completed successfully, and all data has been transferred.
 o getCurrentDataFlavors()
Returns the data flavors of the transferable objects from the drag source.
 o getDropAction()
Gets the drop actions supported by the drag source.
 o getLocation()
Gets the location of the drop.
 o getSourceActions()
Gets the drop actions supported by the drag source.
 o getTransferable()
Gets the transferable data object.
 o isDataFlavorSupported(DataFlavor)
Determines if a specific data flavor is supported by the transferable data in the drag.
 o isLocalTransfer()
Determines if the data being dropped originated from this VM, or some outside source.
 o rejectDrop()
Called by the target to reject the drag being offered.

Constructors

 o DropTargetDropEvent
 public DropTargetDropEvent()

Methods

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

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

 o dropComplete
 public abstract void dropComplete(boolean success)
Called by the target to indicate that the drop operation has completed successfully, and all data has been transferred.

Parameters:
success - true, if all data was successfully transferred.
 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 actions supported by the drag source.

Returns:
source action(s)
 o getLocation
 public abstract java.awt.Point getLocation()
Gets the location of the drop.

Returns:
Point in target of drop
 o getSourceActions
 public abstract int getSourceActions()
Gets the drop actions supported by the drag source.

Returns:
source action(s)
 o getTransferable
 public abstract java.awt.datatransfer.Transferable getTransferable()
Gets the transferable data object.

Returns:
transferable
 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
 o isLocalTransfer
 public abstract boolean isLocalTransfer()
Determines if the data being dropped originated from this VM, or some outside source.

Returns:
true if data is local, false if it originated from a source outside our VM

All Packages  Class Hierarchy  This Package  Previous  Next  Index