com.jp.comp.calendar
Interface CalendarDateListener
- All Superinterfaces:
- java.util.EventListener
- public interface CalendarDateListener
- extends java.util.EventListener
Calendar Date listener interface for receiving Calendar Date change events.
The class that is interested in processing a Calendar Date event implements this interface,
and the object created with that class is registered with a Calendar, using its
addCalendarDateListener method. When the action event
occurs, that object's aboutToChangeDate method is invoked.
This listener is usfull if there is a need to veto the new date and change it to a desired one.
Could be used to disable weekend days selection
|
Method Summary |
boolean |
aboutToChangeDate(CalendarInterface aSource,
java.util.Date aOldDate,
java.util.Date aNewDate)
Invoked by the CalendarPanel before a new date is finally set to the Calendar. |
aboutToChangeDate
public boolean aboutToChangeDate(CalendarInterface aSource,
java.util.Date aOldDate,
java.util.Date aNewDate)
- Invoked by the
CalendarPanel before a new date is finally set to the Calendar.
The new date MUST be set to the aSource by its methos setDate.
If the new date is set to the source this method MUST return true, otherwise
false
- Parameters:
aSource - the source of the eventaOldDate - old DateaNewDate - a new Date
- Returns:
true if the date is set