Module com.flexganttfx.model
Package com.flexganttfx.model.repository
Interface MutableActivityRepository<A extends Activity>
- Type Parameters:
A
- the activity type
- All Superinterfaces:
ActivityRepository<A>
,EventTarget
- All Known Implementing Classes:
IntervalTreeActivityRepository
,ListActivityRepository
,MutableActivityRepositoryBase
public interface MutableActivityRepository<A extends Activity> extends ActivityRepository<A>
The required interface for a repository that is also mutable (activities
can be added and removed).
- Since:
- 1.0
-
Method Summary
Modifier and Type Method Description void
addActivity(ActivityRef<A> activity)
Adds the given activity to the repository.void
clearActivities()
Removes all activities from all layers from the repository.void
clearActivities(Layer layer)
Removes the activities on the given layer from the repository.void
removeActivity(ActivityRef<A> activity)
Removes the given activity from the repository.Methods inherited from interface com.flexganttfx.model.ActivityRepository
addEventHandler, getActivities, getEarliestTimeUsed, getLatestTimeUsed, removeEventHandler
Methods inherited from interface javafx.event.EventTarget
buildEventDispatchChain
-
Method Details
-
addActivity
Adds the given activity to the repository.- Parameters:
activity
- the activity- Since:
- 1.0
-
removeActivity
Removes the given activity from the repository.- Parameters:
activity
- the activity- Since:
- 1.0
-
clearActivities
void clearActivities()Removes all activities from all layers from the repository.- Since:
- 1.0
-
clearActivities
Removes the activities on the given layer from the repository.- Parameters:
layer
- the layer to clear- Since:
- 1.0
-