19 package org.sleuthkit.autopsy.ingest;
25 final class DataSourceIngestCancellationPanel
extends javax.swing.JPanel {
27 private boolean cancelAllIngestModules;
32 DataSourceIngestCancellationPanel() {
34 this.cancelCurrentModuleRadioButton.setSelected(
true);
44 boolean cancelAllDataSourceIngestModules() {
45 return this.cancelAllIngestModules;
53 @SuppressWarnings(
"unchecked")
55 private
void initComponents() {
57 cancelRadioButtonsGroup =
new javax.swing.ButtonGroup();
58 cancelCurrentModuleRadioButton =
new javax.swing.JRadioButton();
59 cancelAllModulesRadioButton =
new javax.swing.JRadioButton();
61 cancelRadioButtonsGroup.add(cancelCurrentModuleRadioButton);
62 org.openide.awt.Mnemonics.setLocalizedText(cancelCurrentModuleRadioButton,
org.openide.util.NbBundle.getMessage(DataSourceIngestCancellationPanel.class,
"DataSourceIngestCancellationPanel.cancelCurrentModuleRadioButton.text"));
63 cancelCurrentModuleRadioButton.addActionListener(
new java.awt.event.ActionListener() {
64 public void actionPerformed(java.awt.event.ActionEvent evt) {
65 cancelCurrentModuleRadioButtonActionPerformed(evt);
69 cancelRadioButtonsGroup.add(cancelAllModulesRadioButton);
70 org.openide.awt.Mnemonics.setLocalizedText(cancelAllModulesRadioButton,
org.openide.util.NbBundle.getMessage(DataSourceIngestCancellationPanel.class,
"DataSourceIngestCancellationPanel.cancelAllModulesRadioButton.text"));
71 cancelAllModulesRadioButton.addActionListener(
new java.awt.event.ActionListener() {
72 public void actionPerformed(java.awt.event.ActionEvent evt) {
73 cancelAllModulesRadioButtonActionPerformed(evt);
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()
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))
88 layout.setVerticalGroup(
89 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
90 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
92 .addComponent(cancelCurrentModuleRadioButton)
93 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
94 .addComponent(cancelAllModulesRadioButton)
95 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
99 private void cancelCurrentModuleRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {
100 this.cancelAllIngestModules = this.cancelAllModulesRadioButton.isEnabled();
103 private void cancelAllModulesRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {
104 this.cancelAllIngestModules = this.cancelAllModulesRadioButton.isEnabled();
108 private javax.swing.JRadioButton cancelAllModulesRadioButton;
109 private javax.swing.JRadioButton cancelCurrentModuleRadioButton;
110 private javax.swing.ButtonGroup cancelRadioButtonsGroup;