Autopsy  4.6.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
DataSourceIngestCancellationPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 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.ingest;
20 
25 final class DataSourceIngestCancellationPanel extends javax.swing.JPanel {
26 
27  private boolean cancelAllIngestModules;
28 
32  DataSourceIngestCancellationPanel() {
33  initComponents();
34  this.cancelCurrentModuleRadioButton.setSelected(true);
35  }
36 
44  boolean cancelAllDataSourceIngestModules() {
45  return this.cancelAllIngestModules;
46  }
47 
53  @SuppressWarnings("unchecked")
54  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
55  private void initComponents() {
56 
57  cancelRadioButtonsGroup = new javax.swing.ButtonGroup();
58  cancelCurrentModuleRadioButton = new javax.swing.JRadioButton();
59  cancelAllModulesRadioButton = new javax.swing.JRadioButton();
60 
61  cancelRadioButtonsGroup.add(cancelCurrentModuleRadioButton);
62  org.openide.awt.Mnemonics.setLocalizedText(cancelCurrentModuleRadioButton, org.openide.util.NbBundle.getMessage(DataSourceIngestCancellationPanel.class, "DataSourceIngestCancellationPanel.cancelCurrentModuleRadioButton.text")); // NOI18N
63  cancelCurrentModuleRadioButton.addActionListener(new java.awt.event.ActionListener() {
64  public void actionPerformed(java.awt.event.ActionEvent evt) {
65  cancelCurrentModuleRadioButtonActionPerformed(evt);
66  }
67  });
68 
69  cancelRadioButtonsGroup.add(cancelAllModulesRadioButton);
70  org.openide.awt.Mnemonics.setLocalizedText(cancelAllModulesRadioButton, org.openide.util.NbBundle.getMessage(DataSourceIngestCancellationPanel.class, "DataSourceIngestCancellationPanel.cancelAllModulesRadioButton.text")); // NOI18N
71  cancelAllModulesRadioButton.addActionListener(new java.awt.event.ActionListener() {
72  public void actionPerformed(java.awt.event.ActionEvent evt) {
73  cancelAllModulesRadioButtonActionPerformed(evt);
74  }
75  });
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  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
84  .addComponent(cancelAllModulesRadioButton)
85  .addComponent(cancelCurrentModuleRadioButton))
86  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
87  );
88  layout.setVerticalGroup(
89  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
90  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
91  .addContainerGap()
92  .addComponent(cancelCurrentModuleRadioButton)
93  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
94  .addComponent(cancelAllModulesRadioButton)
95  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
96  );
97  }// </editor-fold>//GEN-END:initComponents
98 
99  private void cancelCurrentModuleRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelCurrentModuleRadioButtonActionPerformed
100  this.cancelAllIngestModules = this.cancelAllModulesRadioButton.isEnabled();
101  }//GEN-LAST:event_cancelCurrentModuleRadioButtonActionPerformed
102 
103  private void cancelAllModulesRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelAllModulesRadioButtonActionPerformed
104  this.cancelAllIngestModules = this.cancelAllModulesRadioButton.isEnabled();
105  }//GEN-LAST:event_cancelAllModulesRadioButtonActionPerformed
106 
107  // Variables declaration - do not modify//GEN-BEGIN:variables
108  private javax.swing.JRadioButton cancelAllModulesRadioButton;
109  private javax.swing.JRadioButton cancelCurrentModuleRadioButton;
110  private javax.swing.ButtonGroup cancelRadioButtonsGroup;
111  // End of variables declaration//GEN-END:variables
112 }

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.