Autopsy  4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
PlasoModuleSettingsPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2019 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.plaso;
20 
23 
28 
30 
32  this.settings = settings;
34  }
35 
40  @SuppressWarnings("unchecked")
41  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
42  private void initComponents() {
43  java.awt.GridBagConstraints gridBagConstraints;
44 
45  jFileChooser1 = new javax.swing.JFileChooser();
46  winRegCheckBox = new javax.swing.JCheckBox();
47  peCheckBox = new javax.swing.JCheckBox();
48  plasoParserInfoTextArea = new javax.swing.JTextArea();
49  noteLabel = new javax.swing.JLabel();
50  disabledNoteLabel = new javax.swing.JLabel();
51 
52  setLayout(new java.awt.GridBagLayout());
53 
54  org.openide.awt.Mnemonics.setLocalizedText(winRegCheckBox, org.openide.util.NbBundle.getMessage(PlasoModuleSettingsPanel.class, "PlasoModuleSettingsPanel.winRegCheckBox.text")); // NOI18N
55  winRegCheckBox.addActionListener(new java.awt.event.ActionListener() {
56  public void actionPerformed(java.awt.event.ActionEvent evt) {
58  }
59  });
60  gridBagConstraints = new java.awt.GridBagConstraints();
61  gridBagConstraints.gridx = 0;
62  gridBagConstraints.gridy = 2;
63  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
64  gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
65  gridBagConstraints.weightx = 1.0;
66  gridBagConstraints.insets = new java.awt.Insets(0, 15, 5, 15);
67  add(winRegCheckBox, gridBagConstraints);
68 
69  org.openide.awt.Mnemonics.setLocalizedText(peCheckBox, org.openide.util.NbBundle.getMessage(PlasoModuleSettingsPanel.class, "PlasoModuleSettingsPanel.peCheckBox.text")); // NOI18N
70  peCheckBox.addActionListener(new java.awt.event.ActionListener() {
71  public void actionPerformed(java.awt.event.ActionEvent evt) {
73  }
74  });
75  gridBagConstraints = new java.awt.GridBagConstraints();
76  gridBagConstraints.gridx = 0;
77  gridBagConstraints.gridy = 3;
78  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
79  gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
80  gridBagConstraints.weightx = 1.0;
81  gridBagConstraints.insets = new java.awt.Insets(0, 15, 9, 15);
82  add(peCheckBox, gridBagConstraints);
83 
84  plasoParserInfoTextArea.setEditable(false);
85  plasoParserInfoTextArea.setBackground(javax.swing.UIManager.getDefaults().getColor("Panel.background"));
86  plasoParserInfoTextArea.setColumns(20);
87  plasoParserInfoTextArea.setLineWrap(true);
88  plasoParserInfoTextArea.setRows(1);
89  plasoParserInfoTextArea.setText(org.openide.util.NbBundle.getMessage(PlasoModuleSettingsPanel.class, "PlasoModuleSettingsPanel.plasoParserInfoTextArea.text")); // NOI18N
90  plasoParserInfoTextArea.setWrapStyleWord(true);
91  plasoParserInfoTextArea.setBorder(null);
92  plasoParserInfoTextArea.setPreferredSize(new java.awt.Dimension(160, 50));
93  gridBagConstraints = new java.awt.GridBagConstraints();
94  gridBagConstraints.gridx = 0;
95  gridBagConstraints.gridy = 1;
96  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
97  gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
98  gridBagConstraints.weightx = 1.0;
99  gridBagConstraints.insets = new java.awt.Insets(5, 15, 9, 15);
100  add(plasoParserInfoTextArea, gridBagConstraints);
101 
102  org.openide.awt.Mnemonics.setLocalizedText(noteLabel, org.openide.util.NbBundle.getMessage(PlasoModuleSettingsPanel.class, "PlasoModuleSettingsPanel.noteLabel.text")); // NOI18N
103  gridBagConstraints = new java.awt.GridBagConstraints();
104  gridBagConstraints.gridx = 0;
105  gridBagConstraints.gridy = 0;
106  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
107  gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
108  gridBagConstraints.weightx = 1.0;
109  gridBagConstraints.insets = new java.awt.Insets(9, 15, 9, 15);
110  add(noteLabel, gridBagConstraints);
111 
112  org.openide.awt.Mnemonics.setLocalizedText(disabledNoteLabel, org.openide.util.NbBundle.getMessage(PlasoModuleSettingsPanel.class, "PlasoModuleSettingsPanel.disabledNoteLabel.text")); // NOI18N
113  gridBagConstraints = new java.awt.GridBagConstraints();
114  gridBagConstraints.gridx = 0;
115  gridBagConstraints.gridy = 4;
116  gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
117  gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
118  gridBagConstraints.weightx = 1.0;
119  gridBagConstraints.weighty = 1.0;
120  gridBagConstraints.insets = new java.awt.Insets(5, 15, 0, 15);
121  add(disabledNoteLabel, gridBagConstraints);
122  }// </editor-fold>//GEN-END:initComponents
123 
124  private void winRegCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_winRegCheckBoxActionPerformed
125  settings.setParserEnabled("winreg", winRegCheckBox.isSelected());
126  }//GEN-LAST:event_winRegCheckBoxActionPerformed
127 
128  private void peCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_peCheckBoxActionPerformed
129  settings.setParserEnabled("pe", peCheckBox.isSelected());
130  }//GEN-LAST:event_peCheckBoxActionPerformed
131 
132  @Override
134  return settings;
135  }
136 
137 
138  // Variables declaration - do not modify//GEN-BEGIN:variables
139  private javax.swing.JLabel disabledNoteLabel;
140  private javax.swing.JFileChooser jFileChooser1;
141  private javax.swing.JLabel noteLabel;
142  private javax.swing.JCheckBox peCheckBox;
143  private javax.swing.JTextArea plasoParserInfoTextArea;
144  private javax.swing.JCheckBox winRegCheckBox;
145  // End of variables declaration//GEN-END:variables
146 }

Copyright © 2012-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.