com.dlsc.flexgantt.model.calendar
Class CalendarModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.dlsc.flexgantt.model.calendar.CalendarModelEvent
All Implemented Interfaces:
java.io.Serializable

public class CalendarModelEvent
extends java.util.EventObject

An event object used in combination with the ICalendarModelListener interface. The event object stores the source of the event.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CalendarModelEvent(ICalendarModel model)
          Constructs a new calendar model event.
 
Method Summary
 ICalendarModel getCalendarModel()
          Returns the source of the event.
 
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(ICalendarModel model)
Constructs a new calendar model event.

Parameters:
model - the calendar model where a change occured
Since:
1.0
Method Detail

getCalendarModel

public ICalendarModel getCalendarModel()
Returns the source of the event. This is a convenience method that delegates to EventObject.getSource().

Returns:
the calendar model source of the event
Since:
1.0