org.jfree.report.filter.templates
Class AbstractTemplate
java.lang.Object
|
+--org.jfree.report.filter.templates.AbstractTemplate
- Direct Known Subclasses:
- AnchorFieldTemplate, ComponentFieldTemplate, DateFieldTemplate, DrawableFieldTemplate, DrawableURLElementTemplate, DrawableURLFieldTemplate, EllipseTemplate, HorizontalLineTemplate, ImageFieldTemplate, ImageURLElementTemplate, ImageURLFieldTemplate, LabelTemplate, MessageFieldTemplate, NumberFieldTemplate, RectangleTemplate, ResourceFieldTemplate, ResourceLabelTemplate, ResourceMessageTemplate, RoundRectangleTemplate, ShapeFieldTemplate, StringFieldTemplate, VerticalLineTemplate
- public abstract class AbstractTemplate
- extends java.lang.Object
- implements Template
An abstract base class that implements the Template interface.
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
|
Method Summary |
java.lang.Object |
clone()
Clones the template. |
Template |
getInstance()
Returns an instance of the template by cloning. |
java.lang.String |
getName()
Returns the template name. |
void |
setName(java.lang.String name)
Sets the template name. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AbstractTemplate
public AbstractTemplate()
- Creates a new template.
setName
public void setName(java.lang.String name)
- Sets the template name.
- Specified by:
- setName in interface Template
- Parameters:
name - the name (null not permitted).
getName
public java.lang.String getName()
- Returns the template name.
- Specified by:
- getName in interface Template
- Returns:
- The name.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Clones the template.
- Overrides:
- clone in class java.lang.Object
- Returns:
- the clone.
- Throws:
- java.lang.CloneNotSupportedException - this should never happen.
getInstance
public Template getInstance()
- Returns an instance of the template by cloning.
- Specified by:
- getInstance in interface Template
- Returns:
- A clone.