19 package org.sleuthkit.autopsy.filequery;
21 import java.util.ArrayList;
22 import java.util.List;
23 import javax.swing.DefaultListModel;
24 import javax.swing.event.ListSelectionListener;
34 private final DefaultListModel<VideoThumbnailsWrapper>
thumbnailListModel =
new DefaultListModel<>();
48 void addListSelectionListener(ListSelectionListener listener) {
49 thumbnailList.getSelectionModel().addListSelectionListener(listener);
59 List<AbstractFile> getInstancesForSelected() {
62 return new ArrayList<>();
64 return thumbnailListModel.getElementAt(
thumbnailList.getSelectedIndex()).getResultFile().getAllInstances();
74 thumbnailListModel.removeAllElements();
85 void addVideo(VideoThumbnailsWrapper thumbnailWrapper) {
87 thumbnailListModel.addElement(thumbnailWrapper);
96 @SuppressWarnings(
"unchecked")
103 setLayout(
new java.awt.BorderLayout());
106 thumbnailList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
javax.swing.JScrollPane thumbnailListScrollPane
javax.swing.JList< VideoThumbnailsWrapper > thumbnailList
static final long serialVersionUID
final DefaultListModel< VideoThumbnailsWrapper > thumbnailListModel