org.devyant.decorutils.decorators
Class DateDecorator

java.lang.Object
  extended by org.devyant.decorutils.decorators.DateDecorator
All Implemented Interfaces:
Decorator

public class DateDecorator
extends java.lang.Object
implements Decorator

Decorator for transforming Date instances for example and utility purpose.

Since:
16/Fev/2005 4:34:28
Version:
$Revision: 1.0$ ($Author: ftavares$)
Author:
Filipe Tavares

Field Summary
static java.util.Locale DEFAULT_LOCALE
          The DEFAULT_LOCALE Locale.
 
Constructor Summary
DateDecorator()
           
 
Method Summary
 java.lang.Object decorate(java.lang.Object object)
          The decorate method.
 void setFormat(java.lang.String format)
          Setter method for the format attribute.
 void setPageContext(javax.servlet.jsp.PageContext pageContext)
          Setter method for the pageContext attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOCALE

public static final java.util.Locale DEFAULT_LOCALE
The DEFAULT_LOCALE Locale.

Constructor Detail

DateDecorator

public DateDecorator()
Method Detail

decorate

public final java.lang.Object decorate(java.lang.Object object)
The decorate method.

Specified by:
decorate in interface Decorator
Parameters:
object - Object to decorate
Returns:
The decorated object

setPageContext

public final void setPageContext(javax.servlet.jsp.PageContext pageContext)

Setter method for the pageContext attribute.

Parameters:
pageContext - The page context

setFormat

public final void setFormat(java.lang.String format)

Setter method for the format attribute.

Parameters:
format - The date format


Copyright © 2005 devyant. All Rights Reserved.