private Style defaultHeaderVariableStyle;
public DJGroup build(){
//Apply Styles if any (for variables)
for (Iterator iterator = group.getHeaderVariables().iterator(); iterator.hasNext();) {
DJGroupVariable var = (DJGroupVariable) iterator.next();
if (defaultHeaderVariableStyle != null)
var.setStyle(defaultHeaderVariableStyle);
}
for (Iterator iterator = group.getFooterVariables().iterator(); iterator.hasNext();) {
DJGroupVariable var = (DJGroupVariable) iterator.next();
if (defaultFooterVariableStyle != null)
var.setStyle(defaultFooterVariableStyle);
}
return group;
}