19 package org.sleuthkit.autopsy.report;
21 import java.awt.event.ActionEvent;
22 import java.awt.event.ActionListener;
23 import javax.swing.JButton;
24 import javax.swing.event.ChangeListener;
25 import org.openide.WizardDescriptor;
26 import org.openide.util.HelpCtx;
27 import org.openide.util.NbBundle;
34 class ReportWizardFileOptionsPanel
implements WizardDescriptor.FinishablePanel<WizardDescriptor>{
35 private WizardDescriptor wiz;
36 private ReportWizardFileOptionsVisualPanel component;
37 private JButton finishButton;
39 ReportWizardFileOptionsPanel() {
40 finishButton =
new JButton(
41 NbBundle.getMessage(
this.getClass(),
"ReportWizardFileOptionsPanel.finishButton.text"));
42 finishButton.setEnabled(
false);
44 finishButton.addActionListener(
new ActionListener() {
46 public void actionPerformed(ActionEvent e) {
52 public void setFinish(
boolean enable) {
53 finishButton.setEnabled(enable);
57 public boolean isFinishPanel() {
62 public ReportWizardFileOptionsVisualPanel getComponent() {
63 if (component == null) {
64 component =
new ReportWizardFileOptionsVisualPanel(
this);
70 public HelpCtx getHelp() {
71 return HelpCtx.DEFAULT_HELP;
75 public void readSettings(WizardDescriptor data) {
77 wiz.setOptions(
new Object[] {WizardDescriptor.PREVIOUS_OPTION, WizardDescriptor.NEXT_OPTION, finishButton, WizardDescriptor.CANCEL_OPTION});
81 public void storeSettings(WizardDescriptor data) {
82 data.putProperty(
"fileReportOptions", getComponent().getFileReportOptions());
86 public boolean isValid() {
91 public void addChangeListener(ChangeListener cl) {
95 public void removeChangeListener(ChangeListener cl) {