|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimeBarRow
Model for a single row of intervals. When implementing the interface care should be taken to think about a performant implementation of the by-date-selecting mehtods for interval retrieval.
Method Summary | |
---|---|
void |
addTimeBarRowListener(TimeBarRowListener tbrl)
Register a TimeBarRowListener for listening to changes in the row. |
java.util.List<de.jaret.util.date.Interval> |
getIntervals()
Provide the full ordered list of intervals. |
java.util.List<de.jaret.util.date.Interval> |
getIntervals(de.jaret.util.date.JaretDate date)
Returns all intervals containing the given date. |
java.util.List<de.jaret.util.date.Interval> |
getIntervals(de.jaret.util.date.JaretDate beginDate,
de.jaret.util.date.JaretDate endDate)
Provide the intervals in beetween a given interval. |
de.jaret.util.date.JaretDate |
getMaxDate()
Return the ending date of the latest interval in the row. |
de.jaret.util.date.JaretDate |
getMinDate()
Return the beginning date of the earliest interval in the row. |
TimeBarRowHeader |
getRowHeader()
Return the row header. |
void |
remTimeBarRowListener(TimeBarRowListener tbrl)
Remove a previously added TimeBarRowListener. |
Method Detail |
---|
java.util.List<de.jaret.util.date.Interval> getIntervals()
java.util.List<de.jaret.util.date.Interval> getIntervals(de.jaret.util.date.JaretDate beginDate, de.jaret.util.date.JaretDate endDate)
beginDate
- first dateendDate
- last date
java.util.List<de.jaret.util.date.Interval> getIntervals(de.jaret.util.date.JaretDate date)
date
- the date to be included in the intervals
TimeBarRowHeader getRowHeader()
de.jaret.util.date.JaretDate getMinDate()
null
if it contains
no intervals. If a row supplies a min date it must always supply a max value.
null
if the row contains no intervals.de.jaret.util.date.JaretDate getMaxDate()
null
if it contains no
intervals. If a row supplies a max date it must always supply a min date.
null
if the row contains no intervals.void addTimeBarRowListener(TimeBarRowListener tbrl)
TimeBarRowListener
for listening to changes in the row.
tbrl
- TimeBarRowListener to be addedvoid remTimeBarRowListener(TimeBarRowListener tbrl)
tbrl
- TimeBarRowListener to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |