com.toedter.calendar
Interface IDateEvaluator

All Known Implementing Classes:
BirthdayEvaluator, MinMaxDateEvaluator, TestDateEvaluator

public interface IDateEvaluator

Implementations of this interface can be added to various JCalendar components to check if certain dates are valid for selection.

Version:
$LastChangedRevision: 142 $, $LastChangedDate: 2011-06-05 07:06:03 +0200 (So, 05 Jun 2011) $
Author:
Kai Toedter

Method Summary
 java.awt.Color getInvalidBackroundColor()
           
 java.awt.Color getInvalidForegroundColor()
           
 java.lang.String getInvalidTooltip()
           
 java.awt.Color getSpecialBackroundColor()
           
 java.awt.Color getSpecialForegroundColor()
           
 java.lang.String getSpecialTooltip()
           
 boolean isInvalid(java.util.Date date)
          Checks if a date is invalid for selection
 boolean isSpecial(java.util.Date date)
          Checks if a date is a special date (might have different colors and tooltips)
 

Method Detail

isSpecial

boolean isSpecial(java.util.Date date)
Checks if a date is a special date (might have different colors and tooltips)

Parameters:
date - the date to check
Returns:
true, if the date can be selected

getSpecialForegroundColor

java.awt.Color getSpecialForegroundColor()
Returns:
the foreground color (used by JDayChooser)

getSpecialBackroundColor

java.awt.Color getSpecialBackroundColor()
Returns:
the background color (used by JDayChooser)

getSpecialTooltip

java.lang.String getSpecialTooltip()
Returns:
the tooltip (used by JDayChooser)

isInvalid

boolean isInvalid(java.util.Date date)
Checks if a date is invalid for selection

Parameters:
date - the date to check
Returns:
true, if the date is invalid and cannot be selected

getInvalidForegroundColor

java.awt.Color getInvalidForegroundColor()
Returns:
the foreground color (used by JDayChooser)

getInvalidBackroundColor

java.awt.Color getInvalidBackroundColor()
Returns:
the background color (used by JDayChooser)

getInvalidTooltip

java.lang.String getInvalidTooltip()
Returns:
the tooltip (used by JDayChooser)


Copyright © 1999 - 2011 Kai Toedter.