org.appfuse.webapp.taglib
Class FormattedDate

java.lang.Object
  extended byjava.util.Date
      extended byorg.appfuse.webapp.taglib.FormattedDate
All Implemented Interfaces:
Cloneable, Comparable, Serializable

public class FormattedDate
extends Date

This class is a subclass of Date in order to format the Date for rendering on the UI.

Version:
$Revision: 1.1 $ $Date: 2004/03/31 13:04:29 $
Author:
Matt Raible
See Also:
Serialized Form

Constructor Summary
FormattedDate()
           
 
Method Summary
 String getMask()
          Returns the mask.
 void setMask(String mask)
          Sets the mask.
 String toString()
          Override Date's toString() method to format it with a specified date pattern.
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormattedDate

public FormattedDate()
Method Detail

toString

public final String toString()
Override Date's toString() method to format it with a specified date pattern.

Returns:
a formatted string

getMask

public final String getMask()
Returns the mask.

Returns:
String

setMask

public final void setMask(String mask)
Sets the mask.

Parameters:
mask - The mask to set


Copyright © 2002-2004