19 package org.sleuthkit.autopsy.report.infrastructure;
 
   22 import java.awt.event.ActionEvent;
 
   23 import java.awt.event.ActionListener;
 
   24 import javax.swing.JButton;
 
   25 import javax.swing.event.ChangeListener;
 
   26 import org.openide.WizardDescriptor;
 
   27 import org.openide.util.HelpCtx;
 
   28 import org.openide.util.NbBundle;
 
   35 class ReportWizardFileOptionsPanel 
implements WizardDescriptor.FinishablePanel<WizardDescriptor> {
 
   37     private WizardDescriptor wiz;
 
   38     private ReportWizardFileOptionsVisualPanel component;
 
   39     private final JButton finishButton;
 
   40     private final FileReportSettings settings;
 
   42     ReportWizardFileOptionsPanel(FileReportSettings settings) {
 
   43         this.settings = settings;
 
   44         finishButton = 
new JButton(
 
   45                 NbBundle.getMessage(
this.getClass(), 
"ReportWizardFileOptionsPanel.finishButton.text"));
 
   46         finishButton.setEnabled(
false);
 
   48         finishButton.addActionListener(
new ActionListener() {
 
   50             public void actionPerformed(ActionEvent e) {
 
   59     public void setFinish(
boolean enable) {
 
   60         finishButton.setEnabled(enable);
 
   64     public boolean isFinishPanel() {
 
   69     public ReportWizardFileOptionsVisualPanel getComponent() {
 
   70         if (component == null) {
 
   71             component = 
new ReportWizardFileOptionsVisualPanel(
this, settings);
 
   77     public HelpCtx getHelp() {
 
   78         return HelpCtx.DEFAULT_HELP;
 
   82     public void readSettings(WizardDescriptor data) {
 
   84         wiz.setOptions(
new Object[]{WizardDescriptor.PREVIOUS_OPTION, WizardDescriptor.NEXT_OPTION, finishButton, WizardDescriptor.CANCEL_OPTION});
 
   88     public void storeSettings(WizardDescriptor data) {
 
   89         wiz.putProperty(
"fileReportSettings", 
new FileReportSettings(getComponent().getFileReportOptions()));
 
   93     public boolean isValid() {
 
   98     public void addChangeListener(ChangeListener cl) {
 
  102     public void removeChangeListener(ChangeListener cl) {