MDateSelector

mseries.Calendar
Interface SpecialDayModel

All Known Implementing Classes:
DefaultSpecialDayModel, TestSpecialDayModel

public interface SpecialDayModel

Classes implementing this interface define which days are treated as special in the CalendarPanel. Special days are rendered differently and might not be clickable. The method isSpecialDay(Date) governs the proceedings, if this returns true the getForground and getBackground methods will be called for the same date. isClickable will always be called to determine of the user is allowed to select the date.

See Also:
DefaultSpecialDayModel

Method Summary
 Color getBackground(Date date)
          The background for the special days.
 Color getForeground(Date date)
          The foreground for the special days.
 boolean isSpecialDay(Date date)
           
 

Method Detail

isSpecialDay

boolean isSpecialDay(Date date)

getForeground

Color getForeground(Date date)
The foreground for the special days. Return null if the foreground is to be drawn in the usual colour


getBackground

Color getBackground(Date date)
The background for the special days. Return null if the background is to be drawn in the usual colour


MDateSelector

Copyright © 2001-2007 M Newstead. All Rights Reserved.