ilog.views.util.swing.calendar.event
Class CalendarModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.views.util.swing.calendar.event.CalendarModelEvent
All Implemented Interfaces:
Serializable

public class CalendarModelEvent
extends EventObject

A CalendarModelEvent is fired by an IlvCalendarModel when its calendar has been changed.

Since:
JViews 5.5
See Also:
IlvCalendarModel.addCalendarModelListener(ilog.views.util.swing.calendar.event.CalendarModelListener), CalendarModelListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CalendarModelEvent(IlvCalendarModel source, Calendar oldValue, Calendar newValue)
          Creates a new CalendarModelEvent generated by the specified calendar model.
 
Method Summary
 Calendar getNewCalendar()
          Returns the new calendar value.
 Calendar getOldCalendar()
          Returns the old calendar value.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarModelEvent

public CalendarModelEvent(IlvCalendarModel source,
                          Calendar oldValue,
                          Calendar newValue)
Creates a new CalendarModelEvent generated by the specified calendar model. Note that Calendar objects are mutable values, and the event does not copy or clone its arguments. Therefore, you should pass already cloned or temporary calendar values as the arguments to this constructor.

Parameters:
source - The calendar model that generated the event.
oldValue - The previous calendar value.
newValue - The new calendar value.
Method Detail

getOldCalendar

public final Calendar getOldCalendar()
Returns the old calendar value.


getNewCalendar

public final Calendar getNewCalendar()
Returns the new calendar value.



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