Autopsy  4.11.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
PhotoRecCarverIngestJobSettingsPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2018 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  */
19 package org.sleuthkit.autopsy.modules.photoreccarver;
20 
23 
27 @SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
28 final class PhotoRecCarverIngestJobSettingsPanel extends IngestModuleIngestJobSettingsPanel {
29 
35  public PhotoRecCarverIngestJobSettingsPanel(PhotoRecCarverIngestJobSettings settings) {
36  initComponents();
37  customizeComponents(settings);
38  }
39 
45  private void customizeComponents(PhotoRecCarverIngestJobSettings settings) {
46  keepCorruptedFilesCheckbox.setSelected(settings.isKeepCorruptedFiles());
47  }
48 
49  @Override
50  public IngestModuleIngestJobSettings getSettings() {
51  return new PhotoRecCarverIngestJobSettings(
52  keepCorruptedFilesCheckbox.isSelected());
53  }
54 
60  @SuppressWarnings("unchecked")
61  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
62  private void initComponents() {
63 
64  keepCorruptedFilesCheckbox = new javax.swing.JCheckBox();
65  detectionSettingsLabel = new javax.swing.JLabel();
66 
67  org.openide.awt.Mnemonics.setLocalizedText(keepCorruptedFilesCheckbox, org.openide.util.NbBundle.getMessage(PhotoRecCarverIngestJobSettingsPanel.class, "PhotoRecCarverIngestJobSettingsPanel.keepCorruptedFilesCheckbox.text")); // NOI18N
68 
69  detectionSettingsLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
70  org.openide.awt.Mnemonics.setLocalizedText(detectionSettingsLabel, org.openide.util.NbBundle.getMessage(PhotoRecCarverIngestJobSettingsPanel.class, "PhotoRecCarverIngestJobSettingsPanel.detectionSettingsLabel.text")); // NOI18N
71 
72  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
73  this.setLayout(layout);
74  layout.setHorizontalGroup(
75  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
76  .addGroup(layout.createSequentialGroup()
77  .addContainerGap()
78  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
79  .addGroup(layout.createSequentialGroup()
80  .addGap(10, 10, 10)
81  .addComponent(keepCorruptedFilesCheckbox))
82  .addComponent(detectionSettingsLabel))
83  .addContainerGap(159, Short.MAX_VALUE))
84  );
85  layout.setVerticalGroup(
86  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
87  .addGroup(layout.createSequentialGroup()
88  .addContainerGap()
89  .addComponent(detectionSettingsLabel)
90  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
91  .addComponent(keepCorruptedFilesCheckbox)
92  .addContainerGap(145, Short.MAX_VALUE))
93  );
94  }// </editor-fold>//GEN-END:initComponents
95 
96  // Variables declaration - do not modify//GEN-BEGIN:variables
97  private javax.swing.JLabel detectionSettingsLabel;
98  private javax.swing.JCheckBox keepCorruptedFilesCheckbox;
99  // End of variables declaration//GEN-END:variables
100 }

Copyright © 2012-2018 Basis Technology. Generated on: Fri Jun 21 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.