public class MonthArrayTitleFormatter extends java.lang.Object implements TitleFormatter
Constructor and Description |
---|
MonthArrayTitleFormatter(java.lang.CharSequence[] monthLabels)
Format using an array of month labels
|
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
format(CalendarDay day)
Converts the supplied day to a suitable month/year title
|
public MonthArrayTitleFormatter(java.lang.CharSequence[] monthLabels)
monthLabels
- an array of 12 labels to use for months, starting with Januarypublic java.lang.CharSequence format(CalendarDay day)
format
in interface TitleFormatter
day
- the day containing relevant month and year information