Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: 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 popup 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 popup-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 popup-menu trigger event.

If this member is true, the event describes a request for a popup 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

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.