|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.report.filter.templates.AbstractTemplate | +--com.jrefinery.report.filter.templates.StringFieldTemplate
A string field template.
Constructor Summary | |
StringFieldTemplate()
Creates a new string field template. |
Method Summary | |
java.lang.Object |
clone()
Clones the template. |
void |
connectDataRow(DataRow row)
Connects the 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 value displayed by the field when the data source value is null . |
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 value displayed by the field when the data source value is null . |
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 StringFieldTemplate()
Method Detail |
public java.lang.String getField()
public void setField(java.lang.String field)
field
- the field name.public java.lang.String getNullValue()
null
.
null
.public void setNullValue(java.lang.String nullValue)
null
.
nullValue
- the value that represents null
.public java.lang.Object getValue()
getValue
in interface DataSource
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface DataSource
clone
in class AbstractTemplate
java.lang.CloneNotSupportedException
- this should never happen.public void connectDataRow(DataRow row) throws java.lang.IllegalStateException
connectDataRow
in interface DataRowConnectable
row
- 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 DataRowConnectable
row
- 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 |