|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrefinery.report.filter.templates.AbstractTemplate
com.jrefinery.report.filter.templates.ResourceFieldTemplate
A resource field template, which reads a String value from a ResourceBundle.
| Constructor Summary | |
ResourceFieldTemplate()
Creates a new template. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones the template. |
void |
connectDataRow(DataRow row)
Connects a DataRow to the data source. |
void |
disconnectDataRow(DataRow row)
Releases the connection to the data row. |
java.lang.String |
getField()
Returns the field name. |
java.lang.String |
getNullValue()
Returns the string that represents a null value. |
java.lang.String |
getResourceClassName()
Returns the resource class name. |
java.lang.Object |
getValue()
Returns the current value for the data source. |
void |
setField(java.lang.String field)
Sets the field name. |
void |
setNullValue(java.lang.String nullValue)
Sets the string that represents a null value. |
void |
setResourceClassName(java.lang.String resourceClassName)
Sets the resource class name. |
| Methods inherited from class com.jrefinery.report.filter.templates.AbstractTemplate |
getInstance, getName, setName |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResourceFieldTemplate()
| Method Detail |
public java.lang.String getField()
public void setField(java.lang.String field)
field - the field name.public java.lang.String getResourceClassName()
public void setResourceClassName(java.lang.String resourceClassName)
throws java.util.MissingResourceException
resourceClassName - the resource class name.
java.util.MissingResourceException - if the resource is missing.public java.lang.String getNullValue()
null value.
null value.public void setNullValue(java.lang.String nullValue)
null value.
nullValue - the string that represents a null value.public java.lang.Object getValue()
getValue in interface DataSource
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface DataSourceclone in class AbstractTemplatejava.lang.CloneNotSupportedException - this should never happen.
public void connectDataRow(DataRow row)
throws java.lang.IllegalStateException
DataRow to the data source.
connectDataRow in interface DataRowConnectablerow - the data row.
java.lang.IllegalStateException - if there is already a data row connected.
public void disconnectDataRow(DataRow row)
throws java.lang.IllegalStateException
If no data row is connected, an IllegalStateException is thrown to indicate the
programming error.
disconnectDataRow in interface DataRowConnectablerow - the data row.
java.lang.IllegalStateException - if there is already a data row connected.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||