IT.CappuccinoNet  
StrutsCX v0.8.1
   

com.cappuccinonet.strutscx.util
Class StrutsCXDateString

java.lang.Object
  |
  +--com.cappuccinonet.strutscx.util.StrutsCXDateString

public class StrutsCXDateString
extends java.lang.Object

DateString offers some utility methods to retain formated date strings.

Version:
v0.2, 2002.06.10
Author:
Bernhard Woehrlin, IT.CappuccinoNet.com

Field Summary
private  java.util.Date date
           
private  java.lang.String formatedDate
           
private  java.text.SimpleDateFormat formatter
           
private  java.lang.String locale
           
 
Constructor Summary
StrutsCXDateString()
           
 
Method Summary
 java.lang.String getDateString()
          Creates a simple text string with the actual date.
 java.lang.String getDateString(java.lang.String locale)
          Creates a simple text string with the actual date.
 java.lang.String getThisYearString()
          Creates a simple text string with the actual year.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

private java.util.Date date

formatedDate

private java.lang.String formatedDate

formatter

private java.text.SimpleDateFormat formatter

locale

private java.lang.String locale
Constructor Detail

StrutsCXDateString

public StrutsCXDateString()
Method Detail

getDateString

public java.lang.String getDateString()
Creates a simple text string with the actual date. Formates it in a standard way like this

Returns:
String the formated date string.

getDateString

public java.lang.String getDateString(java.lang.String locale)
Creates a simple text string with the actual date. Formates it like this:

Parameters:
locale - a String with the locale, i.e. "de".
Returns:
String the formated date string.

getThisYearString

public java.lang.String getThisYearString()
Creates a simple text string with the actual year. Formates it like this:

Returns:
String the formated date string.

IT.CappuccinoNet  
StrutsCX v0.8.1
   

© 2002, IT.CappuccinoNet.com - compiled 20021015:2052