类 MinMaxDateEvaluator
- java.lang.Object
-
- org.meteoinfo.ui.calendar.MinMaxDateEvaluator
-
- 所有已实现的接口:
IDateEvaluator
public class MinMaxDateEvaluator extends java.lang.Object implements IDateEvaluator
-
-
构造器概要
构造器 构造器 说明 MinMaxDateEvaluator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.awt.ColorgetInvalidBackroundColor()java.awt.ColorgetInvalidForegroundColor()java.lang.StringgetInvalidTooltip()java.util.DategetMaxSelectableDate()Gets the maximum selectable date.java.util.DategetMinSelectableDate()Gets the minimum selectable date.java.awt.ColorgetSpecialBackroundColor()java.awt.ColorgetSpecialForegroundColor()java.lang.StringgetSpecialTooltip()booleanisInvalid(java.util.Date date)Checks if a date is invalid for selectionbooleanisSpecial(java.util.Date date)Checks if a date is a special date (might have different colors and tooltips)java.util.DatesetMaxSelectableDate(java.util.Date max)Sets the maximum selectable date.java.util.DatesetMinSelectableDate(java.util.Date min)Sets the minimum selectable date.
-
-
-
方法详细资料
-
isSpecial
public boolean isSpecial(java.util.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 java.awt.Color getSpecialForegroundColor()
- 指定者:
getSpecialForegroundColor在接口中IDateEvaluator- 返回:
- the foreground color (used by JDayChooser)
-
getSpecialBackroundColor
public java.awt.Color getSpecialBackroundColor()
- 指定者:
getSpecialBackroundColor在接口中IDateEvaluator- 返回:
- the background color (used by JDayChooser)
-
getSpecialTooltip
public java.lang.String getSpecialTooltip()
- 指定者:
getSpecialTooltip在接口中IDateEvaluator- 返回:
- the tooltip (used by JDayChooser)
-
isInvalid
public boolean isInvalid(java.util.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 java.awt.Color getInvalidForegroundColor()
- 指定者:
getInvalidForegroundColor在接口中IDateEvaluator- 返回:
- the foreground color (used by JDayChooser)
-
getInvalidBackroundColor
public java.awt.Color getInvalidBackroundColor()
- 指定者:
getInvalidBackroundColor在接口中IDateEvaluator- 返回:
- the background color (used by JDayChooser)
-
getInvalidTooltip
public java.lang.String getInvalidTooltip()
- 指定者:
getInvalidTooltip在接口中IDateEvaluator- 返回:
- the tooltip (used by JDayChooser)
-
setMaxSelectableDate
public java.util.Date setMaxSelectableDate(java.util.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 java.util.Date setMinSelectableDate(java.util.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 java.util.Date getMaxSelectableDate()
Gets the maximum selectable date.- 返回:
- the maximum selectable date
-
getMinSelectableDate
public java.util.Date getMinSelectableDate()
Gets the minimum selectable date.- 返回:
- the minimum selectable date
-
-