|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.filter.FormatFilter
com.jrefinery.report.filter.DateFormatFilter
A filter that creates string from dates. This filter will format java.util. Date objects using a java.text.DateFormat to create the string representation for the date obtained from the datasource.
If the object read from the datasource is no date, the NullValue defined by setNullValue(Object) is returned.
DateFormat
,
Serialized FormConstructor Summary | |
DateFormatFilter()
Default constructor. |
Method Summary | |
java.text.DateFormat |
getDateFormat()
Returns the date format object. |
void |
setDateFormat(java.text.DateFormat format)
Sets the date format for the filter. |
void |
setFormatter(java.text.Format format)
Sets the formatter. |
Methods inherited from class com.jrefinery.report.filter.FormatFilter |
clone, getDataSource, getFormatter, getNullValue, getValue, setDataSource, setNullValue |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DateFormatFilter()
Method Detail |
public java.text.DateFormat getDateFormat()
public void setDateFormat(java.text.DateFormat format)
format
- The format.
java.lang.NullPointerException
- if the format given is nullpublic void setFormatter(java.text.Format format)
setFormatter
in class FormatFilter
format
- The format.
java.lang.ClassCastException
- if the format given is no DateFormat
java.lang.NullPointerException
- if the format given is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |