19 package org.sleuthkit.autopsy.filesearch;
21 import java.awt.event.ActionEvent;
22 import java.awt.event.ActionListener;
23 import org.openide.util.NbBundle;
24 import org.openide.windows.WindowManager;
29 @SuppressWarnings(
"PMD.SingularField")
30 final 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() {
47 public void actionPerformed(ActionEvent e) {
58 void setSelectedDataSourceFilter(
long dataSourceId) {
59 fileSearchPanel1.setDataSourceFilter(dataSourceId);
66 void resetCaseDependentFilters() {
67 fileSearchPanel1.resetCaseDependentFilters();
75 @SuppressWarnings(
"unchecked")
77 private
void initComponents() {
81 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
83 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(getContentPane());
84 getContentPane().setLayout(layout);
85 layout.setHorizontalGroup(
86 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
87 .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)
89 layout.setVerticalGroup(
90 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
91 .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)