DragSourceEvent

The DragSourceEvent contains the event information passed in the methods of the DragSourceListener.

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

Constructors

this
this(DNDEvent e)

Constructs a new instance of this class based on the information in the given untyped event.

Members

Variables

dataType
TransferData dataType;

The type of data requested. Data provided in the data field must be of the same type.

detail
int detail;

The operation that was performed. @see DND#DROP_NONE @see DND#DROP_MOVE @see DND#DROP_COPY @see DND#DROP_LINK @see DND#DROP_TARGET_MOVE

doit
bool doit;

In dragStart, the doit field determines if the drag and drop operation should proceed; in dragFinished, the doit field indicates whether the operation was performed successfully. <p></p> In dragStart: <p>Flag to determine if the drag and drop operation should proceed. The application can set this value to false to prevent the drag from starting. Set to true by default.</p>

image
Image image;

The drag source image to be displayed during the drag. <p>A value of null indicates that no drag image will be displayed.</p> <p>The default value is null.</p>

x
int x;

In dragStart, the x coordinate (relative to the control) of the position the mouse went down to start the drag. @since 3.2

y
int y;

In dragStart, the y coordinate (relative to the control) of the position the mouse went down to start the drag . @since 3.2

Inherited Members

From TypedEvent

display
Display display;

the display where the event occurred

widget
Widget widget;

the widget that issued the event

time
int time;

the time that the event occurred.

data
Object data;

a field for application use

getName
String getName()

Returns the name of the event. This is the name of the class without the module name.

toString
String toString()

Returns a string containing a concise, human-readable description of the receiver.

Meta