|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rapla.components.calendar.WeekendHighlightRenderer
public class WeekendHighlightRenderer
Renders the weekdays (or any other day of week, if selected) in a special color.
Constructor Summary | |
---|---|
WeekendHighlightRenderer()
|
Method Summary | |
---|---|
Color |
getBackgroundColor(int dayOfWeek,
int day,
int month,
int year)
returns the value of #WEEKEND_BACKGROUND if day is set for highlight (default is saturday and sunday) and null if not. |
String |
getToolTipText(int dayOfWeek,
int day,
int month,
int year)
returns null |
boolean |
isHighlighted(int day)
|
void |
setHighlight(int day,
boolean highlight)
enable/disable the highlighting for the selected day. |
void |
setWeekendBackgroundColor(Color color)
Default color is #e2f3ff |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WeekendHighlightRenderer()
Method Detail |
---|
public void setWeekendBackgroundColor(Color color)
public void setHighlight(int day, boolean highlight)
public boolean isHighlighted(int day)
public Color getBackgroundColor(int dayOfWeek, int day, int month, int year)
getBackgroundColor
in interface DateRenderer
public String getToolTipText(int dayOfWeek, int day, int month, int year)
getToolTipText
in interface DateRenderer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |