public interface FwkDragAndDropInterface
extends java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.awt.dnd.DropTargetListener
Modifier and Type | Method and Description |
---|---|
int |
getAcceptableDragActions()
Get the acceptable drag actions.
|
int |
getAcceptableDropActions()
Get the acceptable drop actions.
|
java.awt.datatransfer.Transferable |
getTransferData()
Gets the transferable data for drag action.
|
int |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor[] df)
Return a boolean whether the given data flavor is supported.
|
boolean |
isDragOk(java.awt.dnd.DropTargetDragEvent e)
This method checks the drag source to ok for drop.
|
void |
setAcceptableDragActions(int actions)
Set the acceptable drag actions.
|
void |
setAcceptableDropActions(int actions)
Set the acceptable drop actions.
|
void |
setInfoBusName(java.lang.String name)
Set the bus name on that a dropped item should be created.
|
void |
setTransferData(java.lang.Object data,
java.awt.datatransfer.DataFlavor flavor)
Set the transfer data from drop action.
|
boolean isDragOk(java.awt.dnd.DropTargetDragEvent e)
void setAcceptableDropActions(int actions)
actions
- the acceptable drop actions.void setAcceptableDragActions(int actions)
actions
- the acceptable drag actions.int getAcceptableDropActions()
int getAcceptableDragActions()
int isDataFlavorSupported(java.awt.datatransfer.DataFlavor[] df)
df
- the falvors to be checked.java.awt.datatransfer.Transferable getTransferData()
void setTransferData(java.lang.Object data, java.awt.datatransfer.DataFlavor flavor)
data
- The data object to be transfered.flavor
- The flavor of the data.void setInfoBusName(java.lang.String name)
name
- The infobus name.