Class FillTable
- java.lang.Object
-
- net.sf.jasperreports.engine.component.BaseFillComponent
-
- net.sf.jasperreports.components.subreport.fill.SubreportFillComponent
-
- net.sf.jasperreports.components.table.fill.FillTable
-
- All Implemented Interfaces:
FillComponent
public class FillTable extends SubreportFillComponent
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classFillTable.FillColumnEvaluator-
Nested classes/interfaces inherited from class net.sf.jasperreports.components.subreport.fill.SubreportFillComponent
SubreportFillComponent.ComponentFillSubreportFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringEXCEPTION_MESSAGE_KEY_UNSUPPORTED_REPORT_DATA_TYPEprotected static StringFILL_CACHE_KEY_TABLE_INSTANCE_COUNTER-
Fields inherited from class net.sf.jasperreports.components.subreport.fill.SubreportFillComponent
factory, fillSubreport, fillWidth
-
Fields inherited from class net.sf.jasperreports.engine.component.BaseFillComponent
fillContext, printElementOriginator
-
-
Constructor Summary
Constructors Constructor Description FillTable(FillTable table, JRFillCloneFactory factory)FillTable(TableComponent table, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JasperReportcontainingReport(JasperReport parentReport)protected JRReportCompileDatacreateTableReportCompileData(JasperReport parentReport, JRDataset reportSubdataset)voidevaluate(byte evaluation)Evaluates the fill component.protected voidevaluateColumns(byte evaluation)protected JRPropertiesMapevaluateProperties(BaseColumn column, byte evaluation)JRPrintElementfill()Fills the component by creating a print element which will be included in the generated report.SubreportFillComponent.ComponentFillSubreportFactorygetFillSubreportFactory()JasperReportgetJasperReport(BuiltinExpressionEvaluatorFactory builtinEvaluatorFactory)booleanisEmpty()voidsetFillSubreportFactory(SubreportFillComponent.ComponentFillSubreportFactory subreportFactory)protected voidsetTableInstanceCounter()protected booleantoPrintColumn(BaseColumn column, byte evaluation)-
Methods inherited from class net.sf.jasperreports.components.subreport.fill.SubreportFillComponent
createFillSubreport, createFillTableSubreportFactory, getDatasetRun, getFrameTemplate, prepare, rewind
-
Methods inherited from class net.sf.jasperreports.engine.component.BaseFillComponent
deduplicate, evaluateDelayedElement, evaluateExpression, initialize
-
-
-
-
Field Detail
-
FILL_CACHE_KEY_TABLE_INSTANCE_COUNTER
protected static final String FILL_CACHE_KEY_TABLE_INSTANCE_COUNTER
-
EXCEPTION_MESSAGE_KEY_UNSUPPORTED_REPORT_DATA_TYPE
protected static final String EXCEPTION_MESSAGE_KEY_UNSUPPORTED_REPORT_DATA_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FillTable
public FillTable(TableComponent table, JRFillObjectFactory factory)
-
FillTable
public FillTable(FillTable table, JRFillCloneFactory factory)
-
-
Method Detail
-
evaluate
public void evaluate(byte evaluation) throws JRExceptionDescription copied from interface:FillComponentEvaluates the fill component.This method would evaluate the component expressions and store the results to be used in
FillComponent.fill().If the component needs to delay the evaluation of some of its expressions, it would call
FillContext.registerDelayedEvaluation(JRPrintElement, EvaluationTimeEnum, String)to register a delayed evaluation print element, and perform the delayed evaluations onFillComponent.evaluateDelayedElement(JRPrintElement, byte).- Specified by:
evaluatein interfaceFillComponent- Overrides:
evaluatein classSubreportFillComponent- Parameters:
evaluation- the evaluation type- Throws:
JRException- See Also:
FillContext.evaluate(net.sf.jasperreports.engine.JRExpression, byte)
-
setTableInstanceCounter
protected void setTableInstanceCounter()
-
toPrintColumn
protected boolean toPrintColumn(BaseColumn column, byte evaluation) throws JRException
- Throws:
JRException
-
evaluateProperties
protected JRPropertiesMap evaluateProperties(BaseColumn column, byte evaluation) throws JRException
- Throws:
JRException
-
evaluateColumns
protected void evaluateColumns(byte evaluation)
-
getFillSubreportFactory
public SubreportFillComponent.ComponentFillSubreportFactory getFillSubreportFactory()
- Specified by:
getFillSubreportFactoryin classSubreportFillComponent
-
setFillSubreportFactory
public void setFillSubreportFactory(SubreportFillComponent.ComponentFillSubreportFactory subreportFactory)
- Specified by:
setFillSubreportFactoryin classSubreportFillComponent
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin classSubreportFillComponent
-
getJasperReport
public JasperReport getJasperReport(BuiltinExpressionEvaluatorFactory builtinEvaluatorFactory) throws JRException
- Specified by:
getJasperReportin classSubreportFillComponent- Throws:
JRException
-
containingReport
protected JasperReport containingReport(JasperReport parentReport)
-
createTableReportCompileData
protected JRReportCompileData createTableReportCompileData(JasperReport parentReport, JRDataset reportSubdataset) throws JRException
- Throws:
JRException
-
fill
public JRPrintElement fill()
Description copied from interface:FillComponentFills the component by creating a print element which will be included in the generated report.This method will get called only if
FillComponent.prepare(int)returned a result that indicated that the component will print.- Specified by:
fillin interfaceFillComponent- Overrides:
fillin classSubreportFillComponent- Returns:
- the print element generated by the component
-
-