Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
SampleIngestModuleIngestJobSettingsPanel.java
Go to the documentation of this file.
1 /*
2  * Sample module ingest job settings panel in the public domain.
3  * Feel free to use this as a template for your module ingest job settings
4  * panels.
5  *
6  * Contact: Brian Carrier [carrier <at> sleuthkit [dot] org]
7  *
8  * This is free and unencumbered software released into the public domain.
9  *
10  * Anyone is free to copy, modify, publish, use, compile, sell, or
11  * distribute this software, either in source code form or as a compiled
12  * binary, for any purpose, commercial or non-commercial, and by any
13  * means.
14  *
15  * In jurisdictions that recognize copyright laws, the author or authors
16  * of this software dedicate any and all copyright interest in the
17  * software to the public domain. We make this dedication for the benefit
18  * of the public at large and to the detriment of our heirs and
19  * successors. We intend this dedication to be an overt act of
20  * relinquishment in perpetuity of all present and future rights to this
21  * software under copyright law.
22  *
23  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
26  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
27  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29  * OTHER DEALINGS IN THE SOFTWARE.
30  */
31 package org.sleuthkit.autopsy.examples;
32 
35 
39 @SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
41 
46  initComponents();
47  customizeComponents(settings);
48  }
49 
51  skipKnownFilesCheckBox.setSelected(settings.skipKnownFiles());
52  }
53 
59  @Override
61  return new SampleModuleIngestJobSettings(skipKnownFilesCheckBox.isSelected());
62  }
63 
69  @SuppressWarnings("unchecked")
70  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
71  private void initComponents() {
72 
73  skipKnownFilesCheckBox = new javax.swing.JCheckBox();
74 
75  org.openide.awt.Mnemonics.setLocalizedText(skipKnownFilesCheckBox, org.openide.util.NbBundle.getMessage(SampleIngestModuleIngestJobSettingsPanel.class, "SampleIngestModuleIngestJobSettingsPanel.skipKnownFilesCheckBox.text")); // NOI18N
76 
77  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
78  this.setLayout(layout);
79  layout.setHorizontalGroup(
80  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
81  .addGroup(layout.createSequentialGroup()
82  .addContainerGap()
83  .addComponent(skipKnownFilesCheckBox)
84  .addContainerGap(255, Short.MAX_VALUE))
85  );
86  layout.setVerticalGroup(
87  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
88  .addGroup(layout.createSequentialGroup()
89  .addContainerGap()
90  .addComponent(skipKnownFilesCheckBox)
91  .addContainerGap(270, Short.MAX_VALUE))
92  );
93  }// </editor-fold>//GEN-END:initComponents
94  // Variables declaration - do not modify//GEN-BEGIN:variables
95  private javax.swing.JCheckBox skipKnownFilesCheckBox;
96  // End of variables declaration//GEN-END:variables
97 }

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.