Class GenericWizard

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
ReportWizard

public class GenericWizard extends JDialog implements PropertyChangeListener
See Also:
  • Constructor Details

    • GenericWizard

      public GenericWizard(String wizardTitle)
      Creates new form GenericWizard
  • Method Details

    • addWizardStep

      public void addWizardStep(WizardStep wizardStep)
      Adds new wizard step to this wizard.
      Parameters:
      wizardStep - A wizard step to be added to this wizard.
    • getFont

      public Font getFont()
      Returns font that should be used for all widgets in this component based on the language preferences specified by user.
      Specified by:
      getFont in interface MenuContainer
      Overrides:
      getFont in class Component
      Returns:
      Font to be used in this component.
    • checkButtons

      public void checkButtons()
      Method called when something changed and buttons should verify their state. Most probably Next button should be enabled or disabled.
    • setPreview

      public void setPreview(ImageIcon preview)
      Sets preview of wizard result.
      Parameters:
      preview - Image to be set as preview.
    • setWizardProperty

      public static void setWizardProperty(String propertyName, Object property)
      Sets given wizard property.
      Parameters:
      propertyName - Name of property to be set.
      property - New value of given property.
    • getWizardProperty

      public static Object getWizardProperty(String propertyName)
      Returns property of wizard identified by its name.
      Parameters:
      propertyName - Name of property to be returned.
      Returns:
      Object representing value of given property.
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Method called when property of some wizard step changed.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      evt - Event that generated this call.
    • setStatus

      public void setStatus(String status)
      Sets new status text.
      Parameters:
      status - New status text.
    • goNextStep

      protected void goNextStep()
      Acts like a Next button is pressed.
    • cancelWizard

      protected void cancelWizard()
      Acts like a Cancel button is pressed.
    • finishWizard

      protected void finishWizard()
      Acts like a Finish button is pressed.