Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
IngestSettingsPanel.java
Go to the documentation of this file.
1 /*
2  * Central Repository
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.centralrepository.ingestmodule;
20 
23 
27 @SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
28 final class IngestSettingsPanel extends IngestModuleIngestJobSettingsPanel {
29 
33  public IngestSettingsPanel(IngestSettings settings) {
34  initComponents();
35  customizeComponents(settings);
36  }
37 
43  private void customizeComponents(IngestSettings settings) {
44  flagTaggedNotableItemsCheckbox.setSelected(settings.isFlagTaggedNotableItems());
45  }
46 
47  @Override
48  public IngestModuleIngestJobSettings getSettings() {
49  return new IngestSettings(flagTaggedNotableItemsCheckbox.isSelected());
50  }
51 
57  @SuppressWarnings("unchecked")
58  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
59  private void initComponents() {
60 
61  ingestSettingsLabel = new javax.swing.JLabel();
62  flagTaggedNotableItemsCheckbox = new javax.swing.JCheckBox();
63 
64  ingestSettingsLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
65  org.openide.awt.Mnemonics.setLocalizedText(ingestSettingsLabel, org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class, "IngestSettingsPanel.ingestSettingsLabel.text")); // NOI18N
66 
67  org.openide.awt.Mnemonics.setLocalizedText(flagTaggedNotableItemsCheckbox, org.openide.util.NbBundle.getMessage(IngestSettingsPanel.class, "IngestSettingsPanel.flagTaggedNotableItemsCheckbox.text")); // NOI18N
68 
69  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
70  this.setLayout(layout);
71  layout.setHorizontalGroup(
72  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
73  .addGroup(layout.createSequentialGroup()
74  .addContainerGap()
75  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
76  .addGroup(layout.createSequentialGroup()
77  .addGap(10, 10, 10)
78  .addComponent(flagTaggedNotableItemsCheckbox))
79  .addComponent(ingestSettingsLabel))
80  .addContainerGap(65, Short.MAX_VALUE))
81  );
82  layout.setVerticalGroup(
83  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
84  .addGroup(layout.createSequentialGroup()
85  .addContainerGap()
86  .addComponent(ingestSettingsLabel)
87  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
88  .addComponent(flagTaggedNotableItemsCheckbox)
89  .addContainerGap(245, Short.MAX_VALUE))
90  );
91  }// </editor-fold>//GEN-END:initComponents
92 
93  // Variables declaration - do not modify//GEN-BEGIN:variables
94  private javax.swing.JCheckBox flagTaggedNotableItemsCheckbox;
95  private javax.swing.JLabel ingestSettingsLabel;
96  // End of variables declaration//GEN-END:variables
97 
98 }

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