:: 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