|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.model.DefaultCalendarSelectionModel
public class DefaultCalendarSelectionModel
A generic implementation of CalendarSelectionModel.
| Field Summary | |
|---|---|
protected EventListenerList |
listenerList
|
| Constructor Summary | |
|---|---|
DefaultCalendarSelectionModel(java.util.Calendar cal)
The creates a CalendarSelectionModel where selectedDate to set to cal and displayedDate is set to the first day of
the month of cal. |
|
| Method Summary | |
|---|---|
void |
addListener(CalendarSelectionListener l)
Adds a ChangeListener to the model. |
java.util.Calendar |
getDisplayedDate()
|
java.util.Calendar |
getSelectedDate()
|
void |
removeListener(CalendarSelectionListener l)
Removes a CalendarSelectionListener from the model. |
void |
setDates(java.util.Calendar newSelectedDate,
java.util.Calendar newDisplayedDate)
This is the equivalent of calling setSelectedDate and setDisplayedDate except it only raises change events after the both have been set. |
void |
setDisplayedDate(java.util.Calendar cal)
Sets the model's displayed date to cal . |
void |
setSelectedDate(java.util.Calendar cal)
Sets the model's selected date to cal . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EventListenerList listenerList
| Constructor Detail |
|---|
public DefaultCalendarSelectionModel(java.util.Calendar cal)
cal and displayedDate is set to the first day of
the month of cal.
cal - -
the Calendar to use.| Method Detail |
|---|
public void addListener(CalendarSelectionListener l)
ChangeListener to the model.
addListener in interface CalendarSelectionModell - The ChangeListener to be added.public java.util.Calendar getDisplayedDate()
getDisplayedDate in interface CalendarSelectionModelpublic java.util.Calendar getSelectedDate()
getSelectedDate in interface CalendarSelectionModelpublic void removeListener(CalendarSelectionListener l)
CalendarSelectionListener from the model.
removeListener in interface CalendarSelectionModell - The CalendarSelectionListener to be removed.public void setDisplayedDate(java.util.Calendar cal)
setDisplayedDate in interface CalendarSelectionModelpublic void setSelectedDate(java.util.Calendar cal)
setSelectedDate in interface CalendarSelectionModel
public void setDates(java.util.Calendar newSelectedDate,
java.util.Calendar newDisplayedDate)
CalendarSelectionModel
setDates in interface CalendarSelectionModelCalendarSelectionModel.setDates(java.util.Calendar,
java.util.Calendar)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||