public void clear(TimelineUpdater timelineUpdater) {
        events.clear();

        if (timelineUpdater != null) {
            // update UI
            timelineUpdater.clear();
        }
    }
Clears the timeline model with UI update (no events are available after that)

@param timelineUpdater TimelineUpdater instance to clear the timeline in UI
primefaces/src/main/java/org/primefaces/model/timeline/TimelineModel.java