|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DateFrame
This interface defines methods that are and/or will be useful for frames that represent dates and timestamps. Such frames can contain both date ranges and lists of non-contiguous dates.
Method Summary | |
---|---|
void |
addDate(java.util.Calendar c)
Adds a single date to the DateFrame. |
void |
addDate(java.util.Date d)
Adds a single date to the DateFrame. |
void |
addDateRange(java.util.Calendar begin,
java.util.Calendar end)
Adds a single range of dates to the DateFrame. |
void |
clearDate()
Clears all the dates from the DateFrame. |
java.util.Calendar |
getDate()
Get the first date for this frame. |
java.util.Enumeration |
getDates()
Get all dates for this frame. |
boolean |
isSet()
Whether this DateFrame has valid data. |
void |
setDate(java.util.Calendar c)
Sets the DateFrame to a single date. |
void |
setDate(java.util.Date d)
Sets the DateFrame to a single date. |
void |
setDateRange(java.util.Calendar begin,
java.util.Calendar end)
Sets the DateFrame to a single date. |
Method Detail |
---|
void clearDate()
boolean isSet()
void addDate(java.util.Calendar c)
c
- the date to add to the DateFrame.void addDate(java.util.Date d)
d
- the date to add to the DateFrame.void addDateRange(java.util.Calendar begin, java.util.Calendar end)
begin
- the starting date of the range of dates.end
- the ending date of the range of dates.void setDate(java.util.Calendar c)
clearDate()
followed by
addDate()
.
c
- the date to set the DateFrame to.void setDate(java.util.Date d)
clearDate()
followed by
addDate()
.
d
- the date to set the DateFrame to.void setDateRange(java.util.Calendar begin, java.util.Calendar end)
clearDate()
followed by
addDate()
.
begin
- the starting date of the range of dates.end
- the ending date of the range of dates.java.util.Calendar getDate()
java.util.Enumeration getDates()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |