com.jp.comp.calendar
Interface CalendarDayRenderer
- All Known Implementing Classes:
- DefaultCalendarDayRenderer
- public interface CalendarDayRenderer
Calendar Day Renderer is an interface to be implemented to draw each Calendar's day in a particular way,
changing its attributies like color, font style and etc. A particular instance of this interface is
assigned to the Calendar by the method CalendarInterface.setCalendarDayRenderer(com.jp.comp.calendar.CalendarDayRenderer)
.
By default each Calendar has its own Calendar Day Renderer and can be reassigned
- See Also:
CalendarInterface
,
CalendarPanel
,
MonthCalendarPanel
,
MultipleMonthCalendarPanel
,
DateField
getRendererComponent
public java.awt.Component getRendererComponent(CalendarPanel aCalendarPanel,
CalendarItem aCalendarItem,
boolean anIsSelected,
boolean aHasFocus)
- Invoked by the
CalendarPanel
for each day of the month
- Parameters:
aCalendarPanel
- the instance of the CalendarPanel
aCalendarItem
- current CalendarItem
anIsSelected
- whether the day is selectedaHasFocus
- whether the day is focused
- Returns:
Component