ar.com.fdvs.dj.domain.builders
Class ReflectiveReportBuilder

java.lang.Object
  extended by ar.com.fdvs.dj.domain.builders.DynamicReportBuilder
      extended by ar.com.fdvs.dj.domain.builders.FastReportBuilder
          extended by ar.com.fdvs.dj.domain.builders.ReflectiveReportBuilder

public class ReflectiveReportBuilder
extends FastReportBuilder

Builder created to give users an easy way of creating a DynamicReport based on a collection.

Usage example:
DynamicReport report = new ReflectiveReportBuilder(data, new String[]{"productLine", "item", "state", "id", "branch", "quantity", "amount"}) .addGroups(3).build();
Like with all DJ's builders, it's usage must end with a call to build() mehtod.


Field Summary
 
Fields inherited from class ar.com.fdvs.dj.domain.builders.FastReportBuilder
groupCount
 
Fields inherited from class ar.com.fdvs.dj.domain.builders.DynamicReportBuilder
autoTexts, concatenatedReports, globalFooterCrosstabs, globalHeaderCrosstabs, globalVariablesGroup, groupFooterSubreports, groupHeaderSubreports, options, report
 
Constructor Summary
ReflectiveReportBuilder(java.util.Collection _data)
          Takes the first item in the collection and adds a column for every property in that item.
ReflectiveReportBuilder(java.util.Collection _data, java.lang.String[] _propertiesNames)
          Adds a column for every property specified in the array.
 
Method Summary
 
Methods inherited from class ar.com.fdvs.dj.domain.builders.FastReportBuilder
addBarcodeColumn, addBarcodeColumn, addBarcodeColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addFooterCrosstab, addFooterVariable, addFooterVariable, addGlobalFooterVariable, addGlobalHeaderVariable, addGroups, addGroups, addGroupVariable, addGroupVariable, addHeaderCrosstab, addHeaderVariable, addHeaderVariable, addImageColumn, addImageColumn, addImageColumn, addImageColumn, addVariable, addVariable, build, guessStyle, guessStyle, setGroupLayout
 
Methods inherited from class ar.com.fdvs.dj.domain.builders.DynamicReportBuilder
addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addAutoText, addChart, addChart, addColumn, addConcatenatedReport, addConcatenatedReport, addConcatenatedReport, addConcatenatedReport, addConcatenatedReport, addField, addField, addField, addFirstPageImageBanner, addFirstPageImageBanner, addFont, addFooterCrosstab, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalColumnVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalFooterVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalHeaderVariable, addGlobalVariable, addGlobalVariable, addGlobalVariable, addGroup, addHeaderCrosstab, addImageBanner, addImageBanner, addParameter, addResourceBundle, addStyle, addSubreportInGroup, addSubreportInGroup, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupFooter, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportInGroupHeader, addSubreportsToGroups, addVariable, concatenateReports, getColumn, getColumns, getFields, getGroup, setAllowDetailSplit, setBottomMargin, setBottomMargin, setColumnSpace, setColumnSpace, setColumnsPerPage, setColumnsPerPage, setColumnsPerPage, setColumnsPerPage, setDefaultStyles, setDetailHeight, setDetailHeight, setFooterHeight, setFooterHeight, setFooterVariablesHeight, setFooterVariablesHeight, setGlobalFooterVariableHeight, setGlobalHeaderVariableHeight, setGrandTotalLegend, setGrandTotalLegendStyle, setHeaderHeight, setHeaderHeight, setHeaderVariablesHeight, setIgnorePagination, setLeftMargin, setLeftMargin, setMargins, setOddRowBackgroundStyle, setPageSizeAndOrientation, setPrintBackgroundOnOddRows, setPrintBackgroundOnOddRows, setPrintColumnNames, setProperty, setQuery, setReportLocale, setReportName, setResourceBundle, setRightMargin, setRightMargin, setShowDetailBand, setSubtitle, setSubtitleHeight, setSubtitleStyle, setTemplateFile, setTemplateFile, setTitle, setTitle, setTitleHeight, setTitleIsJrExpression, setTitleStyle, setTopMargin, setTopMargin, setUseFullPageWidth, setUseFullPageWidth, setWhenNoData, setWhenNoData, setWhenNoDataAllSectionNoDetail, setWhenNoDataBlankPage, setWhenNoDataNoPages, setWhenNoDataShowNoDataSection, setWhenNoDataType, setWhenResourceMissing, setWhenResourceMissingLeaveEmptySpace, setWhenResourceMissingReturnNull, setWhenResourceMissingShowKey, setWhenResourceMissingThrowException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveReportBuilder

public ReflectiveReportBuilder(java.util.Collection _data)
Takes the first item in the collection and adds a column for every property in that item.

Parameters:
_data - the data collection. A not null and nor empty collection should be passed.

ReflectiveReportBuilder

public ReflectiveReportBuilder(java.util.Collection _data,
                               java.lang.String[] _propertiesNames)
Adds a column for every property specified in the array.

Parameters:
_data - the data collection. A not null and nor empty collection should be passed.
_propertiesNames - and array with the names of the desired properties.


Copyright © 2006-2011 FDV Solutions. All Rights Reserved.