|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.data.dateChooser.DateUtil
public class DateUtil
A utility class for some date operations.
Field Summary | |
---|---|
protected Date |
defaultMaxSelectableDate
|
protected Date |
defaultMinSelectableDate
|
protected Date |
maxSelectableDate
|
protected Date |
minSelectableDate
|
Constructor Summary | |
---|---|
DateUtil()
|
Method Summary | |
---|---|
boolean |
checkDate(Date date)
Checks a given date if it is in the formally specified date range. |
Date |
getMaxSelectableDate()
Gets the maximum selectable date. |
Date |
getMinSelectableDate()
Gets the minimum selectable date. |
Date |
setMaxSelectableDate(Date max)
Sets the maximum selectable date. |
Date |
setMinSelectableDate(Date min)
Sets the minimum selectable date. |
void |
setSelectableDateRange(Date min,
Date max)
Sets a valid date range for selectable dates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Date minSelectableDate
protected Date maxSelectableDate
protected Date defaultMinSelectableDate
protected Date defaultMaxSelectableDate
Constructor Detail |
---|
public DateUtil()
Method Detail |
---|
public void setSelectableDateRange(Date min, Date max)
min
- the minimum selectable date or null (then the minimum date is
set to 01\01\0001)max
- the maximum selectable date or null (then the maximum date is
set to 01\01\9999)public Date setMaxSelectableDate(Date max)
max
- the maximum selectable date
public Date setMinSelectableDate(Date min)
min
- the minimum selectable date
public Date getMaxSelectableDate()
public Date getMinSelectableDate()
public boolean checkDate(Date date)
date
- the date to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |