类 MinMaxDateEvaluator
- java.lang.Object
-
- org.meteoinfo.ui.calendar.MinMaxDateEvaluator
-
- 所有已实现的接口:
IDateEvaluator
public class MinMaxDateEvaluator extends Object implements IDateEvaluator
-
-
构造器概要
构造器 构造器 说明 MinMaxDateEvaluator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ColorgetInvalidBackroundColor()ColorgetInvalidForegroundColor()StringgetInvalidTooltip()DategetMaxSelectableDate()Gets the maximum selectable date.DategetMinSelectableDate()Gets the minimum selectable date.ColorgetSpecialBackroundColor()ColorgetSpecialForegroundColor()StringgetSpecialTooltip()booleanisInvalid(Date date)Checks if a date is invalid for selectionbooleanisSpecial(Date date)Checks if a date is a special date (might have different colors and tooltips)DatesetMaxSelectableDate(Date max)Sets the maximum selectable date.DatesetMinSelectableDate(Date min)Sets the minimum selectable date.
-
-
-
方法详细资料
-
isSpecial
public boolean isSpecial(Date date)
从接口复制的说明:IDateEvaluatorChecks if a date is a special date (might have different colors and tooltips)- 指定者:
isSpecial在接口中IDateEvaluator- 参数:
date- the date to check- 返回:
- true, if the date can be selected
-
getSpecialForegroundColor
public Color getSpecialForegroundColor()
- 指定者:
getSpecialForegroundColor在接口中IDateEvaluator- 返回:
- the foreground color (used by JDayChooser)
-
getSpecialBackroundColor
public Color getSpecialBackroundColor()
- 指定者:
getSpecialBackroundColor在接口中IDateEvaluator- 返回:
- the background color (used by JDayChooser)
-
getSpecialTooltip
public String getSpecialTooltip()
- 指定者:
getSpecialTooltip在接口中IDateEvaluator- 返回:
- the tooltip (used by JDayChooser)
-
isInvalid
public boolean isInvalid(Date date)
从接口复制的说明:IDateEvaluatorChecks if a date is invalid for selection- 指定者:
isInvalid在接口中IDateEvaluator- 参数:
date- the date to check- 返回:
- true, if the date is invalid and cannot be selected
-
getInvalidForegroundColor
public Color getInvalidForegroundColor()
- 指定者:
getInvalidForegroundColor在接口中IDateEvaluator- 返回:
- the foreground color (used by JDayChooser)
-
getInvalidBackroundColor
public Color getInvalidBackroundColor()
- 指定者:
getInvalidBackroundColor在接口中IDateEvaluator- 返回:
- the background color (used by JDayChooser)
-
getInvalidTooltip
public String getInvalidTooltip()
- 指定者:
getInvalidTooltip在接口中IDateEvaluator- 返回:
- the tooltip (used by JDayChooser)
-
setMaxSelectableDate
public Date setMaxSelectableDate(Date max)
Sets the maximum selectable date. If null, the date 01\01\9999 will be set instead.- 参数:
max- the maximum selectable date- 返回:
- the maximum selectable date
-
setMinSelectableDate
public Date setMinSelectableDate(Date min)
Sets the minimum selectable date. If null, the date 01\01\0001 will be set instead.- 参数:
min- the minimum selectable date- 返回:
- the minimum selectable date
-
getMaxSelectableDate
public Date getMaxSelectableDate()
Gets the maximum selectable date.- 返回:
- the maximum selectable date
-
getMinSelectableDate
public Date getMinSelectableDate()
Gets the minimum selectable date.- 返回:
- the minimum selectable date
-
-