19 package org.sleuthkit.autopsy.timeline.ui.detailview.tree;
21 import java.util.Comparator;
22 import javafx.scene.control.TreeItem;
29 abstract class EventTypeTreeItem
extends EventsTreeItem {
34 private final EventType eventType;
43 EventTypeTreeItem(EventType eventType, Comparator<TreeItem<TimeLineEvent>> comparator) {
45 this.eventType = eventType;
49 void sort(Comparator<TreeItem<TimeLineEvent>> comp, Boolean recursive) {
53 getChildren().stream()
54 .map(EventsTreeItem.class::cast)
55 .forEach(ti -> ti.sort(comp,
true));
60 String getDisplayText() {
61 return eventType.getDisplayName();
65 EventType getEventType() {