com.jrefinery.report.filter.templates
Class LabelTemplate

java.lang.Object
  extended bycom.jrefinery.report.filter.templates.AbstractTemplate
      extended bycom.jrefinery.report.filter.templates.LabelTemplate
All Implemented Interfaces:
java.lang.Cloneable, DataSource, java.io.Serializable, Template

public class LabelTemplate
extends AbstractTemplate

A label template can be used to describe static text content.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
LabelTemplate()
          Creates a new label template.
 
Method Summary
 java.lang.Object clone()
          Clones the template.
 java.lang.String getContent()
          Returns the text for the label.
 java.lang.String getNullValue()
          Returns the string that represents null.
 java.lang.Object getValue()
          Returns the current value for the data source.
 void setContent(java.lang.String content)
          Sets the text for the label.
 void setNullValue(java.lang.String nullValue)
          Sets the string that represents null.
 
Methods inherited from class com.jrefinery.report.filter.templates.AbstractTemplate
getInstance, getName, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelTemplate

public LabelTemplate()
Creates a new label template.

Method Detail

setContent

public void setContent(java.lang.String content)
Sets the text for the label.

Parameters:
content - the text.

getContent

public java.lang.String getContent()
Returns the text for the label.

Returns:
The text.

getNullValue

public java.lang.String getNullValue()
Returns the string that represents null.

Returns:
The string that represents null.

setNullValue

public void setNullValue(java.lang.String nullValue)
Sets the string that represents null.

Parameters:
nullValue - the string.

getValue

public java.lang.Object getValue()
Returns the current value for the data source.

Returns:
the value.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clones the template.

Specified by:
clone in interface DataSource
Overrides:
clone in class AbstractTemplate
Returns:
the clone.
Throws:
java.lang.CloneNotSupportedException - this should never happen.