Microsoft SDK for Java

DragEvent.DragEvent

Creates a DragEvent object.

Syntax

public DragEvent( IDataObject data, int keyState, int x, int y, int effect )

Parameters

data

The IDataObject that contains the data associated with this event.

keyState

The current state of the SHIFT, CTRL, and ALT keys. Valid values are obtained by applying the bitwise OR operation (|) to the Key.SHIFT, Key.CONTROL, and Key.ALT constants defined in the Key class.

x

The x-coordinate of the mouse pointer.

y

The y-coordinate of the mouse pointer.

effect

An integer that represents the allowed drag-and-drop operations. Valid values are obtained by applying the bitwise OR operation (|) to the constants defined in the DragDropEffect class.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.