net.sf.jasperreports.engine
Interface JRTemplate

All Superinterfaces:
JRDefaultFontProvider, JRDefaultStyleProvider
All Known Implementing Classes:
JRSimpleTemplate

public interface JRTemplate
extends JRDefaultStyleProvider

A template that can be used by report.

Templates contain report styles that can be used by reports once the template is included in the report. This allows styles to be externalized and reused across several reports.

A template can in its turn include other templates, see getIncludedTemplates().

Version:
$Id: JRTemplate.java 3033 2009-08-27 11:46:22Z teodord $
Author:
Lucian Chirita ([email protected])
See Also:
JRReport.getTemplates(), JRParameter.REPORT_TEMPLATES, JRStyleContainer.getStyleNameReference()

Method Summary
 JRTemplateReference[] getIncludedTemplates()
          Returns the templates included/referenced by this template.
 JRStyle[] getStyles()
          Returns the styles defined in this template.
 
Methods inherited from interface net.sf.jasperreports.engine.JRDefaultStyleProvider
getDefaultStyle
 
Methods inherited from interface net.sf.jasperreports.engine.JRDefaultFontProvider
getDefaultFont
 

Method Detail

getIncludedTemplates

JRTemplateReference[] getIncludedTemplates()
Returns the templates included/referenced by this template.

Returns:
the included templates

getStyles

JRStyle[] getStyles()
Returns the styles defined in this template.

Returns:
the template styles


Copyright © 2010. All Rights Reserved.