org.rapla.components.calendar
Interface DateRenderer

All Known Implementing Classes:
DateRendererAdapter, WeekendHighlightRenderer

public interface DateRenderer

Implement this interface if you want to highlight special days or show tooltip for some days. Use DateRendererAdapter if you want to work with Date objects.


Method Summary
 Color getBackgroundColor(int dayOfWeek, int day, int month, int year)
          Specifies a special background color for the passed day.
 String getToolTipText(int dayOfWeek, int day, int month, int year)
          Specifies a tooltip text for the passed day.
 

Method Detail

getBackgroundColor

Color getBackgroundColor(int dayOfWeek,
                         int day,
                         int month,
                         int year)
Specifies a special background color for the passed day. Return null if you want to use the default color.


getToolTipText

String getToolTipText(int dayOfWeek,
                      int day,
                      int month,
                      int year)
Specifies a tooltip text for the passed day. Return null if you don't want to use a tooltip for this day.



Copyright © 2000-2006 Rapla Team. All Rights Reseserved.