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
-
DropTargetDropEvent()
-
-
acceptDrop(int)
- Called by the target to accept the drag being offered.
-
dropComplete(boolean)
- Called by the target to indicate that the drop operation has completed
successfully, and all data has been transferred.
-
getCurrentDataFlavors()
- Returns the data flavors of the transferable objects from the drag source.
-
getDropAction()
- Gets the drop actions supported by the drag source.
-
getLocation()
- Gets the location of the drop.
-
getSourceActions()
- Gets the drop actions supported by the drag source.
-
getTransferable()
- Gets the transferable data object.
-
isDataFlavorSupported(DataFlavor)
- Determines if a specific data flavor is supported by the transferable data in the drag.
-
isLocalTransfer()
- Determines if the data being dropped originated from this VM, or some outside source.
-
rejectDrop()
- Called by the target to reject the drag being offered.
DropTargetDropEvent
public DropTargetDropEvent()
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
rejectDrop
public abstract void rejectDrop()
- Called by the target to reject the drag being offered.
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.
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
getDropAction
public abstract int getDropAction()
- Gets the drop actions supported by the drag source.
- Returns:
- source action(s)
getLocation
public abstract java.awt.Point getLocation()
- Gets the location of the drop.
- Returns:
- Point in target of drop
getSourceActions
public abstract int getSourceActions()
- Gets the drop actions supported by the drag source.
- Returns:
- source action(s)
getTransferable
public abstract java.awt.datatransfer.Transferable getTransferable()
- Gets the transferable data object.
- Returns:
- transferable
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
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