|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rapla.components.calendar.DateRendererAdapter
public class DateRendererAdapter
Maps the DateRenderer methods to the appropriate date method.
DateRenderer
Constructor Summary | |
---|---|
DateRendererAdapter(DateRenderer renderer,
TimeZone timeZone,
Locale locale)
use this constructor if you want to make an existing DateRenderer
listen to the methods getBackgroundColor(Date) and getToolTipText(Date). |
|
DateRendererAdapter(TimeZone timeZone,
Locale locale)
use this constructor if you want to implement a custom getBackgroundColor(Date) or getToolTipText(Date) method. |
Method Summary | |
---|---|
Color |
getBackgroundColor(Date date)
override this method for a custom background color |
Color |
getBackgroundColor(int dayOfWeek,
int day,
int month,
int year)
Specifies a special background color for the passed day. |
String |
getToolTipText(Date date)
override this method for a custom tooltip Text. |
String |
getToolTipText(int dayOfWeek,
int day,
int month,
int year)
Specifies a tooltip text for the passed day. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateRendererAdapter(TimeZone timeZone, Locale locale)
public DateRendererAdapter(DateRenderer renderer, TimeZone timeZone, Locale locale)
DateRenderer
listen to the methods getBackgroundColor(Date) and getToolTipText(Date).
Method Detail |
---|
public Color getBackgroundColor(Date date)
public String getToolTipText(Date date)
public Color getBackgroundColor(int dayOfWeek, int day, int month, int year)
DateRenderer
getBackgroundColor
in interface DateRenderer
public String getToolTipText(int dayOfWeek, int day, int month, int year)
DateRenderer
getToolTipText
in interface DateRenderer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |