Class ActivityRepositoryBase<A extends Activity>

    • Constructor Detail

      • ActivityRepositoryBase

        protected ActivityRepositoryBase()
        Constructs a new repository.
        Since:
        1.0
    • Method Detail

      • addEventHandler

        public void addEventHandler​(EventHandler<RepositoryEvent> l)
        Description copied from interface: ActivityRepository
        Adds an event handler for receiving repository events. A repository will fire events if its state changes (e.g. activities added / removed).
        Specified by:
        addEventHandler in interface ActivityRepository<A extends Activity>
        Parameters:
        l - the event handler that will be added to the repository
      • getEarliestTimeUsed

        public Instant getEarliestTimeUsed()
        Description copied from interface: ActivityRepository
        Returns the earliest time used by the activities stored in this repository / on this row. This method gets used for navigation (e.g. "scroll to earliest time used in the Gantt chart", "zoom out to show all activities").
        Specified by:
        getEarliestTimeUsed in interface ActivityRepository<A extends Activity>
        Returns:
        the earliest time used by the activities in this repository / row (null if no activities found)
      • getLatestTimeUsed

        public Instant getLatestTimeUsed()
        Description copied from interface: ActivityRepository
        Returns the latest time used by the activities stored in this repository / on this row. This method gets used for navigation (e.g. "scroll to latest time used in the Gantt chart", "zoom out to show all activities").
        Specified by:
        getLatestTimeUsed in interface ActivityRepository<A extends Activity>
        Returns:
        the latest time used by the activities in this repository / row (null if no activities found)