|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DateSelectionModel
Nested Class Summary | |
---|---|
static class |
DateSelectionModel.SelectionMode
|
Method Summary | |
---|---|
void |
addDateSelectionListener(DateSelectionListener listener)
Add the specified listener to this model |
void |
addSelectionInterval(Date startDate,
Date endDate)
Add the specified selection interval to the selection model |
void |
clearSelection()
Clear any selection from the selection model |
int |
getFirstDayOfWeek()
Gets what the first day of the week is; e.g., Calendar.SUNDAY in the U.S., Calendar.MONDAY
in France. |
Date |
getLowerBound()
Return the lower bound date that is allowed to be selected for this model |
SortedSet<Date> |
getSelection()
Get the current selection |
DateSelectionModel.SelectionMode |
getSelectionMode()
Get the selection mode |
SortedSet<Date> |
getUnselectableDates()
Returns a SortedSet of Dates that are unselectable |
Date |
getUpperBound()
Return the upper bound date that is allowed to be selected for this model |
boolean |
isSelected(Date date)
Return true if the date specified is selected, false otherwise |
boolean |
isSelectionEmpty()
Return true if the selection is empty, false otherwise |
boolean |
isUnselectableDate(Date unselectableDate)
Return true is the specified date is unselectable |
void |
removeDateSelectionListener(DateSelectionListener listener)
Remove the specified listener to this model |
void |
removeSelectionInterval(Date startDate,
Date endDate)
Remove the specifed selection interval from the selection model |
void |
setFirstDayOfWeek(int firstDayOfWeek)
Sets what the first day of the week is; e.g., Calendar.SUNDAY in US, Calendar.MONDAY
in France. |
void |
setLowerBound(Date lowerBound)
Set the lower bound date that is allowed to be selected for this model |
void |
setSelectionInterval(Date startDate,
Date endDate)
Set the specified selection interval to the selection model |
void |
setSelectionMode(DateSelectionModel.SelectionMode mode)
Set the selection mode |
void |
setUnselectableDates(SortedSet<Date> unselectableDates)
Set which dates are unable to be selected |
void |
setUpperBound(Date upperBound)
Set the upper bound date that is allowed to be selected for this model |
Method Detail |
---|
DateSelectionModel.SelectionMode getSelectionMode()
void setSelectionMode(DateSelectionModel.SelectionMode mode)
mode
- new selection modeint getFirstDayOfWeek()
Calendar.SUNDAY
in the U.S., Calendar.MONDAY
in France.
This is needed when the model selection mode is WEEK_INTERVAL_SELECTION
.
The default value is Calendar.SUNDAY
void setFirstDayOfWeek(int firstDayOfWeek)
Calendar.SUNDAY
in US, Calendar.MONDAY
in France.
firstDayOfWeek
- The first day of the week.Calendar
void addSelectionInterval(Date startDate, Date endDate)
startDate
- interval start dateendDate
- interval end datevoid setSelectionInterval(Date startDate, Date endDate)
startDate
- interval start dateendDate
- interval end datevoid removeSelectionInterval(Date startDate, Date endDate)
startDate
- interval start dateendDate
- interval end datevoid clearSelection()
SortedSet<Date> getSelection()
boolean isSelected(Date date)
date
- date to check for selection
boolean isSelectionEmpty()
void addDateSelectionListener(DateSelectionListener listener)
listener
- listener to add to this modelvoid removeDateSelectionListener(DateSelectionListener listener)
listener
- listener to remove from this modelSortedSet<Date> getUnselectableDates()
SortedSet
of Dates that are unselectable
- Returns:
- sorted set of dates
void setUnselectableDates(SortedSet<Date> unselectableDates)
unselectableDates
- dates that are unselectableboolean isUnselectableDate(Date unselectableDate)
unselectableDate
- the date to check for unselectability
Date getUpperBound()
void setUpperBound(Date upperBound)
upperBound
- upper boundDate getLowerBound()
void setLowerBound(Date lowerBound)
lowerBound
- lower bound date or null if not set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |