Class Wizard

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
JabaWizard, JMCHWizard, JMVAWizard, JSIMWizMain, JWatWizard

public class Wizard extends JMTFrame
a generic Wizard framework
See Also:
  • Field Details

  • Constructor Details

    • Wizard

      public Wizard()
    • Wizard

      public Wizard(String title)
    • Wizard

      public Wizard(String title, Image icon)
  • Method Details

    • makeButtons

      protected JComponent makeButtons()
      Returns:
      the button panel
    • makeTabbedPane

      protected JTabbedPane makeTabbedPane()
    • checkFinish

      protected boolean checkFinish()
    • finish

      protected void finish()
      Called when the "Finish" button is pressed. Must be overridden in subclasses!
    • cancel

      protected boolean cancel()
      Called when the "Cancel" button is pressed. Should be overridden in subclasses
      Returns:
      true if window can be closed, false otherwise.
    • canBeClosed

      public boolean canBeClosed()
      Overrides:
      canBeClosed in class JMTFrame
      Returns:
      true iff this frame can be closed. Please override this method to create save on exit behaviours
      See Also:
    • showNext

      protected void showNext()
    • showPrev

      protected void showPrev()
    • getCurrentPanel

      public WizardPanel getCurrentPanel()
      Returns:
      a reference to the selected wizard panel
    • updateActions

      protected void updateActions()
      enables/disables buttons according to current status
    • addPanel

      public void addPanel(WizardPanel p)
      Add a new WizardPanel to the Wizard
    • addPanel

      public void addPanel(WizardPanel p, int index)
      Add a new WizardPanel to the Wizard
    • removePanel

      public void removePanel(WizardPanel p)
      Removes a WizardPanel to the Wizard