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

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.