|
||||||||||
| 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.DateFieldTemplate
A date field template.
| Constructor Summary | |
DateFieldTemplate()
Creates a new date field template. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones this template. |
void |
connectDataRow(DataRow row)
Connects a DataRow to the data source. |
void |
disconnectDataRow(DataRow row)
Releases the connection to the data row. |
protected DataRowDataSource |
getDataRowDataSource()
Returns the data-row datasource. |
protected SimpleDateFormatFilter |
getDateFilter()
Returns the date filter. |
java.text.SimpleDateFormat |
getDateFormat()
Returns the date formatter. |
java.lang.String |
getField()
Returns the field name. |
java.lang.String |
getFormat()
Returns the date format string. |
java.lang.String |
getNullValue()
Returns the string that represents null values. |
protected StringFilter |
getStringFilter()
Returns the string filter. |
java.lang.Object |
getValue()
Returns the current value for the data source. |
void |
setDateFormat(java.text.SimpleDateFormat dateFormat)
Sets the date formatter. |
void |
setField(java.lang.String field)
Sets the field name. |
void |
setFormat(java.lang.String format)
Sets the date format string. |
void |
setNullValue(java.lang.String nullValue)
Sets the string that represents null values. |
| 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 DateFieldTemplate()
| Method Detail |
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
format - the format string.public java.lang.String getField()
public void setField(java.lang.String field)
field - the field name.public java.lang.String getNullValue()
null values.
public void setNullValue(java.lang.String nullValue)
null values.
nullValue - the string that represents null values.public java.text.SimpleDateFormat getDateFormat()
public void setDateFormat(java.text.SimpleDateFormat dateFormat)
dateFormat - the date formatter.
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.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.protected SimpleDateFormatFilter getDateFilter()
protected DataRowDataSource getDataRowDataSource()
protected StringFilter getStringFilter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||