protected static class BasicMonthViewUI.RenderingHandler
extends java.lang.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 |
RenderingHandler() |
Modifier and Type | Method and Description |
---|---|
protected StringValue |
createDayStringValue(java.util.Locale locale)
Creates and returns a StringValue used for rendering days in a month.
|
protected StringValue |
createMonthHeaderStringValue(java.util.Locale locale)
Creates and returns a StringValue used for rendering the title of a month box.
|
protected StringValue |
createWeekOfYearStringValue(java.util.Locale locale)
Creates and returns a StringValue used for rendering the week of year.
|
javax.swing.JComponent |
prepareRenderingComponent(JXMonthView monthView,
java.util.Calendar calendar,
CalendarState dayState)
Configures and returns a component for rendering of the given monthView cell.
|
void |
setLocale(java.util.Locale locale)
Updates internal state to the given Locale.
|
protected StringValue createMonthHeaderStringValue(java.util.Locale locale)
locale
- the Locale to use, might be null to indicate usage of the default
Localeprotected StringValue createWeekOfYearStringValue(java.util.Locale locale)
locale
- the Locale to use, might be null to indicate usage of the default
Localeprotected StringValue createDayStringValue(java.util.Locale locale)
locale
- the Locale to use, might be null to indicate usage of the default
Localepublic void setLocale(java.util.Locale locale)
setLocale
in interface CalendarRenderingHandler
locale
- the new Locale.public javax.swing.JComponent prepareRenderingComponent(JXMonthView monthView, java.util.Calendar calendar, CalendarState dayState)
prepareRenderingComponent
in interface CalendarRenderingHandler
monthView
- the JXMonthView to render ontocalendar
- the cell valuedayState
- the DayState of the cell