Package org.zkoss.calendar.impl
Class SimpleDateFormatter
- java.lang.Object
-
- org.zkoss.calendar.impl.SimpleDateFormatter
-
- All Implemented Interfaces:
Serializable,DateFormatter,ZonedDateTimeFormatter
public class SimpleDateFormatter extends Object implements ZonedDateTimeFormatter, Serializable
A simple implementation ofZonedDateTimeFormatter- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleDateFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCaptionByDate(ZonedDateTime date, Locale locale)Returns the caption of the date.StringgetCaptionByDateOfMonth(ZonedDateTime date, Locale locale)Returns the caption of the date of month.StringgetCaptionByDayOfWeek(ZonedDateTime date, Locale locale)Returns the caption of the day of week.StringgetCaptionByPopup(ZonedDateTime date, Locale locale)Returns the caption of the popup title.StringgetCaptionByTimeOfDay(ZonedDateTime date, Locale locale)Returns the caption of the time of day.StringgetCaptionByWeekOfYear(ZonedDateTime date, Locale locale)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
-
Methods inherited from interface org.zkoss.calendar.api.ZonedDateTimeFormatter
getCaptionByDate, getCaptionByDateOfMonth, getCaptionByDayOfWeek, getCaptionByPopup, getCaptionByTimeOfDay, getCaptionByWeekOfYear
-
-
-
-
Method Detail
-
getCaptionByDate
public String getCaptionByDate(ZonedDateTime date, Locale locale)
Description copied from interface:ZonedDateTimeFormatterReturns the caption of the date.- Specified by:
getCaptionByDatein interfaceZonedDateTimeFormatter
-
getCaptionByDateOfMonth
public String getCaptionByDateOfMonth(ZonedDateTime date, Locale locale)
Description copied from interface:ZonedDateTimeFormatterReturns the caption of the date of month.- Specified by:
getCaptionByDateOfMonthin interfaceZonedDateTimeFormatter
-
getCaptionByDayOfWeek
public String getCaptionByDayOfWeek(ZonedDateTime date, Locale locale)
Description copied from interface:ZonedDateTimeFormatterReturns the caption of the day of week.- Specified by:
getCaptionByDayOfWeekin interfaceZonedDateTimeFormatter
-
getCaptionByTimeOfDay
public String getCaptionByTimeOfDay(ZonedDateTime date, Locale locale)
Description copied from interface:ZonedDateTimeFormatterReturns the caption of the time of day.- Specified by:
getCaptionByTimeOfDayin interfaceZonedDateTimeFormatter
-
getCaptionByPopup
public String getCaptionByPopup(ZonedDateTime date, Locale locale)
Description copied from interface:ZonedDateTimeFormatterReturns the caption of the popup title.- Specified by:
getCaptionByPopupin interfaceZonedDateTimeFormatter
-
getCaptionByWeekOfYear
public String getCaptionByWeekOfYear(ZonedDateTime date, Locale locale)
Description copied from interface:ZonedDateTimeFormatterReturns the caption of the week number within the current year.- Specified by:
getCaptionByWeekOfYearin interfaceZonedDateTimeFormatter
-
-