A
- the type of activities stored in the repositorypublic interface ActivityRepository<A extends Activity> extends EventTarget
IntervalTreeActivityRepository
. This default
repository can be replaced with a custom one, for example if your application
requires a lazy loading strategy.Row.setRepository(ActivityRepository)
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(EventHandler<RepositoryEvent> handler)
Adds an event handler for receiving repository events.
|
Iterator<A> |
getActivities(Layer layer,
Instant startTime,
Instant endTime,
TemporalUnit temporalUnit,
ZoneId zoneId)
Returns an iterator for iterating over all activities found for the given
layer and time interval.
|
Instant |
getEarliestTimeUsed()
Returns the earliest time used by the activities stored in this
repository / on this row.
|
Instant |
getLatestTimeUsed()
Returns the latest time used by the activities stored in this repository
/ on this row.
|
void |
removeEventHandler(EventHandler<RepositoryEvent> handler)
Removes the given event handler from the repository.
|
buildEventDispatchChain
Iterator<A> getActivities(Layer layer, Instant startTime, Instant endTime, TemporalUnit temporalUnit, ZoneId zoneId)
layer
- the layer for which to return the activitiesstartTime
- the start time of the time interval for which to return the
activitiesendTime
- the end time of the time interval for which to return the
activitiestemporalUnit
- the temporal unit currently displayed in the datelinezoneId
- the timezone currently displayed in the datelineInstant getEarliestTimeUsed()
Instant getLatestTimeUsed()
void addEventHandler(EventHandler<RepositoryEvent> handler)
handler
- the event handler that will be added to the repositoryvoid removeEventHandler(EventHandler<RepositoryEvent> handler)
handler
- the event handler that will be removed from the repositoryCopyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.