group.setName("Run");
group.addField("run");
LabelElementFactory labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(0, 0));
labelFactory.setMinimumSize(new FloatDimension(160, 12));
labelFactory.setText("Crew:");
group.getHeader().addElement(labelFactory.createElement());
TextFieldElementFactory textFieldFactory = new TextFieldElementFactory();
textFieldFactory.setFieldname("crew");
textFieldFactory.setAbsolutePosition(new Point2D.Float(50, 0));
textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));
group.getHeader().addElement(textFieldFactory.createElement());
labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(100, 0));
labelFactory.setMinimumSize(new FloatDimension(160, 12));
labelFactory.setText("Trial:");
group.getHeader().addElement(labelFactory.createElement());
textFieldFactory = new TextFieldElementFactory();
textFieldFactory.setFieldname("trial");
textFieldFactory.setAbsolutePosition(new Point2D.Float(150, 0));
textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));
group.getHeader().addElement(textFieldFactory.createElement());
labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(200, 0));
labelFactory.setMinimumSize(new FloatDimension(160, 12));
labelFactory.setText("Run:");
group.getHeader().addElement(labelFactory.createElement());
textFieldFactory = new TextFieldElementFactory();
textFieldFactory.setFieldname("run");
textFieldFactory.setAbsolutePosition(new Point2D.Float(250, 0));
textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));
group.getHeader().addElement(textFieldFactory.createElement());
group.getFooter().getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(15));
report.addGroup(group);
final Band b = new Band();
b.setName("variables");
b.getStyle().setStyleProperty(TextStyleKeys.BOLD, Boolean.FALSE);
b.getStyle().setStyleProperty(TextStyleKeys.FONT, "SansSerif");
b.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(10));
// b.setLayoutCacheable(false);
for (int i = 3, max = tableModel.getColumnCount(); i < max; ++i)
{
TextFieldElementFactory tFF = new TextFieldElementFactory();
tFF.setFieldname(tableModel.getColumnName(i));
tFF.setAbsolutePosition(new Point2D.Float(200 * (i - 3), 0));
tFF.setMinimumSize(new FloatDimension(200, 12));
b.addElement(tFF.createElement());
}
report.getItemBand().addElement(b);
assertTrue(FunctionalityTestLib.execGraphics2D(report));