Klasse ActivityRepositoryBase<A extends Activity>

java.lang.Object
com.flexganttfx.model.repository.ActivityRepositoryBase<A>
Typparameter:
A - the type of the activities stored in this repository
Alle implementierten Schnittstellen:
ActivityRepository<A>, EventTarget
Bekannte direkte Unterklassen:
CalendarBase, MutableActivityRepositoryBase

public abstract class ActivityRepositoryBase<A extends Activity> extends Object implements ActivityRepository<A>
An abstract base implementation of ActivityRepository that provides support for event handlers (adding, removing, firing events).
Seit:
1.0
  • Konstruktordetails

    • ActivityRepositoryBase

      protected ActivityRepositoryBase()
      Constructs a new repository.
      Seit:
      1.0
  • Methodendetails

    • addEventHandler

      public void addEventHandler(EventHandler<RepositoryEvent> l)
      Beschreibung aus Schnittstelle kopiert: ActivityRepository
      Adds an event handler for receiving repository events. A repository will fire events if its state changes (e.g. activities added / removed).
      Angegeben von:
      addEventHandler in Schnittstelle ActivityRepository<A extends Activity>
      Parameter:
      l - the event handler that will be added to the repository
    • removeEventHandler

      public void removeEventHandler(EventHandler<RepositoryEvent> l)
      Beschreibung aus Schnittstelle kopiert: ActivityRepository
      Removes the given event handler from the repository.
      Angegeben von:
      removeEventHandler in Schnittstelle ActivityRepository<A extends Activity>
      Parameter:
      l - the event handler that will be removed from the repository
    • getEarliestTimeUsed

      public Instant getEarliestTimeUsed()
      Beschreibung aus Schnittstelle kopiert: 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").
      Angegeben von:
      getEarliestTimeUsed in Schnittstelle ActivityRepository<A extends Activity>
      Gibt zurück:
      the earliest time used by the activities in this repository / row (null if no activities found)
    • getLatestTimeUsed

      public Instant getLatestTimeUsed()
      Beschreibung aus Schnittstelle kopiert: 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").
      Angegeben von:
      getLatestTimeUsed in Schnittstelle ActivityRepository<A extends Activity>
      Gibt zurück:
      the latest time used by the activities in this repository / row (null if no activities found)
    • buildEventDispatchChain

      public EventDispatchChain buildEventDispatchChain(EventDispatchChain tail)
      Angegeben von:
      buildEventDispatchChain in Schnittstelle EventTarget
    • fireEvent

      protected void fireEvent(RepositoryEvent evt)