public void add ( TimelineEvent event , TimelineUpdater timelineUpdater ) { events . add ( event ) ; if ( timelineUpdater != null ) { // update UI timelineUpdater . add ( event ) ; } }
Adds a given event to the model with UI update .