public class LabelTemplate extends AbstractTemplate
Constructor and Description |
---|
LabelTemplate()
Creates a new label template.
|
Modifier and Type | Method and Description |
---|---|
LabelTemplate |
clone()
Clones the template.
|
String |
getContent()
Returns the text for the label.
|
String |
getNullValue()
Returns the string that represents
null . |
Object |
getValue(ExpressionRuntime runtime,
ReportElement element)
Returns the current value for the data source.
|
void |
setContent(String content)
Sets the text for the label.
|
void |
setNullValue(String nullValue)
Sets the string that represents
null . |
getInstance, getName, setName
public void setContent(String content)
content
- the text.public String getContent()
public String getNullValue()
null
.null
.public void setNullValue(String nullValue)
null
.nullValue
- the string.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 LabelTemplate clone() throws CloneNotSupportedException
clone
in interface DataSource
clone
in class AbstractTemplate
CloneNotSupportedException
- this should never happen.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.