public class ImageFieldTemplate extends AbstractTemplate
Constructor and Description |
---|
ImageFieldTemplate()
Creates a new image field template.
|
Modifier and Type | Method and Description |
---|---|
ImageFieldTemplate |
clone()
Clones the template.
|
protected DataRowDataSource |
getDataRowDataSource()
Returns the datarow data source used in this template.
|
String |
getField()
Returns the field name.
|
String |
getFormula()
Returns the formula used to compute the value of the data source.
|
Object |
getValue(ExpressionRuntime runtime,
ReportElement element)
Returns the current value for the data source.
|
void |
setField(String field)
Sets the field name.
|
void |
setFormula(String formula)
Defines the formula used to compute the value of this data source.
|
getInstance, getName, setName
public ImageFieldTemplate()
public String getField()
public void setField(String field)
field
- the field name.public String getFormula()
public void setFormula(String formula)
formula
- the formula for the data source.public Object getValue(ExpressionRuntime runtime, ReportElement element)
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this
filter.element
- public ImageFieldTemplate clone() throws CloneNotSupportedException
clone
in interface DataSource
clone
in class AbstractTemplate
CloneNotSupportedException
- this should never happen.protected DataRowDataSource getDataRowDataSource()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.