Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > fc480f9d5aabed8eeaffe8ad3401a94c > files > 3171

openoffice.org-devel-doc-3.2.1-0.3mdv2010.2.i586.rpm

<html>
<head>
<title>Service BindableDataAwareControlModel</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="BindableDataAwareControlModel-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">Interfaces' Summary</td>
<td class="navisub">Properties' Summary</td>
<td class="navisub"><a href="#ServicesDetails" class="navisub">Services' Details</a></td>
<td class="navisub">Interfaces' Details</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 BindableDataAwareControlModel</td>
<td width="*"/></tr>
</table>
</td>
</tr>
<tr>
<td><dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>not published</i></dd>
<dt><b>Description</b></dt>
<dd>is a specialization of the ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</a>
 which additionally supports binding to external value suppliers.

 </dd>
<dd><p>Control models usually have some kind of value property, which reflects the very current
 content of the controls associated with this model. For instance, for an
 ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/TextField.html">TextField</a>, this would be the
 ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlEditModel.html">UnoControlEditModel</a>::<a href="../../awt/UnoControlEditModel.html#Text">Text</a> property of the base
 service. Similarily, a ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/CheckBox.html">CheckBox</a> has
 a property ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlCheckBoxModel.html">UnoControlCheckBoxModel</a>::<a href="../../awt/UnoControlCheckBoxModel.html#State">State</a>, which
 reflects the current check state.</p>

 <p>Usual ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</a>s can be bound to
 a column of a ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/DataForm.html">DataForm</a>, and exchange
 their content with such a column.<br/>
 In particular, when the ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/DataForm.html">DataForm</a>
 is moved to a different record, then the bound control model is updated with the value of
 it's column in this particular row.<br/>
 On the other hand, when any change in the control model (e.g. resulting from a user entering
 data in a control associated with the control model) is committed
 (::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XBoundComponent.html">XBoundComponent</a>::<a href="../XBoundComponent.html#commit">commit</a>), then the actual
 data of the control model is written into the associated
 ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/DataForm.html">DataForm</a> column.</p>

 <p><a href="BindableDataAwareControlModel.html">BindableDataAwareControlModel</a>'s additionally support an alternative value
 binding, which forces them to exchange their value with another foreign instance.
 In some sense, they are an abstraction of the data aware control models, which only
 support a specialized, hard-coded value binding (namely the binding to a
 ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/DataForm.html">DataForm</a> column).</p>

 <p>For this, they provide the <a href="XBindableValue.html">XBindableValue</a> interface which allows to
 set an external component to exchange the value with.</p>

 <p>The following rules apply when a data aware control model is bound to an external value binding:
 <ul><li><b>Priority</b><br/>
 External value bindings overrule any active SQL-column binding. If an external
 component is bound to a control model which currently has an active SQL binding,
 this SQL binding is suspended, until the external binding is revoked.
 </li>
 <li><b>Activation</b><br/>
 An external value binding becomes effective as soon as it is set. This is a
 difference to SQL bindings, which only are effective when the parent form
 of the control model is loaded (::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XLoadable.html">XLoadable</a>).
 </li>
 <li><b>Immediacy</b><br/>
 When a <a href="BindableDataAwareControlModel.html">BindableDataAwareControlModel</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. This is a difference to SQL bindings of most
 ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</a>'s, where changes
 in the control model's value are only propagated to the bound column upon explicit
 request via ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XBoundComponent.html">XBoundComponent</a>::<a href="../XBoundComponent.html#commit">commit</a>.<br/>
 Note that this restriction is inherited from the <a href="BindableControlModel.html">BindableControlModel</a>.
 </li>
 <li><b>Cloning</b><br/>
 ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../FormControlModel.html">FormControlModel</a>s support cloning themself
 via the ::com::sun::star::<a href="../../util/module-ix.html">util</a>::<a href="../../util/XCloneable.html">XCloneable</a> interface which they
 inherit from the ::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/UnoControlModel.html">UnoControlModel</a> service.</br>
 When a <a href="BindableDataAwareControlModel.html">BindableDataAwareControlModel</a> is cloned while it has an active
 external value binding, then the clone is also bound to the same binding instance.<br/>
 Note that this restriction is inherited from the <a href="BindableControlModel.html">BindableControlModel</a>.
 </li>
 </ul>
 </p>

 <p>When a <a href="BindableDataAwareControlModel.html">BindableDataAwareControlModel</a> is being bound to an external value,
 using <a href="XBindableValue.html">XBindableValue</a>::<a href="XBindableValue.html#setValueBinding">setValueBinding</a>,
 then the control model (it's value property, respectively) and the external value are
 initially synchronized by setting the external value (<a href="XValueBinding.html">XValueBinding</a>::<a href="XValueBinding.html#getValue">getValue</a>)
 at the control model.</p>

</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="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</a></td>
<td class="imsum_right"><p>specifies the functionality for binding the control model to a
 column of an SQL ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/DataForm.html">DataForm</a>.
 </p>
</td>
</tr>
<tr>
<td class="imsum_left"><a href="BindableControlModel.html">BindableControlModel</a></td>
<td class="imsum_right"><p>specifies the functionality for <em>alternatively</em> binding the control model
 to an external value.
 </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="DataAwareControlModel" class="membertitle">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</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>specifies the functionality for binding the control model to a
 column of an SQL ::com::sun::star::form::<a href="../component/module-ix.html">component</a>::<a href="../component/DataForm.html">DataForm</a>.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr/>
<tr>
<td class="imdetail"><a name="BindableControlModel" class="membertitle"><a href="BindableControlModel.html">BindableControlModel</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>specifies the functionality for <em>alternatively</em> binding the control model
 to an external value.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>&nbsp;<a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 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>