org.pentaho.reporting.engine.classic.core.filter.templates
Class ImageURLElementTemplate

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
      extended by org.pentaho.reporting.engine.classic.core.filter.templates.ImageURLElementTemplate
All Implemented Interfaces:
Serializable, Cloneable, DataSource, 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
 Object clone()
          Clones the template.
 URL getBaseURL()
          Returns the base URL.
 String getContent()
          Returns the URL text for the template.
 Object getValue(ExpressionRuntime runtime, Element element)
          Returns the current value for the data source.
 void setBaseURL(URL baseURL)
          Sets the base URL.
 void setContent(String content)
          Sets the URL for the template.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate
getInstance, getName, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageURLElementTemplate

public ImageURLElementTemplate()
Creates a new template.

Method Detail

setContent

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

Parameters:
content - the URL.

getContent

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

Returns:
The URL text.

getBaseURL

public URL getBaseURL()
Returns the base URL.

Returns:
The URL.

setBaseURL

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

Parameters:
baseURL - the URL.

getValue

public Object getValue(ExpressionRuntime runtime,
                       Element element)
Returns the current value for the data source.

Parameters:
runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.
element -
Returns:
the value.

clone

public Object clone()
             throws CloneNotSupportedException
Clones the template.

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