public void select(TimelineEvent<E> event, TimelineUpdater timelineUpdater) {
        if (timelineUpdater != null) {
            // update UI
            timelineUpdater.select(event != null ? event.getId() : null);
        }
    }
Selects a given event in UI visually. To unselect all events, pass a null as event.

@param event           event to be selected
@param timelineUpdater TimelineUpdater instance to select the event in UI
primefaces/src/main/java/org/primefaces/model/timeline/TimelineModel.java