01: /*--------------------------------------------------------------------------*
02: | Copyright (C) 2006 Christopher Kohlhaas |
03: | |
04: | This program is free software; you can redistribute it and/or modify |
05: | it under the terms of the GNU General Public License as published by the |
06: | Free Software Foundation. A copy of the license has been included with |
07: | these distribution in the COPYING file, if not go to www.fsf.org |
08: | |
09: | As a special exception, you are granted the permissions to link this |
10: | program with every library, which license fulfills the Open Source |
11: | Definition as published by the Open Source Initiative (OSI). |
12: *--------------------------------------------------------------------------*/
13:
14: package org.rapla.components.calendar;
15:
16: import java.awt.Color;
17:
18: /** Implement this interface if you want to highlight special days or
19: show tooltip for some days. Use {@link DateRendererAdapter} if you
20: want to work with Date objects.
21: */
22: public interface DateRenderer {
23: /** Specifies a special background color for the passed day.
24: Return null if you want to use the default color.*/
25: public Color getBackgroundColor(int dayOfWeek, int day, int month,
26: int year);
27:
28: /** Specifies a tooltip text for the passed day.
29: Return null if you don't want to use a tooltip for this day.*/
30: public String getToolTipText(int dayOfWeek, int day, int month,
31: int year);
32: }
|