19 package org.sleuthkit.autopsy.ingest;
 
   25 @SuppressWarnings(
"PMD.SingularField") 
 
   26 final class DataSourceIngestCancellationPanel extends javax.swing.JPanel {
 
   28     private boolean cancelAllIngestModules;
 
   33     DataSourceIngestCancellationPanel() {
 
   35         this.cancelCurrentModuleRadioButton.setSelected(
true);
 
   45     boolean cancelAllDataSourceIngestModules() {
 
   46         return this.cancelAllIngestModules;
 
   54     @SuppressWarnings(
"unchecked")
 
   56     private 
void initComponents() {
 
   58         cancelRadioButtonsGroup = 
new javax.swing.ButtonGroup();
 
   59         cancelCurrentModuleRadioButton = 
new javax.swing.JRadioButton();
 
   60         cancelAllModulesRadioButton = 
new javax.swing.JRadioButton();
 
   62         cancelRadioButtonsGroup.add(cancelCurrentModuleRadioButton);
 
   63         org.openide.awt.Mnemonics.setLocalizedText(cancelCurrentModuleRadioButton, 
org.openide.util.NbBundle.getMessage(DataSourceIngestCancellationPanel.class, 
"DataSourceIngestCancellationPanel.cancelCurrentModuleRadioButton.text")); 
 
   64         cancelCurrentModuleRadioButton.addActionListener(
new java.awt.event.ActionListener() {
 
   65             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
   66                 cancelCurrentModuleRadioButtonActionPerformed(evt);
 
   70         cancelRadioButtonsGroup.add(cancelAllModulesRadioButton);
 
   71         org.openide.awt.Mnemonics.setLocalizedText(cancelAllModulesRadioButton, 
org.openide.util.NbBundle.getMessage(DataSourceIngestCancellationPanel.class, 
"DataSourceIngestCancellationPanel.cancelAllModulesRadioButton.text")); 
 
   72         cancelAllModulesRadioButton.addActionListener(
new java.awt.event.ActionListener() {
 
   73             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
   74                 cancelAllModulesRadioButtonActionPerformed(evt);
 
   78         javax.swing.GroupLayout layout = 
new javax.swing.GroupLayout(
this);
 
   79         this.setLayout(layout);
 
   80         layout.setHorizontalGroup(
 
   81             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
   82             .addGroup(layout.createSequentialGroup()
 
   84                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
   85                     .addComponent(cancelAllModulesRadioButton)
 
   86                     .addComponent(cancelCurrentModuleRadioButton))
 
   87                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 
   89         layout.setVerticalGroup(
 
   90             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
   91             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
 
   93                 .addComponent(cancelCurrentModuleRadioButton)
 
   94                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
   95                 .addComponent(cancelAllModulesRadioButton)
 
   96                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 
  100     private void cancelCurrentModuleRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {
 
  101         this.cancelAllIngestModules = this.cancelAllModulesRadioButton.isEnabled();
 
  104     private void cancelAllModulesRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {
 
  105         this.cancelAllIngestModules = this.cancelAllModulesRadioButton.isEnabled();
 
  109     private javax.swing.JRadioButton cancelAllModulesRadioButton;
 
  110     private javax.swing.JRadioButton cancelCurrentModuleRadioButton;
 
  111     private javax.swing.ButtonGroup cancelRadioButtonsGroup;