|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.filter.ResourceFileFilter
Lookup a key from a datasource using a ResourceBundle.
Filters a given datasource and uses the datasource value as key for a ResourceBundle.
Constructor Summary | |
ResourceFileFilter()
Creates a new ResourceFileFilter. |
Method Summary | |
java.lang.Object |
clone()
Clones this DataSource . |
DataSource |
getDataSource()
Returns the assigned DataSource for this Target. |
java.util.ResourceBundle |
getResources()
Gets the assigned resource bundle, or null, if no resource bundle is defined. |
java.lang.Object |
getValue()
Returns the current value for the data source. |
void |
setDataSource(DataSource ds)
Assigns a DataSource for this Target. |
void |
setResources(java.util.ResourceBundle resources)
Defines a resource bundle for this filter. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceFileFilter()
Method Detail |
public java.util.ResourceBundle getResources()
public void setResources(java.util.ResourceBundle resources)
resources
- the resource bundle used to lookup the value.public java.lang.Object getValue()
The value read from the dataSource is looked up in the given
resourcebundle using the ResourceBundle.getObject()
method. If the lookup fails, null is returned.
getValue
in interface DataSource
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
DataSource
.
clone
in interface DataSource
java.lang.CloneNotSupportedException
- this should never happen.public DataSource getDataSource()
getDataSource
in interface DataTarget
public void setDataSource(DataSource ds)
setDataSource
in interface DataTarget
ds
- The data source.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |