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
-
DropTargetDragEvent()
-
-
acceptDrag(int)
- Called by the target to accept the drag being offered.
-
getCurrentDataFlavors()
- Returns the data flavors of the transferable objects from the drag source.
-
getDropAction()
- Gets the drop action of the drag.
-
getSourceActions()
- Gets the drop actions supported by the drag source.
-
isDataFlavorSupported(DataFlavor)
- Determines if a specific data flavor is supported by the transferable data in the drag.
-
rejectDrag()
- Called by the target to reject the drag being offered.
DropTargetDragEvent
public DropTargetDragEvent()
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
rejectDrag
public abstract void rejectDrag()
- Called by the target to reject the drag being offered.
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 action of the drag.
- Returns:
- current drop action
getSourceActions
public abstract int getSourceActions()
- Gets the drop actions supported by the drag source.
- Returns:
- source action(s)
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