public void setGroups(List<TimelineGroup<G>> groups) {
        this.groups = groups;
    }
Sets groups into this model

@param groups List&lt;TimelineGroup&lt;G&gt;&gt; list of groups
primefaces/src/main/java/org/primefaces/model/timeline/TimelineModel.java