|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.JRSimpleTemplate
public class JRSimpleTemplate
Default JRTemplate implementation.
| Constructor Summary | |
|---|---|
JRSimpleTemplate()
|
|
| Method Summary | |
|---|---|
void |
addIncludedTemplate(JRTemplateReference reference)
Adds an included template. |
void |
addIncludedTemplate(java.lang.String templateLocation)
Adds an included template. |
void |
addStyle(JRStyle style)
Adds a style to the template. |
protected void |
checkExistingName(java.lang.String name)
|
JRReportFont |
getDefaultFont()
Returns a default font. |
JRStyle |
getDefaultStyle()
Returns a default style. |
JRTemplateReference[] |
getIncludedTemplates()
Returns the templates included/referenced by this template. |
JRStyle |
getStyle(java.lang.String name)
Returns an included style by name. |
JRStyle[] |
getStyles()
Returns the styles defined in this template. |
protected boolean |
nameMatches(JRStyle style,
java.lang.String name)
|
boolean |
removeIncludedTemplate(JRTemplateReference reference)
Removes an included template. |
JRTemplateReference |
removeIncludedTemplate(java.lang.String location)
Removes an included template. |
boolean |
removeStyle(JRStyle style)
Removes an included style. |
JRStyle |
removeStyle(java.lang.String name)
Removes an included style. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JRSimpleTemplate()
| Method Detail |
|---|
public void addStyle(JRStyle style)
throws JRException
style - the style to add
JRException - when a style with the same name already exists
protected void checkExistingName(java.lang.String name)
throws JRException
JRException
protected boolean nameMatches(JRStyle style,
java.lang.String name)
public JRStyle getStyle(java.lang.String name)
name - the name of the style to be returned
null if not foundpublic boolean removeStyle(JRStyle style)
style - the style to remove
true if and only if the style has been found and removedpublic JRStyle removeStyle(java.lang.String name)
name - the name of the style to be removed
null if not foundpublic JRStyle[] getStyles()
JRTemplate
getStyles in interface JRTemplatepublic JRStyle getDefaultStyle()
JRDefaultStyleProvider
getDefaultStyle in interface JRDefaultStyleProviderpublic JRReportFont getDefaultFont()
JRDefaultFontProvider
getDefaultFont in interface JRDefaultFontProviderpublic void addIncludedTemplate(JRTemplateReference reference)
reference - the template referencegetIncludedTemplates()public void addIncludedTemplate(java.lang.String templateLocation)
templateLocation - the template locationgetIncludedTemplates()public boolean removeIncludedTemplate(JRTemplateReference reference)
reference - the template reference to remove
true if and only if the included template has been found and removedpublic JRTemplateReference removeIncludedTemplate(java.lang.String location)
location - the location of the template to remove
null if not foundpublic JRTemplateReference[] getIncludedTemplates()
JRTemplate
getIncludedTemplates in interface JRTemplate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||