Autopsy  4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
ExportPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2021 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.datasourcesummary.ui;
20 
24 public class ExportPanel extends javax.swing.JPanel {
25 
26  private Runnable xlsxExportAction;
27 
31  public ExportPanel() {
33  }
34 
40  public Runnable getXlsxExportAction() {
41  return xlsxExportAction;
42  }
43 
49  public void setXlsxExportAction(Runnable onXlsxExport) {
50  this.xlsxExportAction = onXlsxExport;
51  }
52 
58  @SuppressWarnings("unchecked")
59  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
60  private void initComponents() {
61 
62  javax.swing.JButton xlsxExportButton = new javax.swing.JButton();
63  javax.swing.JLabel xlsxExportMessage = new javax.swing.JLabel();
64 
65  org.openide.awt.Mnemonics.setLocalizedText(xlsxExportButton, org.openide.util.NbBundle.getMessage(ExportPanel.class, "ExportPanel.xlsxExportButton.text")); // NOI18N
66  xlsxExportButton.addActionListener(new java.awt.event.ActionListener() {
67  public void actionPerformed(java.awt.event.ActionEvent evt) {
69  }
70  });
71 
72  org.openide.awt.Mnemonics.setLocalizedText(xlsxExportMessage, org.openide.util.NbBundle.getMessage(ExportPanel.class, "ExportPanel.xlsxExportMessage.text")); // NOI18N
73 
74  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
75  this.setLayout(layout);
76  layout.setHorizontalGroup(
77  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
78  .addGroup(layout.createSequentialGroup()
79  .addContainerGap()
80  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
81  .addComponent(xlsxExportMessage)
82  .addComponent(xlsxExportButton))
83  .addContainerGap(62, Short.MAX_VALUE))
84  );
85  layout.setVerticalGroup(
86  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
87  .addGroup(layout.createSequentialGroup()
88  .addContainerGap()
89  .addComponent(xlsxExportMessage)
90  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
91  .addComponent(xlsxExportButton)
92  .addContainerGap(250, Short.MAX_VALUE))
93  );
94  }// </editor-fold>//GEN-END:initComponents
95 
96  private void xlsxExportButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_xlsxExportButtonActionPerformed
97  if (this.xlsxExportAction != null) {
98  xlsxExportAction.run();
99  }
100  }//GEN-LAST:event_xlsxExportButtonActionPerformed
101 
102 
103  // Variables declaration - do not modify//GEN-BEGIN:variables
104  // End of variables declaration//GEN-END:variables
105 }
void xlsxExportButtonActionPerformed(java.awt.event.ActionEvent evt)

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.