|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Event 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. |
static int |
DRAG_END
|
static int |
DRAG_SET_DATA
|
static int |
DRAG_START
|
Image |
image
The drag source image to be displayed during the drag. |
int |
offsetX
In dragStart, the x offset (relative to the image) where the drag source image will be displayed. |
int |
offsetY
In dragStart, the y offset (relative to the image) where the drag source image will be displayed. |
int |
time
the time that the event occurred. |
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, widget |
Constructor Summary | |
DragSourceEvent(Widget widget,
int id)
|
Method Summary | |
static void |
addListener(Adaptable adaptable,
DragSourceListener listener)
|
protected boolean |
allowProcessing()
|
protected void |
dispatchToObserver(Object listener)
|
static Object[] |
getListeners(Adaptable adaptable)
|
protected Class |
getListenerType()
|
static boolean |
hasListener(Adaptable adaptable)
|
static void |
removeListener(Adaptable adaptable,
DragSourceListener listener)
|
String |
toString()
|
Methods inherited from class org.eclipse.swt.events.TypedEvent |
executeNext, getSource, processEvent, processScheduledEvents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DRAG_START
public static final int DRAG_END
public static final int DRAG_SET_DATA
public int detail
DND.DROP_NONE
,
DND.DROP_MOVE
,
DND.DROP_COPY
,
DND.DROP_LINK
,
DND.DROP_TARGET_MOVE
public boolean doit
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.
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.
public int offsetX
public int offsetY
public int time
Constructor Detail |
public DragSourceEvent(Widget widget, int id)
Method Detail |
public String toString()
toString
in class TypedEvent
protected void dispatchToObserver(Object listener)
dispatchToObserver
in class TypedEvent
protected boolean allowProcessing()
allowProcessing
in class TypedEvent
protected Class getListenerType()
getListenerType
in class TypedEvent
public static boolean hasListener(Adaptable adaptable)
public static void addListener(Adaptable adaptable, DragSourceListener listener)
public static void removeListener(Adaptable adaptable, DragSourceListener listener)
public static Object[] getListeners(Adaptable adaptable)
|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2011. All rights reserved.