|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.eclipse.swt.internal.SWTEventObject
org.eclipse.swt.events.TypedEvent
org.eclipse.swt.dnd.DragSourceEvent
The DragSourceEvent contains the event information passed in the methods of the DragSourceListener.
DragSourceListener
,
Serialized FormField Summary | |
---|---|
TransferData |
dataType
The type of data requested. |
int |
detail
The operation that was performed. |
boolean |
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. |
Image |
image
The drag source image to be displayed during the drag. |
int |
x
In dragStart, the x coordinate (relative to the control) of the position the mouse went down to start the drag. |
int |
y
In 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.TypedEvent |
---|
data, display, time, widget |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DragSourceEvent(org.eclipse.swt.dnd.DNDEvent e)
Constructs a new instance of this class based on the information in the given untyped event. |
Methods inherited from class org.eclipse.swt.events.TypedEvent |
---|
toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int detail
DND.DROP_NONE
,
DND.DROP_MOVE
,
DND.DROP_COPY
,
DND.DROP_LINK
,
DND.DROP_TARGET_MOVE
public boolean doit
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 dragFinished:
Flag to indicate if the operation was performed successfully. True if the operation was performed successfully.
public int x
public int y
public TransferData dataType
public Image image
A value of null indicates that no drag image will be displayed.
The default value is null.
Constructor Detail |
public DragSourceEvent(org.eclipse.swt.dnd.DNDEvent e)
e
- the untyped event containing the information
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.