<html> <head> <title>Service CommandButton</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="CommandButton-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="#ServicesSummary" class="navisub">Services' Summary</a></td> <td class="navisub"><a href="#InterfacesSummary" class="navisub">Interfaces' Summary</a></td> <td class="navisub">Properties' Summary</td> <td class="navisub"><a href="#ServicesDetails" class="navisub">Services' Details</a></td> <td class="navisub"><a href="#InterfacesDetails" class="navisub">Interfaces' Details</a></td> <td class="navisub">Properties' Details</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">form</a> :: <a href="module-ix.html" class="namechain">control</a> :: </p> </td> </tr> <tr> <td class="title">service CommandButton</td> </tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>describes a button control. </dd> <dd><p>The model of the control has to support the ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/CommandButton.html">CommandButton</a> service.</p> <p>The control is clickable, the action taken upon clicking depends on the settings of the model the control belongs to.</p> </dd> <dt><b>See also</b></dt> <dd>::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControl.html">UnoControl</a>, ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlModel.html">UnoControlModel</a>, ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/CommandButton.html">CommandButton</a>::<a href="../component/CommandButton.html#ButtonType">ButtonType</a></dd> </dl> </td> </tr> </table> <hr> <a name="ServicesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Included Services - Summary</td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlButton.html">UnoControlButton</a></td> <td class="imsum_right"><dl> <dt>(referenced entity's summary:)</dt> <dd>specifies a button control. </dd> </dl> </td> </tr> </table> <a name="InterfacesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Exported Interfaces - Summary</td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XApproveActionBroadcaster.html">XApproveActionBroadcaster</a></td> <td class="imsum_right"><p>allows external instances to register as veto listener for the button's actions. (<a href="#XApproveActionBroadcaster">details</a>)</p> </td> </tr> </table> <a name="ServicesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Included Services - Details</td> </tr> <tr/> <tr> <td class="imdetail"><a name="UnoControlButton" class="membertitle">::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlButton.html">UnoControlButton</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><dl> <dt>(referenced entity's summary:)</dt> <dd>specifies a button control. </dd> </dl> </td> </tr> </table> </td> </tr> </table> <a name="InterfacesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Exported Interfaces - Details</td> </tr> <tr/> <tr> <td class="imdetail"><a name="XApproveActionBroadcaster" class="membertitle">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XApproveActionBroadcaster.html">XApproveActionBroadcaster</a></a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center"> <tr> <td><dl> <dt><b>Description</b></dt> <dd>allows external instances to register as veto listener for the button's actions. </dd> <dd><p>An ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XApproveActionListener.html">XApproveActionListener</a> returning false on it's approve-method will prevent any action which would usually be triggered - this includes not only submitting or resetting forms, but also calling the ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/XActionListener.html">XActionListener</a>s of the super service<br/> This may be interesting for e.g. forms which want to provide input validation before submitting data.<br/> </dd> <dt><b>See also</b></dt> <dd>::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/HTMLForm.html">HTMLForm</a>, ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XSubmit.html">XSubmit</a>, ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XReset.html">XReset</a>, ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/XButton.html">XButton</a></dd> </dl> </td> </tr> </table> </td> </tr> </table> <br> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p> </div> <!-- id="adc-idlref" --> </body> </html>