Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-testing > by-pkgid > 2c50825dd66d0497b96a67f7fab2ee84 > files > 3209

openoffice.org64-devel-doc-2.4.1.10-1mdv2008.1.x86_64.rpm

<html>
<head>
<title>Service GridControl</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="GridControl-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"><a href="#PropertiesSummary" class="navisub">Properties' Summary</a></td>
<td class="navisub"><a href="#PropertiesDetails" class="navisub">Properties' 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">form</a> :: <a href="module-ix.html" class="namechain">component</a> :: </p>
</td>
</tr>
<tr>
<td class="title">service GridControl</td>
</tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>specifies a model for a control which can display form data in a table-like way.

 </dd>
<dd><p>In opposite to other form controls, grid controls do not only
 display the single current value of a column they are bound to. Moreover, they do
 display not only the current row of the form, but all rows (at least potentially, limited
 by the control size, of course).</p>

 <p>The table rows in a grid control correspond to the rows in the <a href="DataForm.html">DataForm</a>
 the control belongs to, and the columns correspond to single columns of the form's row set.</p>

 <p>Columns of a grid control are modeled by own objects, too. They are very similar to usual
 ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</a>s modeling other "single-value" controls, but they are not described
 as own services. Instead, they need to be created using the ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XGridColumnFactory.html">XGridColumnFactory</a> interface.</p>
 </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>(referenced entity's summary:)</dt>
<dd>specifies a control model within a form.

 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../FormComponents.html">FormComponents</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>provides basic functionality of a container of ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../FormComponent.html">FormComponent</a>s.
 
 </dd>
<dd><p>All the container-related methods of this service related to control models,
 this is what are the container elements for a <a href="GridControl.html">GridControl</a>.</p>

 <p>As the ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../FormComponents.html">FormComponents</a> service also specifies
 the ::com::sun::star::<a href="../../script/module-ix.html">script</a>::<a href="../../script/XEventAttacherManager.html">XEventAttacherManager</a> service, grid control models
 also provide a scripting environment for their columns.</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">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XGridColumnFactory.html">XGridColumnFactory</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>allows to create column models to be inserted into the control model.

 </dd>
<dd><p>Note that the object returned by the ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XGridColumnFactory.html">XGridColumnFactory</a>::<a href="../XGridColumnFactory.html#createColumn">createColumn</a>
 method is not part of the grid control, yet. It needs to be inserted using any of the
 container interfaces.</p>

 <p>You always need to use this interface for creating columns for the grid control.
 Column models not created this way will not be accepted when inserted later on.</p>
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../../view/module-ix.html">view</a>::<a href="../../view/XSelectionSupplier.html">XSelectionSupplier</a></td>
<td class="imsum_right"><dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>deprecated</i></dd>
<dt><b>Description</b></dt>
<dd>gives access to the currently selection.

 </dd>
<dd><p>In a grid control, single columns can be selected (at most one at a time).<br/>
 For various unfortunate reaons, this selection is an aspect of the model, not of the
 control as you would expect.</p>

 <p>This interface is deprecated, new implementations should not use it anymore, as it is to
 be superseeded by a solution which is bound to the control, not the model.</p>

 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../XReset.html">XReset</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>resets the control.

 </dd>
<dd><p>The reset of the control is forwarded to all it's elements, means to all the column models.
 As grid columns are very much like data-aware stand-alone controls, you can find a description
 of the reset functionality in ::com::sun::star::<a href="../module-ix.html">form</a>::<a href="../DataAwareControlModel.html">DataAwareControlModel</a>::<a href="../DataAwareControlModel.html#XReset">XReset</a>.
 </dd>
</dl>
</td>
</tr>
</table>
<a name="PropertiesSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Properties' Summary</td>
</tr>
<tr>
<td class="imsum_left">short<br>
<a href="#Border">Border</a></td>
<td class="imsum_right">returns the border style of the control.

 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left">long<br>
<a href="#BorderColor">BorderColor</a></td>
<td class="imsum_right"><b>[ OPTIONAL ]<br>
</b>specifies the color of the border, if present

 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left">boolean<br>
<a href="#Enabled">Enabled</a></td>
<td class="imsum_right">determines whether the control is enabled or disabled.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/FontDescriptor.html">FontDescriptor</a><br>
<a href="#FontDescriptor">FontDescriptor</a></td>
<td class="imsum_right">contains the font attributes of the text in the control.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left">long<br>
<a href="#RowHeight">RowHeight</a></td>
<td class="imsum_right">specifies the height of a row of the grid.

 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left">boolean<br>
<a href="#Tabstop">Tabstop</a></td>
<td class="imsum_right">determines whether the control can be reached by the tabulator key.
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../../util/module-ix.html">util</a>::<a href="../../util/Color.html">Color</a><br>
<a href="#TextColor">TextColor</a></td>
<td class="imsum_right">specifies the text color (RGB) of the control.
 &nbsp;</td>
</tr>
</table>
<a name="PropertiesDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle">Properties' Details</td>
</tr>
<tr>
<td class="imdetail"><a name="Border" class="membertitle">Border</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>short <b>Border</b>;<hr>
<dl>
<dt><b>Description</b></dt>
<dd>returns the border style of the control.

 </dd>
<dd><pre>
 0: No border
 1: 3D border
 2: simple border
 </pre>
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="BorderColor" class="membertitle">BorderColor</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>long <b>BorderColor</b>;<hr>
<dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>optional</i></dd>
<dt><b>Description</b></dt>
<dd>specifies the color of the border, if present

 </dd>
<dd><p>Not every border style (see <a href="#Border">Border</a>) may support coloring.
 For instance, usually a border with 3D effect will ignore the BorderColor setting.</p>

 </dd>
<dt><b/></dt>
<dd/></dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="Enabled" class="membertitle">Enabled</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>boolean <b>Enabled</b>;<hr>
<dl>
<dt><b>Description</b></dt>
<dd>determines whether the control is enabled or disabled.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="FontDescriptor" class="membertitle">FontDescriptor</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>::com::sun::star::<a href="../../awt/module-ix.html">awt</a>::<a href="../../awt/FontDescriptor.html">FontDescriptor</a> <b>FontDescriptor</b>;<hr>
<dl>
<dt><b>Description</b></dt>
<dd>contains the font attributes of the text in the control.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="RowHeight" class="membertitle">RowHeight</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>long <b>RowHeight</b>;<hr>
<dl>
<dt><b>Description</b></dt>
<dd>specifies the height of a row of the grid.

 </dd>
<dd><p>If the value is set to <b>NULL</b>, the height is determined automatically according
 to the current font used.</p>

 </dd>
<dt><b>See also</b></dt>
<dd><a href="GridControl.html">GridControl</a>::<a href="GridControl.html#FontDescriptor">FontDescriptor</a></dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="Tabstop" class="membertitle">Tabstop</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>boolean <b>Tabstop</b>;<hr>
<dl>
<dt><b>Description</b></dt>
<dd>determines whether the control can be reached by the tabulator key.
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="TextColor" class="membertitle">TextColor</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>::com::sun::star::<a href="../../util/module-ix.html">util</a>::<a href="../../util/Color.html">Color</a> <b>TextColor</b>;<hr>
<dl>
<dt><b>Description</b></dt>
<dd>specifies the text color (RGB) of the control.
 </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; 2008 Sun Microsystems, Inc.</p>

</div> <!-- id="adc-idlref" -->
</body>

</html>