Package org.eclipse.jface.util
Interface TransferDragSourceListener
-
- All Superinterfaces:
DragSourceListener,EventListener,SWTEventListener
public interface TransferDragSourceListener extends DragSourceListener
ATransferDragSourceListeneris aDragSourceListenerthat can handle one type of SWTTransfer. The purpose of aTransferDragSourceListeneris 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
DelegatingDragAdapterallows these functions to be implemented separately for unrelated types of drags.DelegatingDragAdapterthen combines the function of eachTransferDragSourceListener, while allowing them to be implemented as if they were the onlyDragSourceListener.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransfergetTransfer()Returns theTransfertype that this listener can provide data for.-
Methods inherited from interface org.eclipse.swt.dnd.DragSourceListener
dragFinished, dragSetData, dragStart
-
-
-
-
Method Detail
-
getTransfer
Transfer getTransfer()
Returns theTransfertype that this listener can provide data for.- Returns:
- the
Transferassociated with this listener
-
-