A
- the type of the activities stored in this repositorypublic abstract class ActivityRepositoryBase<A extends Activity> extends Object implements ActivityRepository<A>
ActivityRepository
that provides support
for event handlers (adding, removing, firing events).Modifier | Constructor and Description |
---|---|
protected |
ActivityRepositoryBase()
Constructs a new repository.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(javafx.event.EventHandler<RepositoryEvent> l)
Adds an event handler for receiving repository events.
|
javafx.event.EventDispatchChain |
buildEventDispatchChain(javafx.event.EventDispatchChain tail) |
protected void |
fireEvent(RepositoryEvent evt) |
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(javafx.event.EventHandler<RepositoryEvent> l)
Removes the given event handler from the repository.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActivities
protected ActivityRepositoryBase()
public void addEventHandler(javafx.event.EventHandler<RepositoryEvent> l)
ActivityRepository
addEventHandler
in interface ActivityRepository<A extends Activity>
l
- the event handler that will be added to the repositorypublic void removeEventHandler(javafx.event.EventHandler<RepositoryEvent> l)
ActivityRepository
removeEventHandler
in interface ActivityRepository<A extends Activity>
l
- the event handler that will be removed from the repositorypublic Instant getEarliestTimeUsed()
ActivityRepository
getEarliestTimeUsed
in interface ActivityRepository<A extends Activity>
public Instant getLatestTimeUsed()
ActivityRepository
getLatestTimeUsed
in interface ActivityRepository<A extends Activity>
public javafx.event.EventDispatchChain buildEventDispatchChain(javafx.event.EventDispatchChain tail)
buildEventDispatchChain
in interface javafx.event.EventTarget
protected void fireEvent(RepositoryEvent evt)
Copyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.