A resource field template, which reads a String value from a ResourceBundle.
| Method from org.jfree.report.filter.templates.ResourceFieldTemplate Detail: |
public Object clone() throws CloneNotSupportedException {
final ResourceFieldTemplate template = (ResourceFieldTemplate) super.clone();
template.stringFilter = (StringFilter) stringFilter.clone();
template.resourceFilter = (ResourceFileFilter) template.stringFilter.getDataSource();
template.dataRowDataSource = (DataRowDataSource) template.resourceFilter.getDataSource();
return template;
}
|
protected DataRowDataSource getDataRowDataSource() {
return dataRowDataSource;
}
Returns the datarow data source used in this template. |
public String getField() {
return dataRowDataSource.getDataSourceColumnName();
}
|
public String getFormula() {
return dataRowDataSource.getFormula();
}
Returns the formula used to compute the value of the data source. |
public String getNullValue() {
return stringFilter.getNullValue();
}
Returns the string that represents a null value. |
public String getResourceIdentifier() {
return resourceFilter.getResourceIdentifier();
}
Returns the resource class name. |
public Object getValue(ExpressionRuntime runtime,
Element element) {
return stringFilter.getValue(runtime, element);
}
Returns the current value for the data source. |
public void setField(String field) {
dataRowDataSource.setDataSourceColumnName(field);
}
|
public void setFormula(String formula) {
dataRowDataSource.setFormula(formula);
}
Defines the formula used to compute the value of this data source. |
public void setNullValue(String nullValue) {
stringFilter.setNullValue(nullValue);
}
Sets the string that represents a null value. |
public void setResourceIdentifier(String resourceClassName) throws MissingResourceException {
resourceFilter.setResourceIdentifier(resourceClassName);
}
Sets the resource class name. |