目标是与视图标记分开操作元素的位置 像这样(不工作):
<property name="col1_x" value="0"/>
<property name="col1_width" value="100"/>
<property name="col2_x" value="100"/>
<property name="col2_width" value="100"/>
<group name="Group1">
<groupHeader>
<band height="20" splitType="Stretch">
<staticText>
<reportElement x="$P{col1_x}" y="0" width="$P{col1_width}" height="20">
<property name="maybe.some.element.width?" value="$P{col1_w}"/>
</reportElement>
<text><![CDATA[Conlumn 1]]></text>
</staticText>
<staticText>
<reportElement x="$P{col2_x}" y="0" width="$P{col2_width}" height="20"/>
<text><![CDATA[Conlumn 2]]></text>
</staticText>
</band>
</groupHeader>
</group