<html> <head> <title>Struct MouseEvent</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../idl.css"> </head> <body> <div id="adc-idlref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="3"> <tr> <td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td> <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> <td class="navimain"><a href="MouseEvent-xref.html" class="navimain">Use</a></td> <td class="navimainnone">Devguide</td> <td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td> </tr> </table> <table class="navisub" border="0" cellpadding="0"> <tr> <td class="navisub"><a href="#Elements" class="navisub">Elements' Summary</a></td> <td class="navisub"><a href="#ElementDetails" class="navisub">Elements' Details</a></td> </tr> </table> <hr> <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> <tr> <td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">awt</a> :: </p> </td> </tr> <tr> <td class="title">struct MouseEvent</td> </tr> <tr> <td><dl> <dt><b>Base Hierarchy</b></dt> <dd><pre style="font-family:monospace;"><strong>MouseEvent</strong> ┗ <a href="InputEvent.html">InputEvent</a> ┗ ::com::sun::star::<a href="../lang/module-ix.html">lang</a>::<a href="../lang/EventObject.html">EventObject</a> </pre></dd> </dl> </td> </tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>specifies an event from the mouse. </dd> <dd><p>This event is also used for popup menu requests on objects. See <a href="MouseEvent.html#PopupTrigger">PopupTrigger</a> for details.</p> </dd> <dt><b>See also</b></dt> <dd><a href="XMouseListener.html">XMouseListener</a>, <a href="XMouseMotionListener.html">XMouseMotionListener</a>, <a href="InputEvent.html">InputEvent</a></dd> </dl> </td> </tr> </table> <hr> <a name="Elements"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Elements' Summary</td> </tr> <tr> <td class="imsum_left"><a href="#Buttons">Buttons</a></td> <td class="imsum_right">contains the pressed mouse buttons. </td> </tr> <tr> <td class="imsum_left"><a href="#X">X</a></td> <td class="imsum_right">contains the x coordinate location of the mouse. </td> </tr> <tr> <td class="imsum_left"><a href="#Y">Y</a></td> <td class="imsum_right">contains the y coordinate location of the mouse. </td> </tr> <tr> <td class="imsum_left"><a href="#ClickCount">ClickCount</a></td> <td class="imsum_right">contains the number of mouse clicks associated with event. </td> </tr> <tr> <td class="imsum_left"><a href="#PopupTrigger">PopupTrigger</a></td> <td class="imsum_right">specifies if this event is a popup-menu trigger event. </td> </tr> </table> <a name="ElementDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Elements' Details</td> </tr> <tr> <td class="imdetail"><a name="Buttons" class="membertitle">Buttons</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>short <b>Buttons</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>contains the pressed mouse buttons. </dd> <dd><p>Zero ore more constants from the <a href="MouseButton.html">MouseButton</a> group.</p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="X" class="membertitle">X</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>long <b>X</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>contains the x coordinate location of the mouse. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="Y" class="membertitle">Y</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>long <b>Y</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>contains the y coordinate location of the mouse. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="ClickCount" class="membertitle">ClickCount</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>long <b>ClickCount</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>contains the number of mouse clicks associated with event. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="PopupTrigger" class="membertitle">PopupTrigger</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td>boolean <b>PopupTrigger</b>;<hr> <dl> <dt><b>Description</b></dt> <dd>specifies if this event is a popup-menu trigger event. </dd> <dd><p>If this member is <b>true</b>, the event describes a request for a popup menu, also known as context menu, on an object.</p> <p>In this case, <a href="#X">X</a> and <a href="#Y">Y</a> describe the position where the request was issued. If those members are <code>-1</code>, then the request was issued using the keyboard, by pressing the operating-system dependent key combination for this purpose.</p> </dd> <dt><b>See also</b></dt> <dd><a href="XMouseListener.html">XMouseListener</a>::<a href="XMouseListener.html#mousePressed">mousePressed</a></dd> </dl> </td> </tr> </table> </td> </tr> </table> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2008 Sun Microsystems, Inc.</p> </div> <!-- id="adc-idlref" --> </body> </html>