<labelAttribute>
XML
tagThe <labelAttribute>
tag
defines the formatting attributes for field labels. The <labelAttribute>
tag can be nested within a <field>
tag or within a layout style tag (for example, <tabular>
or <matrix>
).
If <labelAttribute>
is
nested inside a <field>
tag, then it applies only to the labels for that field.
The <labelAttribute>
tag
only affects new fields, it does not change the label of an existing field in
the report definition (.rdf) file. To change the text of an existing label,
you should use the textSegment
attribute of the <property>
tag.
<labelAttribute
[font="font_name"]
[fontSize="point_size"]
[fontStyle="regular | italic | bold | boldItalic"]
[fontEffect="regular | strikeout | underline
| strikeoutUnderline"]
[lineColor="color_name | noLine"]
[fillColor="color_name | noFill"]
[textColor="color_name"]
[alignment="start | left | center | right | end"]
>
</labelAttribute>
Parameters /Options |
Description |
font |
Is the name of the font to be used for the field label. |
fontSize |
Is the size of the font to be used for the field label. |
fontStyle |
Is the style of the font to be used for the field label. |
fontEffect |
Is the effect of the font to be used for the field contents. |
lineColor |
Is the name of the color to be used for the
border of the field. If |
fillColor |
Is the name of the color to be used as the
background for the field. If |
textColor |
Is the name of the color to be used for the field contents |
alignment |
Is how the text should be justified within the field. |
The following example shows a segment of an XML report definition that defines
a section with a group left layout inside of it. The first <labelAttribute>
tag would apply to all of the fields in the layout except for f_sumsa
l,
which has its own embedded <labelAttribute>
tag.
<section name="main">
<groupLeft name="m_emp">
<labelAttribute font="Arial" fontSize="10"
fontStyle="bold"/>
<group>
<field name="f_deptno" source="deptno"
label="Department "
font="Arial" fontSize="10"/>
<field name="f_sumsal" label="Total
Salary" source="sumsal"
textColor="red" font="Arial"
fontSize="10" fontStyle="bold">
<labelAttribute font="Arial" fontSize="10"
fontStyle="bold" textColor="red"/>
</field>
</group>
<field name="f_ename" source="ename"
label="Name" font="Arial" fontSize="10"/>
<field name="f_sal" source="sal"
label="Salary" font="Arial" fontSize="10"/>
</groupLeft>
</section>
Copyright © 1984, 2005, Oracle. All rights reserved.