Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
FileTypeIdIngestJobSettingsPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2013 - 2014 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.modules.filetypeid;
20 
23 
28 class FileTypeIdIngestJobSettingsPanel extends IngestModuleIngestJobSettingsPanel {
29 
30  private final FileTypeIdModuleSettings settings;
31 
32  FileTypeIdIngestJobSettingsPanel(FileTypeIdModuleSettings settings) {
33  this.settings = settings;
34  initComponents();
35  customizeComponents();
36  }
37 
41  @Override
42  public IngestModuleIngestJobSettings getSettings() {
43  return settings;
44  }
45 
50  private void customizeComponents() {
51  skipKnownCheckBox.setSelected(settings.skipKnownFiles());
52  }
53 
59  @SuppressWarnings("unchecked")
60  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
61  private void initComponents() {
62 
63  skipKnownCheckBox = new javax.swing.JCheckBox();
64 
65  skipKnownCheckBox.setSelected(true);
66  skipKnownCheckBox.setText(org.openide.util.NbBundle.getMessage(FileTypeIdIngestJobSettingsPanel.class, "FileTypeIdIngestJobSettingsPanel.skipKnownCheckBox.text")); // NOI18N
67  skipKnownCheckBox.setToolTipText(org.openide.util.NbBundle.getMessage(FileTypeIdIngestJobSettingsPanel.class, "FileTypeIdIngestJobSettingsPanel.skipKnownCheckBox.toolTipText")); // NOI18N
68  skipKnownCheckBox.addActionListener(new java.awt.event.ActionListener() {
69  public void actionPerformed(java.awt.event.ActionEvent evt) {
70  skipKnownCheckBoxActionPerformed(evt);
71  }
72  });
73 
74  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
75  this.setLayout(layout);
76  layout.setHorizontalGroup(
77  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
78  .addGroup(layout.createSequentialGroup()
79  .addGap(10, 10, 10)
80  .addComponent(skipKnownCheckBox)
81  .addContainerGap(46, Short.MAX_VALUE))
82  );
83  layout.setVerticalGroup(
84  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
85  .addGroup(layout.createSequentialGroup()
86  .addGap(11, 11, 11)
87  .addComponent(skipKnownCheckBox)
88  .addContainerGap(86, Short.MAX_VALUE))
89  );
90  }// </editor-fold>//GEN-END:initComponents
91 
92  private void skipKnownCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_skipKnownCheckBoxActionPerformed
93  settings.setSkipKnownFiles(skipKnownCheckBox.isSelected());
94  }//GEN-LAST:event_skipKnownCheckBoxActionPerformed
95 
96  // Variables declaration - do not modify//GEN-BEGIN:variables
97  private javax.swing.JCheckBox skipKnownCheckBox;
98  // End of variables declaration//GEN-END:variables
99 }

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.