Autopsy  4.6.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 final class PhotoRecCarverIngestJobSettingsPanel extends IngestModuleIngestJobSettingsPanel {
28 
34  public PhotoRecCarverIngestJobSettingsPanel(PhotoRecCarverIngestJobSettings settings) {
35  initComponents();
36  customizeComponents(settings);
37  }
38 
44  private void customizeComponents(PhotoRecCarverIngestJobSettings settings) {
45  keepCorruptedFilesCheckbox.setSelected(settings.isKeepCorruptedFiles());
46  }
47 
48  @Override
49  public IngestModuleIngestJobSettings getSettings() {
50  return new PhotoRecCarverIngestJobSettings(
51  keepCorruptedFilesCheckbox.isSelected());
52  }
53 
59  @SuppressWarnings("unchecked")
60  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
61  private void initComponents() {
62 
63  keepCorruptedFilesCheckbox = new javax.swing.JCheckBox();
64  detectionSettingsLabel = new javax.swing.JLabel();
65 
66  org.openide.awt.Mnemonics.setLocalizedText(keepCorruptedFilesCheckbox, org.openide.util.NbBundle.getMessage(PhotoRecCarverIngestJobSettingsPanel.class, "PhotoRecCarverIngestJobSettingsPanel.keepCorruptedFilesCheckbox.text")); // NOI18N
67 
68  detectionSettingsLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
69  org.openide.awt.Mnemonics.setLocalizedText(detectionSettingsLabel, org.openide.util.NbBundle.getMessage(PhotoRecCarverIngestJobSettingsPanel.class, "PhotoRecCarverIngestJobSettingsPanel.detectionSettingsLabel.text")); // NOI18N
70 
71  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
72  this.setLayout(layout);
73  layout.setHorizontalGroup(
74  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
75  .addGroup(layout.createSequentialGroup()
76  .addContainerGap()
77  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
78  .addGroup(layout.createSequentialGroup()
79  .addGap(10, 10, 10)
80  .addComponent(keepCorruptedFilesCheckbox))
81  .addComponent(detectionSettingsLabel))
82  .addContainerGap(159, Short.MAX_VALUE))
83  );
84  layout.setVerticalGroup(
85  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
86  .addGroup(layout.createSequentialGroup()
87  .addContainerGap()
88  .addComponent(detectionSettingsLabel)
89  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
90  .addComponent(keepCorruptedFilesCheckbox)
91  .addContainerGap(145, Short.MAX_VALUE))
92  );
93  }// </editor-fold>//GEN-END:initComponents
94 
95  // Variables declaration - do not modify//GEN-BEGIN:variables
96  private javax.swing.JLabel detectionSettingsLabel;
97  private javax.swing.JCheckBox keepCorruptedFilesCheckbox;
98  // End of variables declaration//GEN-END:variables
99 }

Copyright © 2012-2016 Basis Technology. Generated on: Mon May 7 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.