com.dlsc.flexgantt.model.calendar
Class AbstractEntryCalendarModel<T,S extends ICalendarEntry>

java.lang.Object
  extended by com.dlsc.flexgantt.model.calendar.AbstractCalendarModel<T,S>
      extended by com.dlsc.flexgantt.model.calendar.AbstractEntryCalendarModel<T,S>
Type Parameters:
S - the type of the calendar entries
T - the type of the hiearchy nodes
All Implemented Interfaces:
ICalendarModel<T,S>
Direct Known Subclasses:
TimeGranularityCalendarModel

public abstract class AbstractEntryCalendarModel<T,S extends ICalendarEntry>
extends AbstractCalendarModel<T,S>

An abstract implementation of the calendar model specialized on using calendar entries, which implement the ICalendarEntry interface.

Since:
1.0
Author:
Dirk Lemmermann

Constructor Summary
AbstractEntryCalendarModel()
           
 
Method Summary
 ITimeSpan getCalendarEntryTimeSpan(S entry)
          Returns the time span allocated to a calendar entry.
 
Methods inherited from class com.dlsc.flexgantt.model.calendar.AbstractCalendarModel
addCalendarListener, fireCalendarModelChanged, removeCalendarListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.dlsc.flexgantt.model.calendar.ICalendarModel
getCalendarEntries, getCalendarEntries
 

Constructor Detail

AbstractEntryCalendarModel

public AbstractEntryCalendarModel()
Method Detail

getCalendarEntryTimeSpan

public ITimeSpan getCalendarEntryTimeSpan(S entry)
Description copied from interface: ICalendarModel
Returns the time span allocated to a calendar entry.

Parameters:
entry - the entry for which to return a time span
Returns:
the calendar entry's time span allocation