org.zkoss.calendar.impl
Class SimpleDateFormatter

java.lang.Object
  extended by org.zkoss.calendar.impl.SimpleDateFormatter
All Implemented Interfaces:
DateFormatter

public class SimpleDateFormatter
extends java.lang.Object
implements DateFormatter

A simple implementation of DateFormatter

Author:
jumperchen

Constructor Summary
SimpleDateFormatter()
           
 
Method Summary
 java.lang.String getCaptionByDate(java.util.Date date, java.util.Locale locale, java.util.TimeZone timezone)
          Returns the caption of the date.
 java.lang.String getCaptionByDateOfMonth(java.util.Date date, java.util.Locale locale, java.util.TimeZone timezone)
          Returns the caption of the date of month.
 java.lang.String getCaptionByDayOfWeek(java.util.Date date, java.util.Locale locale, java.util.TimeZone timezone)
          Returns the caption of the day of week.
 java.lang.String getCaptionByPopup(java.util.Date date, java.util.Locale locale, java.util.TimeZone timezone)
          Returns the caption of the popup title.
 java.lang.String getCaptionByTimeOfDay(java.util.Date date, java.util.Locale locale, java.util.TimeZone timezone)
          Returns the caption of the time of day.
 java.lang.String getCaptionByWeekOfYear(java.util.Date date, java.util.Locale locale, java.util.TimeZone timezone)
          Returns the caption of the week number within the current year.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDateFormatter

public SimpleDateFormatter()
Method Detail

getCaptionByDate

public java.lang.String getCaptionByDate(java.util.Date date,
                                         java.util.Locale locale,
                                         java.util.TimeZone timezone)
Description copied from interface: DateFormatter
Returns the caption of the date.

Specified by:
getCaptionByDate in interface DateFormatter

getCaptionByDateOfMonth

public java.lang.String getCaptionByDateOfMonth(java.util.Date date,
                                                java.util.Locale locale,
                                                java.util.TimeZone timezone)
Description copied from interface: DateFormatter
Returns the caption of the date of month.

Specified by:
getCaptionByDateOfMonth in interface DateFormatter

getCaptionByDayOfWeek

public java.lang.String getCaptionByDayOfWeek(java.util.Date date,
                                              java.util.Locale locale,
                                              java.util.TimeZone timezone)
Description copied from interface: DateFormatter
Returns the caption of the day of week.

Specified by:
getCaptionByDayOfWeek in interface DateFormatter

getCaptionByTimeOfDay

public java.lang.String getCaptionByTimeOfDay(java.util.Date date,
                                              java.util.Locale locale,
                                              java.util.TimeZone timezone)
Description copied from interface: DateFormatter
Returns the caption of the time of day.

Specified by:
getCaptionByTimeOfDay in interface DateFormatter

getCaptionByPopup

public java.lang.String getCaptionByPopup(java.util.Date date,
                                          java.util.Locale locale,
                                          java.util.TimeZone timezone)
Description copied from interface: DateFormatter
Returns the caption of the popup title.

Specified by:
getCaptionByPopup in interface DateFormatter

getCaptionByWeekOfYear

public java.lang.String getCaptionByWeekOfYear(java.util.Date date,
                                               java.util.Locale locale,
                                               java.util.TimeZone timezone)
Description copied from interface: DateFormatter
Returns the caption of the week number within the current year.

Specified by:
getCaptionByWeekOfYear in interface DateFormatter


Copyright © 2005-2008 Potix Corporation. All Rights Reserved.