|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.JRSimpleTemplate
public class JRSimpleTemplate
Default JRTemplate
implementation.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_INCLUDED_TEMPLATES
|
static java.lang.String |
PROPERTY_STYLE
|
Constructor Summary | |
---|---|
JRSimpleTemplate()
|
Method Summary | |
---|---|
void |
addIncludedTemplate(int index,
JRTemplateReference reference)
Adds an included template. |
void |
addIncludedTemplate(JRTemplateReference reference)
Adds an included template. |
void |
addIncludedTemplate(java.lang.String templateLocation)
Adds an included template. |
void |
addStyle(int index,
JRStyle style)
Adds a style to the template. |
void |
addStyle(JRStyle style)
Adds a style to the template. |
protected void |
checkExistingName(java.lang.String name)
|
JRStyle |
getDefaultStyle()
Returns a default style. |
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance. |
JRTemplateReference[] |
getIncludedTemplates()
Returns the templates included/referenced by this template. |
java.util.List<JRTemplateReference> |
getIncludedTemplatesList()
|
JRStyle |
getStyle(java.lang.String name)
Returns an included style by name. |
JRStyle[] |
getStyles()
Returns the styles defined in this template. |
java.util.List<JRStyle> |
getStylesList()
|
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 |
Field Detail |
---|
public static final java.lang.String PROPERTY_STYLE
public static final java.lang.String PROPERTY_INCLUDED_TEMPLATES
Constructor Detail |
---|
public JRSimpleTemplate()
Method Detail |
---|
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport
in interface JRChangeEventsSupport
public void addStyle(JRStyle style) throws JRException
style
- the style to add
JRException
- when a style with the same name already existspublic void addStyle(int index, JRStyle style) throws JRException
style
- the style to add
JRException
- when a style with the same name already existsprotected 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 java.util.List<JRStyle> getStylesList()
public JRStyle[] getStyles()
JRTemplate
getStyles
in interface JRTemplate
public JRStyle getDefaultStyle()
JRDefaultStyleProvider
getDefaultStyle
in interface JRDefaultStyleProvider
public void addIncludedTemplate(int index, JRTemplateReference reference)
reference
- the template referencegetIncludedTemplates()
public 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
public java.util.List<JRTemplateReference> getIncludedTemplatesList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |