Java Reference
In-Depth Information
<reportElement x="56" y="0" height="20" width="164"/>
<textFieldExpression>
<![CDATA[$F{model}]]>
</textFieldExpression>
</textField>
<staticText>
<reportElement x="220" y="0" height="20" width="65"/>
<text>Tail Number:</text>
</staticText>
<textField>
<reportElement x="286" y="0" height="20" width="84"/>
<textFieldExpression>
<![CDATA[$F{tail_num}]]>
</textFieldExpression>
</textField>
<staticText>
<reportElement x="380" y="0" height="20" width="75"/>
<text>Serial Number:</text>
</staticText>
<textField>
<reportElement x="456" y="0" height="20" width="94"/>
<textFieldExpression>
<![CDATA[$F{aircraft_serial}]]>
</textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
As can be seen in this example, a group is defined by the <group> element. The
<group> element must contain a name attribute defining the group's name. A group
must also contain a <groupExpression> sub-element. This sub-element indicates the
data that must change to start a new data group. In the example above, every time
the state changes, we begin a new data grouping.
A group can optionally contain <groupHeader> and <groupFooter> elements. They
are useful to place labels at the beginning and at the end of the grouped data. The
group header and footer contain a single <band> element as their only child element.
The <band> element is a regular <band> element. We can place any report element we
wish in it, just as if it was inside any of the other report sections (title, page header,
column header, detail, etc.). In this example, we chose to place some static text and
report field identifying the state that the aircrafts in the group are registered to.
 
Search WWH ::




Custom Search