接口 IDateEvaluator

  • 所有已知实现类:
    MinMaxDateEvaluator

    public interface IDateEvaluator
    Implementations of this interface can be added to various JCalendar components to check if certain dates are valid for selection.
    版本:
    $LastChangedRevision: 142 $, $LastChangedDate: 2011-06-05 07:06:03 +0200 (So, 05 Jun 2011) $
    作者:
    Kai Toedter
    • 方法详细资料

      • isSpecial

        boolean isSpecial​(java.util.Date date)
        Checks if a date is a special date (might have different colors and tooltips)
        参数:
        date - the date to check
        返回:
        true, if the date can be selected
      • getSpecialForegroundColor

        java.awt.Color getSpecialForegroundColor()
        返回:
        the foreground color (used by JDayChooser)
      • getSpecialBackroundColor

        java.awt.Color getSpecialBackroundColor()
        返回:
        the background color (used by JDayChooser)
      • getSpecialTooltip

        java.lang.String getSpecialTooltip()
        返回:
        the tooltip (used by JDayChooser)
      • isInvalid

        boolean isInvalid​(java.util.Date date)
        Checks if a date is invalid for selection
        参数:
        date - the date to check
        返回:
        true, if the date is invalid and cannot be selected
      • getInvalidForegroundColor

        java.awt.Color getInvalidForegroundColor()
        返回:
        the foreground color (used by JDayChooser)
      • getInvalidBackroundColor

        java.awt.Color getInvalidBackroundColor()
        返回:
        the background color (used by JDayChooser)
      • getInvalidTooltip

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