Package org.eclipse.swt.dnd
Class DragSourceEvent
java.lang.Object
SWTEventObject
org.eclipse.swt.events.TypedEvent
org.eclipse.swt.dnd.DragSourceEvent
The DragSourceEvent contains the event information passed in the methods of
 the DragSourceListener.
- Since:
- 1.3
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe type of data requested.intThe operation that was performed.booleanIn 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.The drag source image to be displayed during the drag.intIn dragStart, the x offset (relative to the image) where the drag source image will be displayed.intIn dragStart, the y offset (relative to the image) where the drag source image will be displayed.intIn dragStart, the x coordinate (relative to the control) of the position the mouse went down to start the drag.intIn dragStart, the y coordinate (relative to the control) of the position the mouse went down to start the drag.Fields inherited from class org.eclipse.swt.events.TypedEventdata, display, time, widget
- 
Constructor SummaryConstructorsConstructorDescriptionDragSourceEvent(DNDEvent e) Constructs a new instance of this class based on the information in the given untyped event.
- 
Method Summary
- 
Field Details- 
detailpublic int detailThe operation that was performed.
- 
doitpublic boolean doitIn 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.
 In dragStart: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. In dragSetData: This will be set to true when the call to dragSetData is made. Set it to false to cancel the drag. In dragFinished: Flag to indicate if the operation was performed successfully. True if the operation was performed successfully. 
- 
xpublic int xIn dragStart, the x coordinate (relative to the control) of the position the mouse went down to start the drag.
- 
ypublic int yIn dragStart, the y coordinate (relative to the control) of the position the mouse went down to start the drag.
- 
dataTypeThe type of data requested. Data provided in the data field must be of the same type.
- 
imageThe drag source image to be displayed during the drag.A value of null indicates that no drag image will be displayed. The default value is null. 
- 
offsetXpublic int offsetXIn dragStart, the x offset (relative to the image) where the drag source image will be displayed.
- 
offsetYpublic int offsetYIn dragStart, the y offset (relative to the image) where the drag source image will be displayed.
 
- 
- 
Constructor Details- 
DragSourceEventpublic DragSourceEvent(DNDEvent e) Constructs a new instance of this class based on the information in the given untyped event.- Parameters:
- e- the untyped event containing the information
- Since:
- 2.0
 
 
- 
- 
Method Details- 
toString- Overrides:
- toStringin class- TypedEvent
 
 
-