01: package org.romaframework.aspect.reporting.jr;
02:
03: import net.sf.jasperreports.engine.design.JasperDesign;
04:
05: import org.romaframework.core.schema.SchemaClassDefinition;
06:
07: public class SRDesignJr extends DesignJr {
08:
09: public SRDesignJr(SchemaClassDefinition iClassDefinition,
10: String iComponentId) {
11: super (iClassDefinition, iComponentId);
12: }
13:
14: @Override
15: protected JasperDesign getBaseDesign() {
16: final JasperDesign custom = templateManager.getCustomSRFile(
17: rootDesignClass, componentId);
18: if (custom != null) {
19: customTemplate = true;
20: return custom;
21: }
22: if (design == null) {
23: return templateManager.getSubReportTemplate(componentId,
24: rootDesignClass);
25: } else {
26: return design;
27: }
28: }
29: }
|