org.displaytag.sample
public class: LongDateWrapper [javadoc |
source]
java.lang.Object
org.displaytag.sample.LongDateWrapper
All Implemented Interfaces:
DisplaytagColumnDecorator
Simple column decorator which formats a date.
- author:
epesh -
- author:
Fabrizio - Giustina
- version:
$ - Revision$ ($Author$)
| Method from org.displaytag.sample.LongDateWrapper Summary: |
|---|
|
decorate |
| Method from org.displaytag.sample.LongDateWrapper Detail: |
public Object decorate(Object columnValue,
PageContext pageContext,
MediaTypeEnum media) throws DecoratorException {
//$NON-NLS-1$
Date date = (Date) columnValue;
return this.dateFormat.format(date);
}
transform the given object into a String representation. The object is supposed to be a date. |