net.sf.nachocalendar.components
Interface DayRenderer

All Known Implementing Classes:
DefaultDayRenderer, HolidayDecorator, HoliDayRenderer, TaskDecorator, TaskQuantityRenderer, TaskRenderer

public interface DayRenderer

Interface that must be implemented by classes used to render Days.

Author:
Ignacio Merani

Method Summary
 java.awt.Component getDayRenderer(DayPanel daypanel, java.util.Date day, java.lang.Object data, boolean selected, boolean working, boolean enabled)
          Returns a component configured to render the Day.
 

Method Detail

getDayRenderer

public java.awt.Component getDayRenderer(DayPanel daypanel,
                                         java.util.Date day,
                                         java.lang.Object data,
                                         boolean selected,
                                         boolean working,
                                         boolean enabled)
Returns a component configured to render the Day.

Parameters:
daypanel - Daypanel to be renderer
day - current day
data - current data
selected - true if it's selected
working - true if it's a working day
enabled - true if it's enabled
Returns:
component to be used