public class SwtDragListener extends org.eclipse.swt.dnd.DragSourceAdapter
Modifier and Type | Field and Description |
---|---|
private org.eclipse.swt.dnd.FileTransfer |
fileTransfer
This instance helps to check whether a Transfer can be done.
|
private org.eclipse.swt.dnd.TextTransfer |
textTransfer |
Constructor and Description |
---|
SwtDragListener(int dragType,
org.eclipse.swt.widgets.Control control) |
Modifier and Type | Method and Description |
---|---|
void |
dragFinished(org.eclipse.swt.dnd.DragSourceEvent event) |
void |
dragSetData(org.eclipse.swt.dnd.DragSourceEvent event)
This method is called if the mouse button is released over the target.
|
void |
dragStart(org.eclipse.swt.dnd.DragSourceEvent event) |
(package private) void |
stop() |
private final org.eclipse.swt.dnd.FileTransfer fileTransfer
private final org.eclipse.swt.dnd.TextTransfer textTransfer
SwtDragListener(int dragType, org.eclipse.swt.widgets.Control control)
public void dragFinished(org.eclipse.swt.dnd.DragSourceEvent event)
dragFinished
in interface org.eclipse.swt.dnd.DragSourceListener
dragFinished
in class org.eclipse.swt.dnd.DragSourceAdapter
public void dragSetData(org.eclipse.swt.dnd.DragSourceEvent event)
dragSetData
in interface org.eclipse.swt.dnd.DragSourceListener
dragSetData
in class org.eclipse.swt.dnd.DragSourceAdapter
DragSourceAdapter.dragSetData(org.eclipse.swt.dnd.DragSourceEvent)
public void dragStart(org.eclipse.swt.dnd.DragSourceEvent event)
dragStart
in interface org.eclipse.swt.dnd.DragSourceListener
dragStart
in class org.eclipse.swt.dnd.DragSourceAdapter
void stop()