ilog.views.util.swing.calendar
Interface IlvCalendarModel

All Known Implementing Classes:
IlvAbstractCalendarModel, IlvDefaultCalendarModel

public interface IlvCalendarModel

IlvCalendarModel defines the data model displayed by the IlvJCalendarPanel, the IlvJMonthScroller, and the IlvJCalendar components.

Since:
JViews 5.5

Method Summary
 void addCalendarModelListener(CalendarModelListener l)
          Adds a listener to the list that is notified each time a change to the calendar occurs.
 Calendar getCalendar()
          Returns the current calendar value of the model.
 void removeCalendarModelListener(CalendarModelListener l)
          Removes a listener from the list that is notified each time a change to the calendar occurs.
 void setCalendar(Calendar calendar)
          Sets the current calendar value of the model.
 

Method Detail

getCalendar

Calendar getCalendar()
Returns the current calendar value of the model. Because Calendar objects are mutable, the implementation of this method should return a copy of the model's internal calendar value.

Returns:
The current calendar value of the model.
See Also:
setCalendar(java.util.Calendar)

setCalendar

void setCalendar(Calendar calendar)
Sets the current calendar value of the model. Because Calendar objects are mutable, the implementation of this method should internally store a copy of the calendar argument.

Parameters:
calendar - The new calendar value.
See Also:
getCalendar()

addCalendarModelListener

void addCalendarModelListener(CalendarModelListener l)
Adds a listener to the list that is notified each time a change to the calendar occurs.

Parameters:
l - The CalendarModelListener.

removeCalendarModelListener

void removeCalendarModelListener(CalendarModelListener l)
Removes a listener from the list that is notified each time a change to the calendar occurs.

Parameters:
l - The CalendarModelListener.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.