}
final Float[] widthSpecs = new Float[detailFieldDefinitions.length];
for (int i = 0; i < detailFieldDefinitions.length; i++)
{
final DetailFieldDefinition fieldDefinition = detailFieldDefinitions[i];
final Length length = fieldDefinition.getWidth();
if (length == null)
{
continue;
}
widthSpecs[i] = length.getNormalizedValue();
}
final float[] computedWidth =
AutoGeneratorUtility.computeFieldWidths(widthSpecs, definition.getPageDefinition().getWidth());
itemBand.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
if (detailsHeader != null)
{
detailsHeader.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
}
if (detailsFooter != null)
{
detailsFooter.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, "row");
}
for (int i = 0; i < detailFieldDefinitions.length; i++)
{
final DetailFieldDefinition detailFieldDefinition = detailFieldDefinitions[i];
setupField(detailsHeader, detailsFooter, itemBand, detailFieldDefinition, computedWidth[i], i);
}
if (detailsFooter != null)
{