ilog.views.util.swing.calendar
Class IlvAbstractCalendarModel

java.lang.Object
  extended by ilog.views.util.swing.calendar.IlvAbstractCalendarModel
All Implemented Interfaces:
IlvCalendarModel, Serializable
Direct Known Subclasses:
IlvDefaultCalendarModel

public abstract class IlvAbstractCalendarModel
extends Object
implements IlvCalendarModel, Serializable

IlvAbstractCalendarModel is the superclass of all IlvCalendarModel implementations. It provides a basic framework of event support that can be used by all concrete subclasses.

Since:
JViews 5.5
See Also:
Serialized Form

Constructor Summary
IlvAbstractCalendarModel()
          Creates a new IlvAbstractCalendarModel.
 
Method Summary
 void addCalendarModelListener(CalendarModelListener l)
          Adds a listener to the list that is notified each time a change to the calendar occurs.
protected  void fireCalendarChanged(Calendar oldValue, Calendar newValue)
          Fires a calendar changed event to all subscribed listeners.
 void removeCalendarModelListener(CalendarModelListener l)
          Removes a listener from the list that is notified each time a change to the calendar occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.views.util.swing.calendar.IlvCalendarModel
getCalendar, setCalendar
 

Constructor Detail

IlvAbstractCalendarModel

public IlvAbstractCalendarModel()
Creates a new IlvAbstractCalendarModel.

Method Detail

addCalendarModelListener

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

Specified by:
addCalendarModelListener in interface IlvCalendarModel
Parameters:
l - The CalendarModelListener.

removeCalendarModelListener

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

Specified by:
removeCalendarModelListener in interface IlvCalendarModel
Parameters:
l - The CalendarModelListener.

fireCalendarChanged

protected void fireCalendarChanged(Calendar oldValue,
                                   Calendar newValue)
Fires a calendar changed event to all subscribed listeners. Note that Calendar objects are mutable values and this method does not copy or clone its arguments. Therefore, you should pass already cloned or temporary calendar values as the arguments to this method.

Parameters:
oldValue - The previous calendar value.
newValue - The new calendar value.


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