ar.com.fdvs.dj.domain.builders
Class GroupBuilder
java.lang.Object
ar.com.fdvs.dj.domain.builders.GroupBuilder
public class GroupBuilder
- extends java.lang.Object
Builder created to give users a friendly way of adding groups to a report.
Usage example:
GroupBuilder gb1 = new GroupBuilder();
ColumnsGroup g1 = gb1.addCriteriaColumn((PropertyColumn) columnState)
.addFooterVariable(columnAmount,ColumnsGroupVariableOperation.SUM)
.addFooterVariable(columnaQuantity,ColumnsGroupVariableOperation.SUM)
.addGroupLayout(GroupLayout.VALUE_IN_HEADER_WITH_HEADERS)
.build();
Like with all DJ's builders, it's usage must end with a call to build() mehtod.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupBuilder
public GroupBuilder()
build
public DJGroup build()
setCriteriaColumn
public GroupBuilder setCriteriaColumn(PropertyColumn column)
addHeaderVariable
public GroupBuilder addHeaderVariable(DJGroupVariable variable)
addHeaderVariable
public GroupBuilder addHeaderVariable(AbstractColumn column,
DJCalculation operation)
addHeaderVariable
public GroupBuilder addHeaderVariable(AbstractColumn column,
DJCalculation operation,
Style style)
addFooterVariable
public GroupBuilder addFooterVariable(DJGroupVariable variable)
addFooterVariable
public GroupBuilder addFooterVariable(AbstractColumn column3,
DJCalculation operation)
addFooterVariable
public GroupBuilder addFooterVariable(AbstractColumn column3,
DJCalculation operation,
Style style)
setHeaderHeight
public GroupBuilder setHeaderHeight(java.lang.Integer height)
setFooterHeight
public GroupBuilder setFooterHeight(java.lang.Integer height)
setGroupLayout
public GroupBuilder setGroupLayout(GroupLayout layout)
setDefaultFooterVariableStyle
public GroupBuilder setDefaultFooterVariableStyle(Style defaultFooterVariableStyle)
setDefaultHeaderVariableStyle
public GroupBuilder setDefaultHeaderVariableStyle(Style defaultHeaderVariableStyle)
addHeaderSubreport
public GroupBuilder addHeaderSubreport(Subreport subreport)
addFooterSubreport
public GroupBuilder addFooterSubreport(Subreport subreport)
setStartInNewPage
public GroupBuilder setStartInNewPage(java.lang.Boolean bool)
setStartInNewPage
public GroupBuilder setStartInNewPage(boolean bool)
setStartInNewColumn
public GroupBuilder setStartInNewColumn(java.lang.Boolean bool)
setStartInNewColumn
public GroupBuilder setStartInNewColumn(boolean bool)
addColumnHeaderStyle
public GroupBuilder addColumnHeaderStyle(AbstractColumn column,
Style style)
setDefaultColumnHeaderStyle
public GroupBuilder setDefaultColumnHeaderStyle(Style style)
setAllowHeaderSplit
public GroupBuilder setAllowHeaderSplit(boolean headerSplit)
- pass-through property to setup group header band "allowSplit" property.
When FALSE, if the content reaches end of the page, the whole band gets pushed
to the next page.
- Parameters:
headerSplit -
- Returns:
setAllowFooterSplit
public GroupBuilder setAllowFooterSplit(boolean footerSplit)
- pass-through property to setup group footer band "allowSplit" property.
When FALSE, if the content reaches end of the page, the whole band gets pushed
to the next page.
- Parameters:
footerSplit -
- Returns:
setAllowSplitting
public GroupBuilder setAllowSplitting(boolean headerSplit,
boolean footerSplit)
- pass-through property to setup group header and footer bands "allowSplit" property.
When FALSE, if the content reaches end of the page, the whole band gets pushed
to the next page.
- Parameters:
headerSplit - footerSplit -
- Returns:
Copyright © 2006-2008 FDV Solutions. All Rights Reserved.