:: com :: sun :: star :: awt ::

struct MouseEvent
Base Hierarchy
MouseEventInputEvent
    ┗ ::com::sun::star::lang::EventObject
Description
specifies an event from the mouse.

This event is also used for pop-up menu requests on objects. See PopupTrigger for details.

See also
XMouseListener, XMouseMotionListener, InputEvent

Elements' Summary
Buttons contains the pressed mouse buttons.  
X contains the x coordinate location of the mouse.  
Y contains the y coordinate location of the mouse.  
ClickCount contains the number of mouse clicks associated with event.  
PopupTrigger specifies if this event is a pop-up menu trigger event.  
Elements' Details
Buttons
short Buttons;
Description
contains the pressed mouse buttons.

Zero ore more constants from the MouseButton group.

X
long X;
Description
contains the x coordinate location of the mouse.
Y
long Y;
Description
contains the y coordinate location of the mouse.
ClickCount
long ClickCount;
Description
contains the number of mouse clicks associated with event.
PopupTrigger
boolean PopupTrigger;
Description
specifies if this event is a pop-up menu trigger event.

If this member is true, the event describes a request for a pop-up menu, also known as context menu, on an object.

In this case, X and Y describe the position where the request was issued. If those members are -1, then the request was issued using the keyboard, by pressing the operating-system dependent key combination for this purpose.

See also
XMouseListener::mousePressed
Top of Page