|
Java Date Picker v2.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.standbysoft.datepicker.DefaultDateSelectionModel
A default implementation of a date selection model.
| Inner classes inherited from class com.standbysoft.datepicker.DateSelectionModel |
DateSelectionModel.SelectionMode |
| Constructor Summary | |
DefaultDateSelectionModel()
Creates a default selection model. |
|
| Method Summary | |
void |
addDateSelectionInterval(java.util.Date date1,
java.util.Date date2)
Change the selection to be the set union of the current date selection and the dates between date1 and date2 inclusive. |
void |
addDateSelectionListener(DateSelectionListener listener)
Registers a new date selection listener to the model. |
void |
addDisabled(java.util.Date date)
|
java.util.Date |
getAnchorSelectionDate()
Returns the anchor selection date. |
java.util.Date |
getLeadSelectionDate()
Returns the lead selection date. |
java.util.EventListener[] |
getListeners(java.lang.Class listenerType)
|
java.util.Date[] |
getSelectedDates()
Returns the selected dates. |
com.standbysoft.datepicker.SelectionMode |
getSelectionMode()
Returns the selection mode used by this model. |
boolean |
isDateSelected(java.util.Date date)
Determines whether a specified date has been selected. |
boolean |
isDisabled(java.util.Date date)
Returns false because all the days from the calendar can be selected by default. |
void |
removeAllDisabled()
|
void |
removeDateSelectionInterval(java.util.Date date1,
java.util.Date date2)
Change the selection to be the set difference of the current selection and the dates between date1 and date2 inclusive. |
void |
removeDateSelectionListener(DateSelectionListener listener)
Removes a specified date selection listener from this model. |
void |
removeDisabled(java.util.Date date)
|
void |
setAnchorSelectionDate(java.util.Date date)
Sets the anchor selection date. |
void |
setDateSelectionIterval(java.util.Date date1,
java.util.Date date2)
Changes the date selection interval to be between date1 and date2 inclusive. |
void |
setLeadSelectionDate(java.util.Date date)
Sets the lead selection date. |
void |
setSelectionMode(com.standbysoft.datepicker.SelectionMode mode)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.standbysoft.datepicker.DateSelectionModel |
setSelectionMode |
| Constructor Detail |
public DefaultDateSelectionModel()
| Method Detail |
public boolean isDisabled(java.util.Date date)
false because all the days from the calendar can be selected by default.isDisabled in interface DateSelectionModeldate - date to be tested if disabledfalse.public void addDisabled(java.util.Date date)
public void removeDisabled(java.util.Date date)
public void removeAllDisabled()
public boolean isDateSelected(java.util.Date date)
DateSelectionModelisDateSelected in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModeldate - date to be testedtrue if the date has been selected; false otherwise.public void setSelectionMode(com.standbysoft.datepicker.SelectionMode mode)
public com.standbysoft.datepicker.SelectionMode getSelectionMode()
DateSelectionModelgetSelectionMode in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModelpublic java.util.Date[] getSelectedDates()
DateSelectionModelgetSelectedDates in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModelDateSelectionModel.SelectionModepublic void setLeadSelectionDate(java.util.Date date)
DateSelectionModelsetLeadSelectionDate in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModeldate - lead date to be setDateSelectionModel.getLeadSelectionDate()public java.util.Date getLeadSelectionDate()
DateSelectionModelgetLeadSelectionDate in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModelpublic void setAnchorSelectionDate(java.util.Date date)
DateSelectionModelsetAnchorSelectionDate in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModeldate - anchor date to be setDateSelectionModel.getAnchorSelectionDate()public java.util.Date getAnchorSelectionDate()
DateSelectionModelgetAnchorSelectionDate in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModel
public void setDateSelectionIterval(java.util.Date date1,
java.util.Date date2)
DateSelectionModelDateSelectionListener. Note that date1 doesn't have to be less than or
equal to date2.setDateSelectionIterval in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModeldate1 - one end of the date intervaldate2 - other end of the date interval
public void addDateSelectionInterval(java.util.Date date1,
java.util.Date date2)
DateSelectionModelDateSelectionListener.
Note that date1 doesn't have to be less than or equal to date2.addDateSelectionInterval in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModeldate1 - one end of the date intervaldate2 - other end of the date interval
public void removeDateSelectionInterval(java.util.Date date1,
java.util.Date date2)
DateSelectionModelDateSelectionListener.
Note that date1 doesn't have to be less than or equal to date2.removeDateSelectionInterval in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModeldate1 - one end of the date intervaldate2 - other end of the date intervalpublic void addDateSelectionListener(DateSelectionListener listener)
DateSelectionModeladdDateSelectionListener in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModellistener - listener to be registeredpublic void removeDateSelectionListener(DateSelectionListener listener)
DateSelectionModelremoveDateSelectionListener in interface DateSelectionModelcom.standbysoft.datepicker.DateSelectionModellistener - listener to be removedpublic java.util.EventListener[] getListeners(java.lang.Class listenerType)
|
Java Date Picker v2.0.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||