public class FillTable extends BaseFillComponent
| Modifier and Type | Class and Description |
|---|---|
protected class |
FillTable.FillColumnEvaluator |
protected class |
FillTable.FillTableSubreportFactory |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EXCEPTION_MESSAGE_KEY_UNSUPPORTED_REPORT_DATA_TYPE |
protected static String |
FILL_CACHE_KEY_TABLE_INSTANCE_COUNTER |
elementId, fillContext, printElementOriginator| Constructor and Description |
|---|
FillTable(FillTable table,
JRFillCloneFactory factory) |
FillTable(TableComponent table,
JRFillObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected JasperReport |
containingReport(JasperReport parentReport) |
protected void |
createFillSubreport() |
protected FillTable.FillTableSubreportFactory |
createFillTableSubreportFactory() |
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) |
JRPrintElement |
fill()
Fills the component by creating a print element which will be included
in the generated report.
|
protected JRTemplateFrame |
getFrameTemplate() |
FillPrepareResult |
prepare(int availableHeight)
Prepares to fill the component by deciding whether the component will
print, and how much vertical space it will require.
|
void |
rewind()
The default implementation is empty.
|
protected void |
setTableInstanceCounter() |
protected boolean |
toPrintColumn(BaseColumn column,
byte evaluation) |
deduplicate, evaluateDelayedElement, evaluateExpression, initializeprotected static final String FILL_CACHE_KEY_TABLE_INSTANCE_COUNTER
protected static final String EXCEPTION_MESSAGE_KEY_UNSUPPORTED_REPORT_DATA_TYPE
public FillTable(TableComponent table, JRFillObjectFactory factory)
public FillTable(FillTable table, JRFillCloneFactory factory)
public void evaluate(byte evaluation)
throws JRException
FillComponent
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 on FillComponent.evaluateDelayedElement(JRPrintElement, byte).
evaluation - the evaluation typeJRExceptionFillContext.evaluate(net.sf.jasperreports.engine.JRExpression, byte)protected void setTableInstanceCounter()
protected boolean toPrintColumn(BaseColumn column, byte evaluation) throws JRException
JRExceptionprotected JRPropertiesMap evaluateProperties(BaseColumn column, byte evaluation) throws JRException
JRExceptionprotected void evaluateColumns(byte evaluation)
protected void createFillSubreport()
throws JRException
JRExceptionprotected FillTable.FillTableSubreportFactory createFillTableSubreportFactory() throws JRException
JRExceptionprotected JasperReport containingReport(JasperReport parentReport)
protected JRReportCompileData createTableReportCompileData(JasperReport parentReport, JRDataset reportSubdataset) throws JRException
JRExceptionpublic FillPrepareResult prepare(int availableHeight)
FillComponentavailableHeight - the amount of vertical space available for the
component, starting from the top of the component element.public JRPrintElement fill()
FillComponent
This method will get called only if FillComponent.prepare(int) returned
a result that indicated that the component will print.
protected JRTemplateFrame getFrameTemplate()
public void rewind()
BaseFillComponentOverride this method if something needs to be done on component rewind.
rewind in interface FillComponentrewind in class BaseFillComponentCopyright © 2017. All rights reserved.