Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: 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
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 pop-up 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
void
mouseReleased( | [in] MouseEvent | e );
Description is invoked when a mouse button has been released on a window.
mouseEntered
void
mouseEntered( | [in] MouseEvent | e );
Description is invoked when the mouse enters a window.
mouseExited
void
mouseExited( | [in] MouseEvent | e );
Description is invoked when the mouse exits a window.

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.