DragSourceEffect

This class provides default implementations to display a drag source effect during a drag and drop operation. The current implementation does not provide any visual feedback.

<p>The drag source effect has the same API as the <code>DragSourceAdapter</code> so that it can provide custom visual feedback when a <code>DragSourceEvent</code> occurs. </p>

<p>Classes that wish to provide their own drag source effect such as displaying a default source image during a drag can extend the <code>DragSourceEffect</code> class, override the <code>DragSourceAdapter.dragStart</code> method and set the field <code>DragSourceEvent.image</code> with their own image. The image should be disposed when <code>DragSourceAdapter.dragFinished</code> is called. </p>

@see DragSourceAdapter @see DragSourceEvent @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>

@since 3.3

class DragSourceEffect : DragSourceAdapter {
Control control;
}

Constructors

this
this(Control control)

Creates a new <code>DragSourceEffect</code> to handle drag effect from the specified <code>Control</code>.

Members

Functions

getControl
Control getControl()

Returns the Control which is registered for this DragSourceEffect. This is the control that the user clicks in to initiate dragging.

Inherited Members

From DragSourceAdapter

dragStart
void dragStart(DragSourceEvent event)

This implementation of <code>dragStart</code> permits the drag operation to start. For additional information see <code>DragSourceListener.dragStart</code>.

dragFinished
void dragFinished(DragSourceEvent event)

This implementation of <code>dragFinished</code> does nothing. For additional information see <code>DragSourceListener.dragFinished</code>.

dragSetData
void dragSetData(DragSourceEvent event)

This implementation of <code>dragSetData</code> does nothing. For additional information see <code>DragSourceListener.dragSetData</code>.

Meta