public class CalendarWeekDayFormatter extends java.lang.Object implements WeekDayFormatter
Calendar.getDisplayName(int, int, java.util.Locale)DEFAULT| Constructor and Description |
|---|
CalendarWeekDayFormatter()
Format with a default calendar
|
CalendarWeekDayFormatter(java.util.Calendar calendar)
Format with a specific calendar
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.CharSequence |
format(int dayOfWeek)
Convert a given day of the week into a label
|
public CalendarWeekDayFormatter(java.util.Calendar calendar)
calendar - Calendar to retrieve formatting information frompublic CalendarWeekDayFormatter()
public java.lang.CharSequence format(int dayOfWeek)
format in interface WeekDayFormatterdayOfWeek - the day of the week as returned by Calendar.get(int) for Calendar.DAY_OF_YEAR