public abstract class DateCustomizer extends Object
| Constructor and Description |
|---|
DateCustomizer() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
format(Date date, String key, Locale locale, TimeZone tz)
The format method formats a date based on a key.
|
String |
formatRange(Date startDate, Date endDate, String key, Locale locale, TimeZone tz)
The format method formats a date range based on a key.
|
String |
getInlineStyle(Date date, String key, Locale locale, TimeZone tz)
getInlineStyle() returns inline CSS styles to be applied to a portion of the Calendar.
|
public abstract String format(Date date, String key, Locale locale, TimeZone tz)
The format method of a hypothetical subclass of DateFormatter might do the following with the date December 25, 2008:
date - the date to formatkey - the key that indicates what type of return value is expected.locale - the current localetz - the current timezonepublic String formatRange(Date startDate, Date endDate, String key, Locale locale, TimeZone tz)
The format method of a hypothetical subclass of DateFormatter might do the following with the start date December 25, 2008 and end date January 1, 2009:
startDate - the date to formatendDate - the date to formatkey - the key that indicates what type of return value is expected.locale - the current localetz - the current timezonepublic String getInlineStyle(Date date, String key, Locale locale, TimeZone tz)
date - Date to formatkey - Indicates the section of the calendar being styled. See the tagdoc for list of keys.locale - Current localetz - Current timezone