com.jrefinery.report.filter.templates
Class ImageURLElementTemplate

java.lang.Object
  |
  +--com.jrefinery.report.filter.templates.AbstractTemplate
        |
        +--com.jrefinery.report.filter.templates.ImageURLElementTemplate
All Implemented Interfaces:
java.lang.Cloneable, DataSource, java.io.Serializable, Template

public class ImageURLElementTemplate
extends AbstractTemplate

An image URL element template, which reads the image from a static URL.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
ImageURLElementTemplate()
          Creates a new template.
 
Method Summary
 java.lang.Object clone()
          Clones the template.
 java.net.URL getBaseURL()
          Returns the base URL.
 java.lang.String getContent()
          Returns the URL text for the template.
 java.lang.Object getValue()
          Returns the current value for the data source.
 void setBaseURL(java.net.URL baseURL)
          Sets the base URL.
 void setContent(java.lang.String content)
          Sets the URL for the template.
 
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

ImageURLElementTemplate

public ImageURLElementTemplate()
Creates a new template.

Method Detail

setContent

public void setContent(java.lang.String content)
Sets the URL for the template.

Parameters:
content - the URL.

getContent

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

Returns:
The URL text.

getBaseURL

public java.net.URL getBaseURL()
Returns the base URL.

Returns:
The URL.

setBaseURL

public void setBaseURL(java.net.URL baseURL)
Sets the base URL.

Parameters:
baseURL - the URL.

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.