|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.date.JaretDateFormatter
public class JaretDateFormatter
Delegate for the JaretDate class supplying convenient methods for generating formatted, i8ned output.
| Constructor Summary | |
|---|---|
JaretDateFormatter()
Default constructor unsing default locale. |
|
JaretDateFormatter(Locale locale)
Construcor specifying a locale. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
generateDisplayString(JaretDate date)
Generate a textual representation of the given JaretDate. |
String |
generateDisplayStringDate(JaretDate date)
Generate a textual representation of the given JaretDate. |
String |
getDayOfWeekString(int dayOfWeek)
Retrieve a localized name for the day of the week. |
Locale |
getLocale()
Retrieve the used locale. |
String |
getMonthString(int month)
|
String |
getShortDayOfWeekString(int dayOfWeek)
|
String |
getShortMonthString(int month)
|
int |
hashCode()
|
Date |
parseTextualDate(String text)
|
static String |
secondsToDisplayString(int sec)
Generate an output of the format hh:mm:ss for a given number of seconds. |
void |
setLocale(Locale locale)
Set the locale for this JaretDateFormatter. |
String |
toDisplayStringTime(JaretDate date,
boolean seconds)
Generates a textual representation of the time only. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JaretDateFormatter(Locale locale)
locale - locale to be usedpublic JaretDateFormatter()
| Method Detail |
|---|
public Locale getLocale()
public void setLocale(Locale locale)
locale - Locale to be usedpublic Date parseTextualDate(String text)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String generateDisplayString(JaretDate date)
date - the JaretDate to be formatted
public String generateDisplayStringDate(JaretDate date)
date - the JaretDate to be formatted
public static String secondsToDisplayString(int sec)
sec - Seconds
public String getDayOfWeekString(int dayOfWeek)
dayOfWeek -
public String getMonthString(int month)
public String getShortDayOfWeekString(int dayOfWeek)
public String getShortMonthString(int month)
public String toDisplayStringTime(JaretDate date,
boolean seconds)
date - JaretDate to be represenetdseconds - if true seconds will be included (hh:mm:ss), hh:mm otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||