DropTargetEvent

The DropTargetEvent contains the event information passed in the methods of the DropTargetListener.

@see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>

Constructors

this
this(DNDEvent e)

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

Members

Variables

currentDataType
TransferData currentDataType;

The type of data that will be dropped.

dataTypes
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.

detail
int detail;

The operation being performed. @see DND#DROP_NONE @see DND#DROP_MOVE @see DND#DROP_COPY @see DND#DROP_LINK

feedback
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). <p>A value of DND.FEEDBACK_NONE indicates that no drag under effect will be displayed.</p> <p>Feedback effects will only be applied if they are applicable.</p> <p>The default value is DND.FEEDBACK_SELECT.</p> @see DND#FEEDBACK_NONE @see DND#FEEDBACK_SELECT @see DND#FEEDBACK_INSERT_BEFORE @see DND#FEEDBACK_INSERT_AFTER @see DND#FEEDBACK_SCROLL @see DND#FEEDBACK_EXPAND

item
Widget item;

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

operations
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 DND#DROP_NONE @see DND#DROP_MOVE @see DND#DROP_COPY @see DND#DROP_LINK

x
int x;

The x-cordinate of the cursor relative to the <code>Display</code>

y
int y;

The y-cordinate of the cursor relative to the <code>Display</code>

Inherited Members

From TypedEvent

display
Display display;

the display where the event occurred

widget
Widget widget;

the widget that issued the event

time
int time;

the time that the event occurred.

data
Object data;

a field for application use

getName
String getName()

Returns the name of the event. This is the name of the class without the module name.

toString
String toString()

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

Meta