|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
S
- the type of the calendar entriesT
- the type of the hierarchy nodespublic interface ICalendarModel<T,S>
A calendar model definition that can be used by the Gantt chart to visualize weekends, holidays, or any other special day based on the result of an on-the-fly computation. Objects returned by the model are often not explicitly added to the model first but computed on demand instead. Implementations of this interface have to make sure that they perform well.
Method Summary | |
---|---|
void |
addCalendarListener(ICalendarModelListener l)
Adds a calendar listener to the calendar model. |
java.util.Iterator<S> |
getCalendarEntries(IDatelineModel model,
ITimeSpan span)
Returns an iterator for iterating over all calendar entries within the given time span. |
java.util.Iterator<S> |
getCalendarEntries(IDatelineModel model,
T node,
ITimeSpan span)
Returns an iterator for iterating over all calendar entries of the given node within the given time span. |
ITimeSpan |
getCalendarEntryTimeSpan(S entry)
Returns the time span allocated to a calendar entry. |
void |
removeCalendarListener(ICalendarModelListener l)
Removes the given calendar listener from the calendar model. |
Method Detail |
---|
java.util.Iterator<S> getCalendarEntries(IDatelineModel model, ITimeSpan span)
model
- the currently used dateline modelspan
- the time span for which to return calendar entries
java.util.Iterator<S> getCalendarEntries(IDatelineModel model, T node, ITimeSpan span)
getCalendarEntries(IDatelineModel, ITimeSpan)
.
model
- the currently used dateline modelnode
- the tree node / Gantt chart node for which to return calendar
entriesspan
- the time span for which to return calendar entries
ITimeSpan getCalendarEntryTimeSpan(S entry)
entry
- the entry for which to return a time span
void addCalendarListener(ICalendarModelListener l)
l
- the listener that will be added to the calendar's event
listener listvoid removeCalendarListener(ICalendarModelListener l)
l
- the listener that will be removed from the calendar's event
listener list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |