A label template can be used to describe static text content.
| Method from org.jfree.report.filter.templates.LabelTemplate Detail: |
public Object clone() throws CloneNotSupportedException {
final LabelTemplate template = (LabelTemplate) super.clone();
template.stringFilter = (StringFilter) stringFilter.clone();
template.staticDataSource = (StaticDataSource) template.stringFilter.getDataSource();
return template;
}
|
public String getContent() {
return (String) (staticDataSource.getValue(null, null));
}
Returns the text for the label. |
public String getNullValue() {
return stringFilter.getNullValue();
}
Returns the string that represents null. |
public Object getValue(ExpressionRuntime runtime,
Element element) {
return stringFilter.getValue(runtime, element);
}
Returns the current value for the data source. |
public void setContent(String content) {
staticDataSource.setValue(content);
}
Sets the text for the label. |
public void setNullValue(String nullValue) {
stringFilter.setNullValue(nullValue);
}
Sets the string that represents null. |