19package org.sleuthkit.autopsy.filesearch;
21import java.awt.event.ActionEvent;
22import java.awt.event.ActionListener;
23import org.openide.util.NbBundle;
24import org.openide.windows.WindowManager;
29@SuppressWarnings(
"PMD.SingularField")
30final class FileSearchDialog extends javax.swing.JDialog {
32 private static final long serialVersionUID = 1L;
38 super(WindowManager.getDefault().getMainWindow(),
39 NbBundle.getMessage(FileSearchDialog.class,
"FileSearchDialog.frame.msg"),
true);
43 this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
44 fileSearchPanel1.addListenerToAll(
new ActionListener() {
46 public void actionPerformed(ActionEvent e) {
51 fileSearchPanel1.addCloseListener(
new ActionListener() {
53 public void actionPerformed(ActionEvent e) {
64 void setSelectedDataSourceFilter(
long dataSourceId) {
65 fileSearchPanel1.setDataSourceFilter(dataSourceId);
72 void resetCaseDependentFilters() {
73 fileSearchPanel1.resetCaseDependentFilters();
81 @SuppressWarnings(
"unchecked")
83 private
void initComponents() {
85 fileSearchPanel1 =
new org.sleuthkit.autopsy.filesearch.FileSearchPanel();
87 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
89 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(getContentPane());
90 getContentPane().setLayout(layout);
91 layout.setHorizontalGroup(
92 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
93 .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)
95 layout.setVerticalGroup(
96 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
97 .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
104 private org.sleuthkit.autopsy.filesearch.FileSearchPanel fileSearchPanel1;