Class TableCompiler
- java.lang.Object
-
- net.sf.jasperreports.components.table.TableCompiler
-
- All Implemented Interfaces:
ComponentCompiler
public class TableCompiler extends Object implements ComponentCompiler
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
TableCompiler.BaseColumnCellSelector
protected static interface
TableCompiler.ColumnCellSelector
-
Constructor Summary
Constructors Constructor Description TableCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectExpressions(Component component, JRExpressionCollector collector)
Collects report expressions from a component.protected boolean
detectLoops(JRVerifier verifier, List<BaseColumn> columns)
protected boolean
detectLoops(JRVerifier verifier, List<BaseColumn> columns, Set<BaseColumn> parents)
Component
toCompiledComponent(Component component, JRBaseObjectFactory baseFactory)
Provides a "compiled" component instance that will be included in the compiled report.void
verify(Component component, JRVerifier verifier)
Logically verifies a component.protected void
verifyBaseColumn(TableComponent table, BaseColumn column, JRVerifier verifier)
protected void
verifyCell(Cell cell, int width, String cellName, JRVerifier verifier)
protected void
verifyColumn(TableComponent table, Column column, JRVerifier verifier)
protected void
verifyColumnHeights(TableComponent table, JRVerifier verifier)
protected void
verifyColumnHeights(TableComponent table, JRVerifier verifier, TableCompiler.ColumnCellSelector cellSelector)
protected void
verifyColumns(TableComponent table, JRVerifier verifier)
protected void
verifyGroupCells(TableComponent table, List<GroupCell> cells, int width, String cellName, JRVerifier verifier)
-
-
-
Method Detail
-
collectExpressions
public void collectExpressions(Component component, JRExpressionCollector collector)
Description copied from interface:ComponentCompiler
Collects report expressions from a component.- Specified by:
collectExpressions
in interfaceComponentCompiler
- Parameters:
component
- the componentcollector
- the expression collector
-
toCompiledComponent
public Component toCompiledComponent(Component component, JRBaseObjectFactory baseFactory)
Description copied from interface:ComponentCompiler
Provides a "compiled" component instance that will be included in the compiled report.- Specified by:
toCompiledComponent
in 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
public void verify(Component component, JRVerifier verifier)
Description copied from interface:ComponentCompiler
Logically verifies a component.- Specified by:
verify
in interfaceComponentCompiler
- Parameters:
component
- the componentverifier
- the verifier object, which can be used to raise validation errors- See Also:
JRVerifier.getCurrentComponentElement()
-
detectLoops
protected boolean detectLoops(JRVerifier verifier, List<BaseColumn> columns)
-
detectLoops
protected boolean detectLoops(JRVerifier verifier, List<BaseColumn> columns, Set<BaseColumn> parents)
-
verifyColumns
protected void verifyColumns(TableComponent table, JRVerifier verifier)
-
verifyBaseColumn
protected void verifyBaseColumn(TableComponent table, BaseColumn column, JRVerifier verifier)
-
verifyGroupCells
protected void verifyGroupCells(TableComponent table, List<GroupCell> cells, int width, String cellName, JRVerifier verifier)
-
verifyCell
protected void verifyCell(Cell cell, int width, String cellName, JRVerifier verifier)
-
verifyColumn
protected void verifyColumn(TableComponent table, Column column, JRVerifier verifier)
-
verifyColumnHeights
protected void verifyColumnHeights(TableComponent table, JRVerifier verifier)
-
verifyColumnHeights
protected void verifyColumnHeights(TableComponent table, JRVerifier verifier, TableCompiler.ColumnCellSelector cellSelector)
-
-