Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
FileSearchDialog.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2011-2021 Basis Technology Corp.
5 * Contact: carrier <at> sleuthkit <dot> org
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19package org.sleuthkit.autopsy.filesearch;
20
21import java.awt.event.ActionEvent;
22import java.awt.event.ActionListener;
23import org.openide.util.NbBundle;
24import org.openide.windows.WindowManager;
25
29@SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
30final class FileSearchDialog extends javax.swing.JDialog {
31
32 private static final long serialVersionUID = 1L;
33
37 FileSearchDialog() {
38 super(WindowManager.getDefault().getMainWindow(),
39 NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.frame.msg"), true);
40 initComponents();
41
42 setResizable(false);
43 this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
44 fileSearchPanel1.addListenerToAll(new ActionListener() {
45 @Override
46 public void actionPerformed(ActionEvent e) {
47 setVisible(false);
48 }
49 });
50
51 fileSearchPanel1.addCloseListener(new ActionListener() {
52 @Override
53 public void actionPerformed(ActionEvent e) {
54 dispose();
55 }
56 });
57 }
58
64 void setSelectedDataSourceFilter(long dataSourceId) {
65 fileSearchPanel1.setDataSourceFilter(dataSourceId);
66 }
67
72 void resetCaseDependentFilters() {
73 fileSearchPanel1.resetCaseDependentFilters();
74 }
75
81 @SuppressWarnings("unchecked")
82 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
83 private void initComponents() {
84
85 fileSearchPanel1 = new org.sleuthkit.autopsy.filesearch.FileSearchPanel();
86
87 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
88
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)
94 );
95 layout.setVerticalGroup(
96 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
97 .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
98 );
99
100 pack();
101 }// </editor-fold>//GEN-END:initComponents
102
103 // Variables declaration - do not modify//GEN-BEGIN:variables
104 private org.sleuthkit.autopsy.filesearch.FileSearchPanel fileSearchPanel1;
105 // End of variables declaration//GEN-END:variables
106}

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.