|
JDatePicker v4.3.25 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.standbysoft.component.date.AbstractDateSelectionModel
com.standbysoft.component.date.DefaultDateSelectionModel
public class DefaultDateSelectionModel
The default date selection model is the model used by all date components. In addition to the interface methods, it adds a few other ones that make it easier to manage individual invalid dates.
The term used for these dates is that of disabled dates. So, if you decide
that July 4th, 2005 should not be available for selection, specify it using the
addDisabled(Date) method.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.standbysoft.component.date.DateSelectionModel |
|---|
DateSelectionModel.SelectionMode |
| Constructor Summary | |
|---|---|
DefaultDateSelectionModel()
Creates a default date selection model with no selected dates. |
|
| Method Summary | |
|---|---|
void |
addDisabled(java.util.Date date)
Registers a date as disabled. |
boolean |
isDisabled(java.util.Date date)
Determines whether a specified date has been registered as disabled. |
void |
removeAllDisabled()
Removes all dates that have been registered as disabled. |
void |
removeDisabled(java.util.Date date)
Removes a specified date that has been registered as disabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDateSelectionModel()
| Method Detail |
|---|
public boolean isDisabled(java.util.Date date)
isDisabled in class AbstractDateSelectionModeldate - date to be tested if disabled
true if the specified date is disabled; false otherwise.public void addDisabled(java.util.Date date)
date - a specified date that will not be available for selection anymorepublic void removeDisabled(java.util.Date date)
date - the specified date is no longer disabledpublic void removeAllDisabled()
|
JDatePicker v4.3.25 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Visit www.jdatepicker.com for further information or send us your suggestions.
Copyright © 2003-2010 Elmro Ltd. All Rights Reserved.