net.sf.jasperreports.components.table.fill
public class FillTable extends BaseFillComponent
Modifier and Type | Class and Description |
---|---|
protected class |
FillTable.FillColumnEvaluator |
fillContext
Constructor and Description |
---|
FillTable(TableComponent table,
JRFillObjectFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected void |
createFillSubreport() |
protected FillTableSubreport |
createFillTableSubreport() |
protected JRReportCompileData |
createTableReportCompileData(JasperReport parentReport,
JRDataset reportSubdataset) |
void |
evaluate(byte evaluation)
Evaluates the fill component.
|
protected void |
evaluateColumns(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 boolean |
toPrintColumn(BaseColumn column,
byte evaluation) |
evaluateDelayedElement, evaluateExpression, initialize
public FillTable(TableComponent table, JRFillObjectFactory 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 typeJRException
FillContext.evaluate(net.sf.jasperreports.engine.JRExpression, byte)
protected boolean toPrintColumn(BaseColumn column, byte evaluation) throws JRException
JRException
protected void evaluateColumns(byte evaluation)
protected void createFillSubreport() throws JRException
JRException
protected FillTableSubreport createFillTableSubreport() throws JRException
JRException
protected JRReportCompileData createTableReportCompileData(JasperReport parentReport, JRDataset reportSubdataset) throws JRException
JRException
public FillPrepareResult prepare(int availableHeight)
FillComponent
availableHeight
- 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()
BaseFillComponent
Override this method if something needs to be done on component rewind.
rewind
in interface FillComponent
rewind
in class BaseFillComponent
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com