com.jp.comp.calendar
Interface CalendarListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
CalendarDecorationPanel, CalendarPanel, DateField

public interface CalendarListener
extends java.util.EventListener

Date changed listener interface for receiving Calendar's events. The class that is interested in processing a Calendar event implements this interface, and the object created with that class is registered with a Calendar, using its addCalendarListener method. When an action event occurs, that object's particular method is invoked


Method Summary
 void dateChanged(CalendarEvent anEvent)
          Invoked by the Calendar when date is changed
 void dateSelected(CalendarEvent anEvent)
          Invoked by the Calendar when date is selected in the Calendar by mouse double click or when Enter is presssed
 void localeChanged(CalendarInterface aSource, java.util.Locale aLocale, java.util.Date aDate)
          Invoked by the Calendar when locale is changed
 

Method Detail

dateChanged

public void dateChanged(CalendarEvent anEvent)
Invoked by the Calendar when date is changed

Parameters:
anEvent - the CalendarEvent

dateSelected

public void dateSelected(CalendarEvent anEvent)
Invoked by the Calendar when date is selected in the Calendar by mouse double click or when Enter is presssed

Parameters:
anEvent - the CalendarEvent

localeChanged

public void localeChanged(CalendarInterface aSource,
                          java.util.Locale aLocale,
                          java.util.Date aDate)
Invoked by the Calendar when locale is changed

Parameters:
aSource - the source of the event
aLocale - the new Locale
aDate - the current Date