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> {
36 private WizardDescriptor wiz;
37 private ReportWizardFileOptionsVisualPanel component;
38 private JButton finishButton;
40 ReportWizardFileOptionsPanel() {
41 finishButton =
new JButton(
42 NbBundle.getMessage(
this.getClass(),
"ReportWizardFileOptionsPanel.finishButton.text"));
43 finishButton.setEnabled(
false);
45 finishButton.addActionListener(
new ActionListener() {
47 public void actionPerformed(ActionEvent e) {
56 public void setFinish(
boolean enable) {
57 finishButton.setEnabled(enable);
61 public boolean isFinishPanel() {
66 public ReportWizardFileOptionsVisualPanel getComponent() {
67 if (component == null) {
68 component =
new ReportWizardFileOptionsVisualPanel(
this);
74 public HelpCtx getHelp() {
75 return HelpCtx.DEFAULT_HELP;
79 public void readSettings(WizardDescriptor data) {
81 wiz.setOptions(
new Object[]{WizardDescriptor.PREVIOUS_OPTION, WizardDescriptor.NEXT_OPTION, finishButton, WizardDescriptor.CANCEL_OPTION});
85 public void storeSettings(WizardDescriptor data) {
86 data.putProperty(
"fileReportOptions", getComponent().getFileReportOptions());
90 public boolean isValid() {
95 public void addChangeListener(ChangeListener cl) {
99 public void removeChangeListener(ChangeListener cl) {