MDateSelector

mseries.Calendar
Class DefaultSpecialDayModel

java.lang.Object
  extended by mseries.Calendar.DefaultSpecialDayModel
All Implemented Interfaces:
SpecialDayModel
Direct Known Subclasses:
TestSpecialDayModel

public class DefaultSpecialDayModel
extends Object
implements SpecialDayModel


Constructor Summary
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)
          By default no dates are special
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSpecialDayModel

public DefaultSpecialDayModel()
Method Detail

isSpecialDay

public boolean isSpecialDay(Date date)
By default no dates are special

Specified by:
isSpecialDay in interface SpecialDayModel
Returns:
false

getForeground

public Color getForeground(Date date)
Description copied from interface: SpecialDayModel
The foreground for the special days. Return null if the foreground is to be drawn in the usual colour

Specified by:
getForeground in interface SpecialDayModel

getBackground

public Color getBackground(Date date)
Description copied from interface: SpecialDayModel
The background for the special days. Return null if the background is to be drawn in the usual colour

Specified by:
getBackground in interface SpecialDayModel

MDateSelector

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