19 package org.sleuthkit.autopsy.modules.fileextmismatch;
28 final class FileExtMismatchModuleSettingsPanel
extends IngestModuleIngestJobSettingsPanel {
30 private final FileExtMismatchDetectorModuleSettings settings;
32 FileExtMismatchModuleSettingsPanel(FileExtMismatchDetectorModuleSettings settings) {
33 this.settings = settings;
35 customizeComponents();
38 private void customizeComponents() {
39 skipNoExtCheckBox.setSelected(settings.skipFilesWithNoExtension());
40 skipTextPlain.setSelected(settings.skipFilesWithTextPlainMimeType());
44 public IngestModuleIngestJobSettings getSettings() {
53 @SuppressWarnings(
"unchecked")
55 private
void initComponents() {
57 skipNoExtCheckBox =
new javax.swing.JCheckBox();
58 skipTextPlain =
new javax.swing.JCheckBox();
60 skipNoExtCheckBox.setSelected(
true);
61 skipNoExtCheckBox.setText(
org.openide.util.NbBundle.getMessage(FileExtMismatchModuleSettingsPanel.class,
"FileExtMismatchModuleSettingsPanel.skipNoExtCheckBox.text"));
62 skipNoExtCheckBox.addActionListener(
new java.awt.event.ActionListener() {
63 public void actionPerformed(java.awt.event.ActionEvent evt) {
64 skipNoExtCheckBoxActionPerformed(evt);
68 skipTextPlain.setText(
org.openide.util.NbBundle.getMessage(FileExtMismatchModuleSettingsPanel.class,
"FileExtMismatchModuleSettingsPanel.skipTextPlain.text"));
69 skipTextPlain.setSelected(
true);
70 skipTextPlain.addActionListener(
new java.awt.event.ActionListener() {
71 public void actionPerformed(java.awt.event.ActionEvent evt) {
72 skipTextPlainActionPerformed(evt);
76 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
77 this.setLayout(layout);
78 layout.setHorizontalGroup(
79 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
80 .addGroup(layout.createSequentialGroup()
82 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
83 .addComponent(skipTextPlain)
84 .addComponent(skipNoExtCheckBox))
85 .addGap(0, 138, Short.MAX_VALUE))
87 layout.setVerticalGroup(
88 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
89 .addGroup(layout.createSequentialGroup()
90 .addComponent(skipNoExtCheckBox)
91 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
92 .addComponent(skipTextPlain)
93 .addContainerGap(51, Short.MAX_VALUE))
97 private void skipNoExtCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {
98 settings.setSkipFilesWithNoExtension(skipNoExtCheckBox.isSelected());
101 private void skipTextPlainActionPerformed(java.awt.event.ActionEvent evt) {
102 settings.setSkipFilesWithTextPlainMimeType(skipTextPlain.isSelected());
106 private javax.swing.JCheckBox skipNoExtCheckBox;
107 private javax.swing.JCheckBox skipTextPlain;