protected static class BasicMonthViewUI.RenderingHandler extends Object
This will be available for extension by LAF providers until all collaborators in the new rendering pipeline are ready for public exposure.
Modifier | Constructor and Description |
---|---|
protected |
BasicMonthViewUI.RenderingHandler() |
Modifier and Type | Method and Description |
---|---|
protected StringValue |
createDayStringValue(Locale locale)
Creates and returns a StringValue used for rendering days in a month.
|
protected StringValue |
createMonthHeaderStringValue(Locale locale)
Creates and returns a StringValue used for rendering the title of a month box.
|
protected StringValue |
createWeekOfYearStringValue(Locale locale)
Creates and returns a StringValue used for rendering the week of year.
|
JComponent |
prepareRenderingComponent(JXMonthView monthView,
Calendar calendar,
CalendarState dayState)
Configures and returns a component for rendering of the given monthView cell.
|
void |
setLocale(Locale locale)
Updates internal state to the given Locale.
|
protected StringValue createMonthHeaderStringValue(Locale locale)
locale
- the Locale to use, might be null to indicate usage of the default
Localeprotected StringValue createWeekOfYearStringValue(Locale locale)
locale
- the Locale to use, might be null to indicate usage of the default
Localeprotected StringValue createDayStringValue(Locale locale)
locale
- the Locale to use, might be null to indicate usage of the default
Localepublic void setLocale(Locale locale)
setLocale
in interface CalendarRenderingHandler
locale
- the new Locale.public JComponent prepareRenderingComponent(JXMonthView monthView, Calendar calendar, CalendarState dayState)
prepareRenderingComponent
in interface CalendarRenderingHandler
monthView
- the JXMonthView to render ontocalendar
- the cell valuedayState
- the DayState of the cellCopyright © 2014. All rights reserved.