|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectechopoint.model.DefaultCalendarSelectionModel
public class DefaultCalendarSelectionModel
A generic implementation of CalendarSelectionModel.
Field Summary | |
---|---|
protected ChangeEvent |
changeEvent
Only one ChangeEvent is needed per model instance since the event's only (read-only) state is the source property. |
protected EventListenerList |
listenerList
|
Constructor Summary | |
---|---|
DefaultCalendarSelectionModel(java.util.Calendar cal)
Initializes selectedDate to cal |
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener to the button. |
void |
fireStateChanged()
Notifies all listeners that have registered for this event type. |
java.util.Calendar |
getDisplayedDate()
|
java.util.Calendar |
getSelectedDate()
|
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button. |
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 transient ChangeEvent changeEvent
protected EventListenerList listenerList
Constructor Detail |
---|
public DefaultCalendarSelectionModel(java.util.Calendar cal)
cal
Method Detail |
---|
public void addChangeListener(ChangeListener l)
ChangeListener
to the button.
addChangeListener
in interface CalendarSelectionModel
l
- The ChangeListener
to be added.public void fireStateChanged()
public java.util.Calendar getDisplayedDate()
getDisplayedDate
in interface CalendarSelectionModel
public java.util.Calendar getSelectedDate()
getSelectedDate
in interface CalendarSelectionModel
public void removeChangeListener(ChangeListener l)
ChangeListener
from the button.
removeChangeListener
in interface CalendarSelectionModel
l
- The ChangeListener
to be removed.public void setDisplayedDate(java.util.Calendar cal)
setDisplayedDate
in interface CalendarSelectionModel
public void setSelectedDate(java.util.Calendar cal)
setSelectedDate
in interface CalendarSelectionModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |