Top Description Fields Constructors Methods
org.eclipse.swt.dnd

public Class DropTargetEvent

extends TypedEvent
Class Inheritance
Imports
org.eclipse.swt.events.*, org.eclipse.swt.widgets.*

The DropTargetEvent contains the event information passed in the methods of the DropTargetListener.
See Also
Sample code and further information

Field Summary

Modifier and TypeField and Description
public TransferData
currentDataType

The type of data that will be dropped.

public TransferData[]
dataTypes

A list of the types of data that the DragSource is capable of providing.

public int
detail

The operation being performed.

public int
feedback

A bitwise OR'ing of the drag under effect feedback to be displayed to the user (e.g. DND.FEEDBACK_SELECT | DND.FEEDBACK_SCROLL | DND.FEEDBACK_EXPAND).

public Widget
item

If the associated control is a table or tree, this field contains the item located at the cursor coordinates.

public int
operations

A bitwise OR'ing of the operations that the DragSource can support (e.g. DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK).

pack-priv static final long
public int
x

The x-cordinate of the cursor relative to the Display

public int
y

The y-cordinate of the cursor relative to the Display

Inherited from org.eclipse.swt.events.TypedEvent:
datadisplaytimewidget

Constructor Summary

AccessConstructor and Description
public
DropTargetEvent(DNDEvent
the untyped event containing the information
e
)

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

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a string representation of the event
toString
()

Overrides org.eclipse.swt.events.TypedEvent.toString.

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

Field Detail

currentDataTypeback to summary
public TransferData currentDataType

The type of data that will be dropped.

dataTypesback to summary
public TransferData[] dataTypes

A list of the types of data that the DragSource is capable of providing. The currentDataType must be a member of this list.

detailback to summary
public int detail

The operation being performed.

See Also
DND#DROP_NONE, DND#DROP_MOVE, DND#DROP_COPY, DND#DROP_LINK, DND#DROP_DEFAULT
feedbackback to summary
public int feedback

A bitwise OR'ing of the drag under effect feedback to be displayed to the user (e.g. DND.FEEDBACK_SELECT | DND.FEEDBACK_SCROLL | DND.FEEDBACK_EXPAND).

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.

See Also
DND#FEEDBACK_NONE, DND#FEEDBACK_SELECT, DND#FEEDBACK_INSERT_BEFORE, DND#FEEDBACK_INSERT_AFTER, DND#FEEDBACK_SCROLL, DND#FEEDBACK_EXPAND
itemback to summary
public Widget item

If the associated control is a table or tree, this field contains the item located at the cursor coordinates.

operationsback to summary
public int operations

A bitwise OR'ing of the operations that the DragSource can support (e.g. DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK). The detail value must be a member of this list or DND.DROP_NONE.

See Also
DND#DROP_NONE, DND#DROP_MOVE, DND#DROP_COPY, DND#DROP_LINK, DND#DROP_DEFAULT
serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.eclipse.swt.events.TypedEvent.serialVersionUID.

xback to summary
public int x

The x-cordinate of the cursor relative to the Display

yback to summary
public int y

The y-cordinate of the cursor relative to the Display

Constructor Detail

DropTargetEventback to summary
public DropTargetEvent(DNDEvent e)

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

Parameters
e:DNDEvent

the untyped event containing the information

Method Detail

toStringback to summary
public String toString()

Overrides org.eclipse.swt.events.TypedEvent.toString.

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

Returns:String

a string representation of the event

Annotations
@Override
updateEventback to summary
pack-priv void updateEvent(DNDEvent e)