public class DropTargetEvent extends TypedEvent
Modifier and Type | Field and Description |
---|---|
TransferData |
currentDataType
The type of data that will be dropped.
|
TransferData[] |
dataTypes
A list of the types of data that the DragSource is capable of providing.
|
int |
detail
The operation being performed.
|
int |
feedback
A bitwise OR'ing of the drag under effect feedback to be displayed to the user
(e.g.
|
Widget |
item
If the associated control is a table or tree, this field contains the item located
at the cursor coordinates.
|
int |
operations
A bitwise OR'ing of the operations that the DragSource can support
(e.g.
|
(package private) static long |
serialVersionUID |
int |
x
The x-cordinate of the cursor relative to the
Display |
int |
y
The y-cordinate of the cursor relative to the
Display |
data, display, time, widget
Constructor and Description |
---|
DropTargetEvent(DNDEvent e)
Constructs a new instance of this class based on the
information in the given untyped event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a string containing a concise, human-readable
description of the receiver.
|
(package private) void |
updateEvent(DNDEvent e) |
public int x
Display
public int y
Display
public int detail
DND.DROP_NONE
,
DND.DROP_MOVE
,
DND.DROP_COPY
,
DND.DROP_LINK
,
DND.DROP_DEFAULT
public int operations
DND.DROP_NONE
,
DND.DROP_MOVE
,
DND.DROP_COPY
,
DND.DROP_LINK
,
DND.DROP_DEFAULT
public int feedback
A value of DND.FEEDBACK_NONE indicates that no drag under effect will be displayed.
Feedback effects will only be applied if they are applicable.
The default value is DND.FEEDBACK_SELECT.
public Widget item
public TransferData currentDataType
public TransferData[] dataTypes
static final long serialVersionUID
public DropTargetEvent(DNDEvent e)
e
- the untyped event containing the informationvoid updateEvent(DNDEvent e)
public java.lang.String toString()
toString
in class TypedEvent