<html> <head> <title>Service BindableControlModel</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="BindableControlModel-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="#IncludedServices" class="navisub">Included Services</a></td> <td class="navisub"><a href="#ExportedInterfaces" class="navisub">Exported Interfaces</a></td> <td class="navisub">Properties' Summary</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">binding</a> :: </p> </td> </tr> <tr> <td class="title"><table class="title-table" width="99%"> <tr> <td width="25%" class="title2">unpublished </td> <td width="50%" class="title">service BindableControlModel</td> <td width="*"/></tr> </table> </td> </tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>specifies the model of a form control which supports binding to an external value supplier. </dd> </dl> </td> </tr> </table> <hr> <a name="IncludedServices"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Included Services</td> </tr> <tr> <td class="imsum_left">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../FormControlModel.html">FormControlModel</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>specifies the basic functionality for a form control model </dd> <dd><p>Via this service, bindable control models inherit the ::com::sun::star::<a href="../../util/module-ix.html">util</a>::<a href="../../util/XCloneable.html">XCloneable</a> interface.<br/> If an bindable control model, at which a binding has been established (via <a href="XBindableValue.html">XBindableValue</a>::<a href="XBindableValue.html#setValueBinding">setValueBinding</a>), is being cloned, then the binding is also established at the clone. Effectively, this means that both control model instances share the same binding instance.</p> </dd> </dl> </td> </tr> </table> <a name="ExportedInterfaces"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Exported Interfaces</td> </tr> <tr> <td class="imsum_left"><a href="XBindableValue.html">XBindableValue</a></td> <td class="imsum_right"><dl> <dt><b>Description</b></dt> <dd>specifies support for being bound to an external value </dd> <dd><p>When a <a href="BindableControlModel.html">BindableControlModel</a> is bound to an external value, then every change in the control model's value is <em>immediately</em> reflected in the external binding.</p> <p>If the binding set via this interface supports the <a href="ValueBinding.html">ValueBinding</a>::<a href="ValueBinding.html#ReadOnly">ReadOnly</a> and <a href="ValueBinding.html">ValueBinding</a>::<a href="ValueBinding.html#Relevant">Relevant</a> properties, they're respected by the control model: <ul><li>The control model's own <code>ReadOnly</code> property (if present) is kept in sync with the binding's <code>ReadOnly</code> property. That is, any control using the value binding is read-only as long as the binding is.</li> <li>The control model's own <code>Enabled</code> property (if present) is kept in sync with the binding's <code>Relevant</code> property. That is, any control using the value binding is disabled as long as the binding is not relevant.</li> </ul> </p> <p>In both cases, explicit changes of the model's property are ignored if they would relax the restriction imposed by the binding.<br/> For instance, if the binding declares it's value to be read-only (indicated by <a href="ValueBinding.html">ValueBinding</a>::<a href="ValueBinding.html#ReadOnly">ReadOnly</a> being <b>true</b>), then any attempt to set the <code>ReadOnly</code> property of the control model to <b>false</b> will fail. However, if the binding's value is not read-only, then the <code>ReadOnly</code> property at the control model can be freely set.<br/> The very same holds for the binding's <a href="ValueBinding.html">ValueBinding</a>::<a href="ValueBinding.html#Relevant">Relevant</a> and the control model's <code>Enabled</code> properties.</p> </dd> </dl> </td> </tr> </table> <br> <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>