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
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.sf.jasperreports.components.subreport.fill.SubreportFillComponent
SubreportFillComponent.ComponentFillSubreportFactory
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.components.subreport.fill.SubreportFillComponent
factory, fillSubreport, fillWeight, fillWidth
Fields inherited from class net.sf.jasperreports.engine.component.BaseFillComponent
fillContext, printElementOriginator
-
Constructor Summary
ConstructorsConstructorDescriptionFillTable
(FillTable table, JRFillCloneFactory factory) FillTable
(TableComponent table, JRFillObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected JasperReport
containingReport
(JasperReport parentReport) protected JRReportCompileData
createTableReportCompileData
(JasperReport parentReport, JRDataset reportSubdataset) void
evaluate
(byte evaluation) Evaluates the fill component.protected void
evaluateColumns
(byte evaluation) protected JRPropertiesMap
evaluateProperties
(BaseColumn column, byte evaluation) fill()
Fills the component by creating a print element which will be included in the generated report.protected HorizontalPosition
getJasperReport
(BuiltinExpressionEvaluatorFactory builtinEvaluatorFactory) boolean
isEmpty()
void
setFillSubreportFactory
(SubreportFillComponent.ComponentFillSubreportFactory subreportFactory) protected void
protected Boolean
protected boolean
toPrintColumn
(BaseColumn column, byte evaluation) Methods inherited from class net.sf.jasperreports.components.subreport.fill.SubreportFillComponent
createFillSubreport, createFillTableSubreportFactory, getDatasetRun, getFrameTemplate, prepare, prepare, rewind
Methods inherited from class net.sf.jasperreports.engine.component.BaseFillComponent
deduplicate, evaluateDelayedElement, evaluateExpression, initialize
-
Field Details
-
FILL_CACHE_KEY_TABLE_INSTANCE_COUNTER
-
EXCEPTION_MESSAGE_KEY_UNSUPPORTED_REPORT_DATA_TYPE
- See Also:
-
-
Constructor Details
-
FillTable
-
FillTable
-
-
Method Details
-
getHorizontalPosition
- Overrides:
getHorizontalPosition
in classSubreportFillComponent
-
shrinkWidth
- Overrides:
shrinkWidth
in classSubreportFillComponent
-
evaluate
Description copied from interface:FillComponent
Evaluates 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:
evaluate
in interfaceFillComponent
- Overrides:
evaluate
in classSubreportFillComponent
- Parameters:
evaluation
- the evaluation type- Throws:
JRException
- See Also:
-
setTableInstanceCounter
protected void setTableInstanceCounter() -
toPrintColumn
- Throws:
JRException
-
evaluateProperties
- Throws:
JRException
-
evaluateColumns
protected void evaluateColumns(byte evaluation) -
getFillSubreportFactory
- Specified by:
getFillSubreportFactory
in classSubreportFillComponent
-
setFillSubreportFactory
public void setFillSubreportFactory(SubreportFillComponent.ComponentFillSubreportFactory subreportFactory) - Specified by:
setFillSubreportFactory
in classSubreportFillComponent
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classSubreportFillComponent
-
getJasperReport
public JasperReport getJasperReport(BuiltinExpressionEvaluatorFactory builtinEvaluatorFactory) throws JRException - Specified by:
getJasperReport
in classSubreportFillComponent
- Throws:
JRException
-
containingReport
-
createTableReportCompileData
protected JRReportCompileData createTableReportCompileData(JasperReport parentReport, JRDataset reportSubdataset) throws JRException - Throws:
JRException
-
fill
Description copied from interface:FillComponent
Fills 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:
fill
in interfaceFillComponent
- Overrides:
fill
in classSubreportFillComponent
- Returns:
- the print element generated by the component
-