com.toedter.calendar.demo
Class BirthdayEvaluator
java.lang.Object
com.toedter.calendar.demo.BirthdayEvaluator
- All Implemented Interfaces:
- IDateEvaluator
public class BirthdayEvaluator
- extends java.lang.Object
- implements IDateEvaluator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BirthdayEvaluator
public BirthdayEvaluator()
isSpecial
public boolean isSpecial(java.util.Date date)
- Description copied from interface:
IDateEvaluator
- Checks if a date is a special date (might have different colors and tooltips)
- Specified by:
isSpecial
in interface IDateEvaluator
- Parameters:
date
- the date to check
- Returns:
- true, if the date can be selected
getSpecialForegroundColor
public java.awt.Color getSpecialForegroundColor()
- Specified by:
getSpecialForegroundColor
in interface IDateEvaluator
- Returns:
- the foreground color (used by JDayChooser)
getSpecialBackroundColor
public java.awt.Color getSpecialBackroundColor()
- Specified by:
getSpecialBackroundColor
in interface IDateEvaluator
- Returns:
- the background color (used by JDayChooser)
getSpecialTooltip
public java.lang.String getSpecialTooltip()
- Specified by:
getSpecialTooltip
in interface IDateEvaluator
- Returns:
- the tooltip (used by JDayChooser)
isInvalid
public boolean isInvalid(java.util.Date date)
- Description copied from interface:
IDateEvaluator
- Checks if a date is invalid for selection
- Specified by:
isInvalid
in interface IDateEvaluator
- Parameters:
date
- the date to check
- Returns:
- true, if the date is invalid and cannot be selected
getInvalidForegroundColor
public java.awt.Color getInvalidForegroundColor()
- Specified by:
getInvalidForegroundColor
in interface IDateEvaluator
- Returns:
- the foreground color (used by JDayChooser)
getInvalidBackroundColor
public java.awt.Color getInvalidBackroundColor()
- Specified by:
getInvalidBackroundColor
in interface IDateEvaluator
- Returns:
- the background color (used by JDayChooser)
getInvalidTooltip
public java.lang.String getInvalidTooltip()
- Specified by:
getInvalidTooltip
in interface IDateEvaluator
- Returns:
- the tooltip (used by JDayChooser)
Copyright © 1999 - 2011 Kai Toedter.