(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

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

interface XMouseListener
Base Interfaces
XMouseListener
┗ ::com::sun::star::lang::XEventListener

::com::sun::star::lang::XEventListener
(referenced interface's summary:)
base interface for all event listeners interfaces.
Description
makes it possible to receive events from the mouse in a certain window.

Methods' Summary
mousePressed is invoked when a mouse button has been pressed on a window.  
mouseReleased is invoked when a mouse button has been released on a window.  
mouseEntered is invoked when the mouse enters a window.  
mouseExited is invoked when the mouse exits a window.  
Methods' Details
mousePressed
[oneway] void
mousePressed( [in] MouseEvent  e );

Description
is invoked when a mouse button has been pressed on a window.

Since mouse presses are usually also used to indicate requests for popup menus (also known as context menus) on objects, you might receive two events for a single mouse press: For example, if, on your operating system, pressing the right mouse button indicates the request for a context menu, then you will receive one call to mousePressed indicating the mouse click, and another one indicating the context menu request. For the latter, the MouseEvent::PopupTrigger member of the event will be set to true.

mouseReleased
[oneway] void
mouseReleased( [in] MouseEvent  e );

Description
is invoked when a mouse button has been released on a window.
mouseEntered
[oneway] void
mouseEntered( [in] MouseEvent  e );

Description
is invoked when the mouse enters a window.
mouseExited
[oneway] void
mouseExited( [in] MouseEvent  e );

Description
is invoked when the mouse exits a window.
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

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

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.