19 package org.sleuthkit.autopsy.discovery.ui;
22 import java.awt.event.ActionListener;
23 import java.util.List;
24 import javax.swing.JCheckBox;
25 import javax.swing.JLabel;
26 import javax.swing.event.ListSelectionListener;
32 abstract class AbstractDiscoveryFilterPanel
extends javax.swing.JPanel {
34 private static final long serialVersionUID = 1L;
45 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
46 abstract
void configurePanel(
boolean selected, List<?> selectedItems);
53 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
54 abstract JCheckBox getCheckbox();
61 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
62 abstract
void addListSelectionListener(ListSelectionListener listener);
70 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
71 abstract JLabel getAdditionalLabel();
79 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
80 abstract String checkForError();
89 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
90 void addListeners(ActionListener actionListener, ListSelectionListener listListener) {
91 if (getCheckbox() != null) {
92 getCheckbox().addActionListener(actionListener);
94 if (hasPanel() ==
true) {
95 addListSelectionListener(listListener);
105 @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
106 abstract AbstractFilter getFilter();
111 abstract
boolean isFilterSupported();