MouseEvent.MouseEvent

Overview | Methods | Fields | This Package | All Packages

MouseEvent.MouseEvent

Creates a MouseEvent object.

Syntax

public MouseEvent( int button, int clicks, int x, int y, int delta )

public MouseEvent( Object extendedInfo, int button, int clicks, int x, int y, int delta )

Parameters

extendedInfo

Additional information supplied by com.ms.wfc.html events. You should not pass a value for this parameter outside the context of the com.ms.wfc.html package. For more information, see Event.extendedInfo and DhEventInfo.

button

An integer that indicates which mouse button was pressed. Possible values are constants defined in the MouseButton class. This value is MouseButton.NONE if no mouse button was pressed when the event was generated.

clicks

An integer that indicates how many times the mouse button was pressed.

x

An integer that represents the x-coordinate of the mouse click (in client coordinates).

y

An integer that represents the y-coordinate of the mouse click (in client coordinates).

delta

An integer that represents the amount that the mouse wheel has moved.