public class ReportBuilder<T extends ReportBuilder<T>> extends AbstractBuilder<T,DRReport>
builded
Constructor and Description |
---|
ReportBuilder() |
build, configure, getObject
public T setResourceBundle(ResourceBundle resourceBundle)
public T setPageFormat(PageType pageType, PageOrientation orientation)
public T setPageFormat(Integer width, Integer height, PageOrientation orientation)
public T setPageMargin(MarginBuilder margin)
public T ignorePageWidth()
public T ignorePagination()
public T setWhenNoDataType(WhenNoDataType whenNoDataType)
public T setWhenResourceMissingType(WhenResourceMissingType whenResourceMissingType)
public T titleOnANewPage()
public T setTitleOnANewPage(Boolean titleOnANewPage)
titleOnANewPage
- print the title band on a separate pagepublic T summaryOnANewPage()
public T setSummaryOnANewPage(Boolean summaryOnANewPage)
summaryOnANewPage
- print the summary band on a separate pagepublic T summaryWithPageHeaderAndFooter()
public T setSummaryWithPageHeaderAndFooter(Boolean summaryWithPageHeaderAndFooter)
summaryWithPageHeaderAndFooter
- print the summary band with the page header and footerpublic T floatColumnFooter()
public T setFloatColumnFooter(Boolean floatColumnFooter)
floatColumnFooter
- print the column footer at the bottom of the columnpublic T setPrintOrder(Orientation printOrder)
public T setColumnDirection(RunDirection columnDirection)
public T setUseFieldNameAsDescription(Boolean useFieldNameAsDescription)
public T scriptlets(DRIScriptlet... scriptlets)
public T addScriptlet(DRIScriptlet... scriptlets)
public T setProperties(Properties properties)
public T setQuery(QueryBuilder query)
public T columnGrid(ColumnGridComponentBuilder... components)
public T columnGrid(ListType type, ColumnGridComponentBuilder... components)
public T setTemplate(ReportTemplateBuilder template)
public T templateStyles(TemplateStylesBuilder... templateStyles)
public T addTemplateStyle(TemplateStylesBuilder... templateStyles)
public T templateStyles(StyleBuilder... templateStyles)
public T addTemplateStyle(StyleBuilder... templateStyles)
public T parameters(ParameterBuilder<?>... parameters)
public T addParameter(ParameterBuilder<?>... parameters)
public T fields(FieldBuilder<?>... fields)
public <U> T addField(String name, DRIDataType<? super U,U> dataType)
public T addField(FieldBuilder<?>... fields)
public T variables(VariableBuilder<?>... variables)
public T addVariable(VariableBuilder<?>... variables)
public T sortBy(TextColumnBuilder<?>... sortColumns)
sortColumns
- columns to be sortedpublic T sortBy(SortBuilder... sorts)
sorts
- the sort definitionspublic T addSort(SortBuilder... sorts)
sorts
- the sort definitionspublic T columns(ColumnBuilder<?,?>... columns)
public T addColumn(ColumnBuilder<?,?>... columns)
public T setDefaultFont(FontBuilder defaultFont)
public T setTextStyle(ReportStyleBuilder textStyle)
public T setColumnTitleStyle(ReportStyleBuilder columnTitleStyle)
public T setColumnStyle(ReportStyleBuilder columnStyle)
public T setGroupTitleStyle(ReportStyleBuilder groupTitleStyle)
public T setGroupStyle(ReportStyleBuilder groupStyle)
public T setSubtotalStyle(ReportStyleBuilder subtotalStyle)
public T setImageStyle(ReportStyleBuilder imageStyle)
public T setChartStyle(ReportStyleBuilder chartStyle)
public T setBarcodeStyle(ReportStyleBuilder barcodeStyle)
public T highlightDetailOddRows()
public T setDetailOddRowStyle(SimpleStyleBuilder detailOddRowStyle)
public T highlightDetailEvenRows()
public T setDetailEvenRowStyle(SimpleStyleBuilder detailEvenRowStyle)
public T detailRowHighlighters(ConditionalStyleBuilder... detailRowHighlighters)
public T addDetailRowHighlighter(ConditionalStyleBuilder... detailRowHighlighters)
public T subtotalsAtTitle(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtTitle(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtPageHeader(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtPageHeader(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtPageFooter(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtPageFooter(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtColumnHeader(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtColumnHeader(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtColumnFooter(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtColumnFooter(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtGroupHeader(GroupBuilder<?> group, SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtGroupHeader(GroupBuilder<?> group, SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtGroupFooter(GroupBuilder<?> group, SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtGroupFooter(GroupBuilder<?> group, SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtFirstGroupHeader(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtFirstGroupHeader(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtFirstGroupFooter(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtFirstGroupFooter(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtLastGroupHeader(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtLastGroupHeader(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtLastGroupFooter(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtLastGroupFooter(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtLastPageFooter(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtLastPageFooter(SubtotalBuilder<?,?>... subtotals)
public T subtotalsAtSummary(SubtotalBuilder<?,?>... subtotals)
public T addSubtotalAtSummary(SubtotalBuilder<?,?>... subtotals)
public T subtotalsOfPercentageAtGroupHeader(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals)
public T addSubtotalOfPercentageAtGroupHeader(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals)
public T subtotalsOfPercentageAtGroupFooter(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals)
public T addSubtotalOfPercentageAtGroupFooter(GroupBuilder<?> group, PercentageSubtotalBuilder... subtotals)
public T groupBy(ValueColumnBuilder<?,?>... groupColumns)
public T groupBy(GroupBuilder<?>... groups)
public T addGroup(GroupBuilder<?>... groups)
public T tableOfContents()
public T tableOfContents(TableOfContentsCustomizerBuilder tableOfContentsCustomizer)
public T tableOfContents(DRITableOfContentsCustomizer tableOfContentsCustomizer)
public T setTableOfContents(TableOfContentsCustomizerBuilder tableOfContentsCustomizer)
public T setTableOfContents(DRITableOfContentsCustomizer tableOfContentsCustomizer)
public T setFilterExpression(DRIExpression<Boolean> filterExpression)
filterExpression
- the filter expressionpublic T setTitleSplitType(SplitType splitType)
splitType
- the title split typepublic T setTitlePrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setTitleStyle(ReportStyleBuilder style)
style
- the title band stylepublic T setTitleBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T title(ComponentBuilder<?,?>... components)
components
- the title componentspublic T addTitle(ComponentBuilder<?,?>... components)
components
- the title componentspublic T setPageHeaderSplitType(SplitType splitType)
splitType
- the page header split typepublic T setPageHeaderPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setPageHeaderStyle(ReportStyleBuilder style)
style
- the page header band stylepublic T setPageHeaderBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T pageHeader(ComponentBuilder<?,?>... components)
components
- the page header componentspublic T addPageHeader(ComponentBuilder<?,?>... components)
components
- the page header componentspublic T setPageFooterSplitType(SplitType splitType)
splitType
- the page footer split typepublic T setPageFooterPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setPageFooterStyle(ReportStyleBuilder style)
style
- the page footer band stylepublic T setPageFooterBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T pageFooter(ComponentBuilder<?,?>... components)
components
- the page footer componentspublic T addPageFooter(ComponentBuilder<?,?>... components)
components
- the page footer componentspublic T setColumnHeaderSplitType(SplitType splitType)
splitType
- the column header split typepublic T setColumnHeaderPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setColumnHeaderStyle(ReportStyleBuilder style)
style
- the column header band stylepublic T setColumnHeaderBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T columnHeader(ComponentBuilder<?,?>... components)
components
- the column header componentspublic T addColumnHeader(ComponentBuilder<?,?>... components)
components
- the column header componentspublic T setColumnFooterSplitType(SplitType splitType)
splitType
- the column footer split typepublic T setColumnFooterPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setColumnFooterStyle(ReportStyleBuilder style)
style
- the column footer band stylepublic T setColumnFooterBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T columnFooter(ComponentBuilder<?,?>... components)
components
- the column footer componentspublic T addColumnFooter(ComponentBuilder<?,?>... components)
components
- the column footer componentspublic T setGroupHeaderSplitType(GroupBuilder<?> group, SplitType splitType)
group
- the group to which to apply the split typesplitType
- the group header split typepublic T setGroupHeaderPrintWhenExpression(GroupBuilder<?> group, DRIExpression<Boolean> printWhenExpression)
public T setGroupHeaderStyle(GroupBuilder<?> group, ReportStyleBuilder style)
group
- the group to which to apply the stylestyle
- the group header band stylepublic T setGroupHeaderBackgroundComponent(GroupBuilder<?> group, ComponentBuilder<?,?> backgroundComponent)
public T groupHeader(GroupBuilder<?> group, ComponentBuilder<?,?>... components)
group
- the group to which to add the componentscomponents
- the group header componentspublic T addGroupHeader(GroupBuilder<?> group, ComponentBuilder<?,?>... components)
group
- the group to which to add the componentscomponents
- the group header componentspublic T setGroupFooterSplitType(GroupBuilder<?> group, SplitType splitType)
group
- the group to which to apply the split typesplitType
- the group footer split typepublic T setGroupFooterPrintWhenExpression(GroupBuilder<?> group, DRIExpression<Boolean> printWhenExpression)
public T setGroupFooterStyle(GroupBuilder<?> group, ReportStyleBuilder style)
group
- the group to which to apply the stylestyle
- the group footer band stylepublic T setGroupFooterBackgroundComponent(GroupBuilder<?> group, ComponentBuilder<?,?> backgroundComponent)
public T groupFooter(GroupBuilder<?> group, ComponentBuilder<?,?>... components)
group
- the group to which to add the componentscomponents
- the group footer componentspublic T addGroupFooter(GroupBuilder<?> group, ComponentBuilder<?,?>... components)
group
- the group to which to add the componentscomponents
- the group footer componentspublic T setDetailSplitType(SplitType splitType)
splitType
- the detail split typepublic T setDetailPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setDetailStyle(ReportStyleBuilder style)
style
- the detail band stylepublic T setDetailBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T detail(ComponentBuilder<?,?>... components)
components
- the detail componentspublic T addDetail(ComponentBuilder<?,?>... components)
components
- the detail componentspublic T setDetailHeaderSplitType(SplitType splitType)
splitType
- the detail header split typepublic T setDetailHeaderPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setDetailHeaderStyle(ReportStyleBuilder style)
style
- the detail header band stylepublic T setDetailHeaderBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T detailHeader(ComponentBuilder<?,?>... components)
components
- the detail header componentspublic T addDetailHeader(ComponentBuilder<?,?>... components)
components
- the detail header componentspublic T setDetailFooterSplitType(SplitType splitType)
splitType
- the detail footer split typepublic T setDetailFooterPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setDetailFooterStyle(ReportStyleBuilder style)
style
- the detail footer band stylepublic T setDetailFooterBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T detailFooter(ComponentBuilder<?,?>... components)
components
- the detail footer componentspublic T addDetailFooter(ComponentBuilder<?,?>... components)
components
- the detail footer componentspublic T setLastPageFooterSplitType(SplitType splitType)
splitType
- the last page footer split typepublic T setLastPageFooterPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setLastPageFooterStyle(ReportStyleBuilder style)
style
- the last page footer band stylepublic T setLastPageFooterBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T lastPageFooter(ComponentBuilder<?,?>... components)
components
- the last page footer componentspublic T addLastPageFooter(ComponentBuilder<?,?>... components)
components
- the last page footer componentspublic T setSummarySplitType(SplitType splitType)
splitType
- the summary split typepublic T setSummaryPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setSummaryStyle(ReportStyleBuilder style)
style
- the summary band stylepublic T setSummaryBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T summary(ComponentBuilder<?,?>... components)
components
- the summary componentspublic T addSummary(ComponentBuilder<?,?>... components)
components
- the summary componentspublic T setNoDataSplitType(SplitType splitType)
splitType
- the no data split typepublic T setNoDataPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setNoDataStyle(ReportStyleBuilder style)
style
- the no data band stylepublic T setNoDataBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T noData(ComponentBuilder<?,?>... components)
components
- the no data componentspublic T addNoData(ComponentBuilder<?,?>... components)
components
- the no data componentspublic T setBackgroundSplitType(SplitType splitType)
splitType
- the background split typepublic T setBackgroundPrintWhenExpression(DRIExpression<Boolean> printWhenExpression)
public T setBackgroundStyle(ReportStyleBuilder style)
style
- the background band stylepublic T setBackgroundBackgroundComponent(ComponentBuilder<?,?> backgroundComponent)
public T background(ComponentBuilder<?,?>... components)
components
- the background componentspublic T addBackground(ComponentBuilder<?,?>... components)
components
- the background componentspublic DRReport getReport()
Copyright © 2010-2017. All Rights Reserved.