19 package org.sleuthkit.autopsy.modules.dataSourceIntegrity;
27 @SuppressWarnings(
"PMD.SingularField")
28 final class DataSourceIntegrityIngestSettingsPanel extends IngestModuleIngestJobSettingsPanel {
33 public DataSourceIntegrityIngestSettingsPanel(DataSourceIntegrityIngestSettings settings) {
35 customizeComponents(settings);
43 private void customizeComponents(DataSourceIntegrityIngestSettings settings) {
44 computeHashesCheckbox.setSelected(settings.shouldComputeHashes());
45 verifyHashesCheckbox.setSelected(settings.shouldVerifyHashes());
49 public IngestModuleIngestJobSettings getSettings() {
50 return new DataSourceIntegrityIngestSettings(computeHashesCheckbox.isSelected(), verifyHashesCheckbox.isSelected());
58 @SuppressWarnings(
"unchecked")
60 private
void initComponents() {
62 computeHashesCheckbox =
new javax.swing.JCheckBox();
63 verifyHashesCheckbox =
new javax.swing.JCheckBox();
64 jLabel3 =
new javax.swing.JLabel();
65 jLabel1 =
new javax.swing.JLabel();
67 org.openide.awt.Mnemonics.setLocalizedText(computeHashesCheckbox,
org.openide.util.NbBundle.getMessage(DataSourceIntegrityIngestSettingsPanel.class,
"DataSourceIntegrityIngestSettingsPanel.computeHashesCheckbox.text"));
68 computeHashesCheckbox.addActionListener(
new java.awt.event.ActionListener() {
69 public void actionPerformed(java.awt.event.ActionEvent evt) {
70 computeHashesCheckboxActionPerformed(evt);
74 org.openide.awt.Mnemonics.setLocalizedText(verifyHashesCheckbox,
org.openide.util.NbBundle.getMessage(DataSourceIntegrityIngestSettingsPanel.class,
"DataSourceIntegrityIngestSettingsPanel.verifyHashesCheckbox.text"));
76 jLabel3.setFont(
new java.awt.Font(
"Tahoma", 1, 11));
77 org.openide.awt.Mnemonics.setLocalizedText(jLabel3,
org.openide.util.NbBundle.getMessage(DataSourceIntegrityIngestSettingsPanel.class,
"DataSourceIntegrityIngestSettingsPanel.jLabel3.text"));
79 org.openide.awt.Mnemonics.setLocalizedText(jLabel1,
org.openide.util.NbBundle.getMessage(DataSourceIntegrityIngestSettingsPanel.class,
"DataSourceIntegrityIngestSettingsPanel.jLabel1.text"));
81 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
82 this.setLayout(layout);
83 layout.setHorizontalGroup(
84 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
85 .addGroup(layout.createSequentialGroup()
87 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
88 .addComponent(jLabel1)
89 .addComponent(verifyHashesCheckbox)
90 .addComponent(computeHashesCheckbox)
91 .addComponent(jLabel3))
92 .addContainerGap(47, Short.MAX_VALUE))
94 layout.setVerticalGroup(
95 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
96 .addGroup(layout.createSequentialGroup()
98 .addComponent(jLabel3)
99 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
100 .addComponent(computeHashesCheckbox)
101 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
102 .addComponent(verifyHashesCheckbox)
103 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
104 .addComponent(jLabel1)
105 .addContainerGap(53, Short.MAX_VALUE))
109 private void computeHashesCheckboxActionPerformed(java.awt.event.ActionEvent evt) {
114 private javax.swing.JCheckBox computeHashesCheckbox;
115 private javax.swing.JLabel jLabel1;
116 private javax.swing.JLabel jLabel3;
117 private javax.swing.JCheckBox verifyHashesCheckbox;