19 package org.sleuthkit.autopsy.modules.photoreccarver;
27 @SuppressWarnings(
"PMD.SingularField")
28 final class PhotoRecCarverIngestJobSettingsPanel extends IngestModuleIngestJobSettingsPanel {
35 public PhotoRecCarverIngestJobSettingsPanel(PhotoRecCarverIngestJobSettings settings) {
37 customizeComponents(settings);
45 private void customizeComponents(PhotoRecCarverIngestJobSettings settings) {
46 keepCorruptedFilesCheckbox.setSelected(settings.isKeepCorruptedFiles());
50 public IngestModuleIngestJobSettings getSettings() {
51 return new PhotoRecCarverIngestJobSettings(
52 keepCorruptedFilesCheckbox.isSelected());
60 @SuppressWarnings(
"unchecked")
62 private
void initComponents() {
64 keepCorruptedFilesCheckbox =
new javax.swing.JCheckBox();
65 detectionSettingsLabel =
new javax.swing.JLabel();
67 org.openide.awt.Mnemonics.setLocalizedText(keepCorruptedFilesCheckbox,
org.openide.util.NbBundle.getMessage(PhotoRecCarverIngestJobSettingsPanel.class,
"PhotoRecCarverIngestJobSettingsPanel.keepCorruptedFilesCheckbox.text"));
69 detectionSettingsLabel.setFont(
new java.awt.Font(
"Tahoma", 1, 11));
70 org.openide.awt.Mnemonics.setLocalizedText(detectionSettingsLabel,
org.openide.util.NbBundle.getMessage(PhotoRecCarverIngestJobSettingsPanel.class,
"PhotoRecCarverIngestJobSettingsPanel.detectionSettingsLabel.text"));
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()
78 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
79 .addGroup(layout.createSequentialGroup()
81 .addComponent(keepCorruptedFilesCheckbox))
82 .addComponent(detectionSettingsLabel))
83 .addContainerGap(159, Short.MAX_VALUE))
85 layout.setVerticalGroup(
86 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
87 .addGroup(layout.createSequentialGroup()
89 .addComponent(detectionSettingsLabel)
90 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
91 .addComponent(keepCorruptedFilesCheckbox)
92 .addContainerGap(145, Short.MAX_VALUE))
97 private javax.swing.JLabel detectionSettingsLabel;
98 private javax.swing.JCheckBox keepCorruptedFilesCheckbox;