org.jdesktop.swingx.plaf.basic
Class BasicMonthViewUI.RenderingHandler

java.lang.Object
  extended by org.jdesktop.swingx.plaf.basic.BasicMonthViewUI.RenderingHandler
All Implemented Interfaces:
CalendarRenderingHandler
Enclosing class:
BasicMonthViewUI

protected static class BasicMonthViewUI.RenderingHandler
extends Object
implements CalendarRenderingHandler

The RenderingHandler responsible for text rendering. It provides and configures a rendering component for the given cell of a JXMonthView.


Constructor Summary
BasicMonthViewUI.RenderingHandler()
          Instantiates a RenderingHandler and installs default state.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMonthViewUI.RenderingHandler

public BasicMonthViewUI.RenderingHandler()
Instantiates a RenderingHandler and installs default state.

Method Detail

setLocale

public void setLocale(Locale locale)
Updates internal state to the given Locale.

Specified by:
setLocale in interface CalendarRenderingHandler
Parameters:
locale - the new Locale.

prepareRenderingComponent

public JComponent prepareRenderingComponent(JXMonthView monthView,
                                            Calendar calendar,
                                            CalendarState dayState)
Configures and returns a component for rendering of the given monthView cell.

Specified by:
prepareRenderingComponent in interface CalendarRenderingHandler
Parameters:
monthView - the JXMonthView to render onto
calendar - the cell value
dayState - the DayState of the cell
Returns:
a component configured for rendering the given cell