Package org.eclipse.jface.util
Interface TransferDragSourceListener
- All Superinterfaces:
DragSourceListener,EventListener
A
TransferDragSourceListener is a DragSourceListener
that can handle one type of SWT Transfer.
The purpose of a TransferDragSourceListener is to:
- Determine enablement for a drag operation. A
TransferDragSourceListenerwill not be used in a drag operation if theDragSourceEvent#doitfield is set to false inDragSourceListener#dragStart(DragSourceEvent). - Set data for a single type of drag and
Transfertype.
A DelegatingDragAdapter allows these functions to be implemented
separately for unrelated types of drags. DelegatingDragAdapter then
combines the function of each TransferDragSourceListener, while
allowing them to be implemented as if they were the only DragSourceListener.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns theTransfertype that this listener can provide data for.Methods inherited from interface org.eclipse.swt.dnd.DragSourceListener
dragFinished, dragSetData, dragStart
-
Method Details
-
getTransfer
Transfer getTransfer()Returns theTransfertype that this listener can provide data for.- Returns:
- the
Transferassociated with this listener
-