Class TableCompiler
java.lang.Object
net.sf.jasperreports.components.table.TableCompiler
- All Implemented Interfaces:
ComponentCompiler
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected static interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectExpressions(Component component, JRExpressionCollector collector) Collects report expressions from a component.protected booleandetectLoops(JRVerifier verifier, List<BaseColumn> columns) protected booleandetectLoops(JRVerifier verifier, List<BaseColumn> columns, Set<BaseColumn> parents) toCompiledComponent(Component component, JRBaseObjectFactory baseFactory) Provides a "compiled" component instance that will be included in the compiled report.voidverify(Component component, JRVerifier verifier) Logically verifies a component.protected voidverifyBaseColumn(TableComponent table, BaseColumn column, JRVerifier verifier) protected voidverifyCell(Cell cell, int width, String cellName, JRVerifier verifier) protected voidverifyColumn(TableComponent table, Column column, JRVerifier verifier) protected voidverifyColumnHeights(TableComponent table, JRVerifier verifier) protected voidverifyColumnHeights(TableComponent table, JRVerifier verifier, TableCompiler.ColumnCellSelector cellSelector) protected voidverifyColumns(TableComponent table, JRVerifier verifier) protected voidverifyGroupCells(TableComponent table, List<GroupCell> cells, int width, String cellName, JRVerifier verifier)
-
Constructor Details
-
TableCompiler
public TableCompiler()
-
-
Method Details
-
collectExpressions
Description copied from interface:ComponentCompilerCollects report expressions from a component.- Specified by:
collectExpressionsin interfaceComponentCompiler- Parameters:
component- the componentcollector- the expression collector
-
toCompiledComponent
Description copied from interface:ComponentCompilerProvides a "compiled" component instance that will be included in the compiled report.- Specified by:
toCompiledComponentin interfaceComponentCompiler- Parameters:
component- the component from the design reportbaseFactory- the factory of base/compiled report elements- Returns:
- a component instance that is to be included in the compiled report
-
verify
Description copied from interface:ComponentCompilerLogically verifies a component.- Specified by:
verifyin interfaceComponentCompiler- Parameters:
component- the componentverifier- the verifier object, which can be used to raise validation errors- See Also:
-
detectLoops
-
detectLoops
protected boolean detectLoops(JRVerifier verifier, List<BaseColumn> columns, Set<BaseColumn> parents) -
verifyColumns
-
verifyBaseColumn
-
verifyGroupCells
protected void verifyGroupCells(TableComponent table, List<GroupCell> cells, int width, String cellName, JRVerifier verifier) -
verifyCell
-
verifyColumn
-
verifyColumnHeights
-
verifyColumnHeights
protected void verifyColumnHeights(TableComponent table, JRVerifier verifier, TableCompiler.ColumnCellSelector cellSelector)
-