mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
118 lines
5.5 KiB
Java
118 lines
5.5 KiB
Java
/*
|
|
* Autopsy Forensic Browser
|
|
*
|
|
* Copyright 2011 - 2013 Basis Technology Corp.
|
|
* Contact: carrier <at> sleuthkit <dot> org
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
package org.sleuthkit.autopsy.fileextmismatch;
|
|
|
|
|
|
/**
|
|
* Instances of this class provide a simplified UI for managing the hash sets configuration.
|
|
*/
|
|
class FileExtMismatchSimpleConfigPanel extends javax.swing.JPanel {
|
|
|
|
public FileExtMismatchSimpleConfigPanel() {
|
|
initComponents();
|
|
customizeComponents();
|
|
}
|
|
|
|
private void customizeComponents() {
|
|
// Hidden for now
|
|
skipKnownCheckBox.setVisible(false);
|
|
}
|
|
|
|
|
|
/** This method is called from within the constructor to
|
|
* initialize the form.
|
|
* WARNING: Do NOT modify this code. The content of this method is
|
|
* always regenerated by the Form Editor.
|
|
*/
|
|
@SuppressWarnings("unchecked")
|
|
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
|
private void initComponents() {
|
|
|
|
skipKnownCheckBox = new javax.swing.JCheckBox();
|
|
skipNoExtCheckBox = new javax.swing.JCheckBox();
|
|
skipTextPlain = new javax.swing.JCheckBox();
|
|
|
|
skipKnownCheckBox.setSelected(true);
|
|
skipKnownCheckBox.setText(org.openide.util.NbBundle.getMessage(FileExtMismatchSimpleConfigPanel.class, "FileExtMismatchSimpleConfigPanel.skipKnownCheckBox.text")); // NOI18N
|
|
skipKnownCheckBox.setToolTipText(org.openide.util.NbBundle.getMessage(FileExtMismatchSimpleConfigPanel.class, "FileExtMismatchSimpleConfigPanel.skipKnownCheckBox.toolTipText")); // NOI18N
|
|
skipKnownCheckBox.addActionListener(new java.awt.event.ActionListener() {
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
skipKnownCheckBoxActionPerformed(evt);
|
|
}
|
|
});
|
|
|
|
skipNoExtCheckBox.setSelected(true);
|
|
skipNoExtCheckBox.setText(org.openide.util.NbBundle.getMessage(FileExtMismatchSimpleConfigPanel.class, "FileExtMismatchSimpleConfigPanel.skipNoExtCheckBox.text")); // NOI18N
|
|
skipNoExtCheckBox.addActionListener(new java.awt.event.ActionListener() {
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
skipNoExtCheckBoxActionPerformed(evt);
|
|
}
|
|
});
|
|
|
|
skipTextPlain.setText(org.openide.util.NbBundle.getMessage(FileExtMismatchSimpleConfigPanel.class, "FileExtMismatchSimpleConfigPanel.skipTextPlain.text")); // NOI18N
|
|
skipTextPlain.addActionListener(new java.awt.event.ActionListener() {
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
skipTextPlainActionPerformed(evt);
|
|
}
|
|
});
|
|
|
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
|
this.setLayout(layout);
|
|
layout.setHorizontalGroup(
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
.addGroup(layout.createSequentialGroup()
|
|
.addContainerGap()
|
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
.addComponent(skipTextPlain)
|
|
.addComponent(skipNoExtCheckBox)
|
|
.addComponent(skipKnownCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
.addGap(0, 327, Short.MAX_VALUE))
|
|
);
|
|
layout.setVerticalGroup(
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
.addGroup(layout.createSequentialGroup()
|
|
.addComponent(skipNoExtCheckBox)
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
.addComponent(skipTextPlain)
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
.addComponent(skipKnownCheckBox)
|
|
.addContainerGap(72, Short.MAX_VALUE))
|
|
);
|
|
}// </editor-fold>//GEN-END:initComponents
|
|
|
|
private void skipKnownCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_skipKnownCheckBoxActionPerformed
|
|
FileExtMismatchIngestModule.setSkipKnown(skipKnownCheckBox.isSelected());
|
|
}//GEN-LAST:event_skipKnownCheckBoxActionPerformed
|
|
|
|
private void skipNoExtCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_skipNoExtCheckBoxActionPerformed
|
|
FileExtMismatchIngestModule.setSkipNoExt(skipNoExtCheckBox.isSelected());
|
|
}//GEN-LAST:event_skipNoExtCheckBoxActionPerformed
|
|
|
|
private void skipTextPlainActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_skipTextPlainActionPerformed
|
|
FileExtMismatchIngestModule.setSkipTextPlain(skipTextPlain.isSelected());
|
|
|
|
}//GEN-LAST:event_skipTextPlainActionPerformed
|
|
|
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
|
private javax.swing.JCheckBox skipKnownCheckBox;
|
|
private javax.swing.JCheckBox skipNoExtCheckBox;
|
|
private javax.swing.JCheckBox skipTextPlain;
|
|
// End of variables declaration//GEN-END:variables
|
|
}
|