public class MinMaxDateEvaluator extends Object implements IDateEvaluator
Constructor and Description |
---|
MinMaxDateEvaluator() |
Modifier and Type | Method and Description |
---|---|
Color |
getInvalidBackroundColor() |
Color |
getInvalidForegroundColor() |
String |
getInvalidTooltip() |
Date |
getMaxSelectableDate()
Gets the maximum selectable date.
|
Date |
getMinSelectableDate()
Gets the minimum selectable date.
|
Color |
getSpecialBackroundColor() |
Color |
getSpecialForegroundColor() |
String |
getSpecialTooltip() |
boolean |
isInvalid(Date date)
Checks if a date is invalid for selection
|
boolean |
isSpecial(Date date)
Checks if a date is a special date (might have different colors and tooltips)
|
Date |
setMaxSelectableDate(Date max)
Sets the maximum selectable date.
|
Date |
setMinSelectableDate(Date min)
Sets the minimum selectable date.
|
public boolean isSpecial(Date date)
IDateEvaluator
isSpecial
in interface IDateEvaluator
date
- the date to checkpublic Color getSpecialForegroundColor()
getSpecialForegroundColor
in interface IDateEvaluator
public Color getSpecialBackroundColor()
getSpecialBackroundColor
in interface IDateEvaluator
public String getSpecialTooltip()
getSpecialTooltip
in interface IDateEvaluator
public boolean isInvalid(Date date)
IDateEvaluator
isInvalid
in interface IDateEvaluator
date
- the date to checkpublic Color getInvalidForegroundColor()
getInvalidForegroundColor
in interface IDateEvaluator
public Color getInvalidBackroundColor()
getInvalidBackroundColor
in interface IDateEvaluator
public String getInvalidTooltip()
getInvalidTooltip
in interface IDateEvaluator
public Date setMaxSelectableDate(Date max)
max
- the maximum selectable datepublic Date setMinSelectableDate(Date min)
min
- the minimum selectable datepublic Date getMaxSelectableDate()
public Date getMinSelectableDate()
Copyright © 2018. All rights reserved.