View Javadoc

1   /*
2    * Created on 5-Jun-2005
3    */
4   package ca.spaz.wizard;
5   
6   import javax.swing.JPanel;
7   
8   public abstract class WizardPanel extends JPanel {
9      private Wizard controller;
10     
11     public abstract String getWizardPanelTitle();
12     
13     public abstract void commitChanges();
14     
15     /***
16      * @return true if the wizard panel is completed and user input is valid
17      * The Wizard will not allow proceeding to next pane unless the current
18      * pane returns isValid.
19      */
20     public abstract boolean isValid();
21     
22     
23     protected void setWizard(Wizard w) {
24        this.controller = w;
25     }
26     
27     
28  }