Package hec.gui

Class WizardDialog

All Implemented Interfaces:
ActionListener, ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Modifiable
Direct Known Subclasses:
DefineWorldCoordinatesWizardDialog

public class WizardDialog extends RmaJDialog implements ActionListener
See Also:
  • Constructor Details

    • WizardDialog

      public WizardDialog(Frame parent, boolean modal)
      Create a new WizardDialog object.
      Parameters:
      parent -
      modal -
    • WizardDialog

      public WizardDialog(Dialog parent, boolean modal)
      Create a new WizardDialog object.
      Parameters:
      parent -
      modal -
    • WizardDialog

      public WizardDialog()
      Create a new WizardDialog object.
  • Method Details

    • buildControls

      protected void buildControls()
      Method Description.
    • buildButtonPanel

      protected JPanel buildButtonPanel()
      Method Description.
      Returns:
      Description
    • getCurrentPanel

      protected WizardPanel getCurrentPanel()
      Gets the CurrentPanel attribute of the WizardDialog object.
      Returns:
      The CurrentPanel value
    • setCurrentPanel

      public void setCurrentPanel(String panelName)
    • setCurrentPanel

      public void setCurrentPanel(String panelName, String backPanelName)
      Sets the current panel.
      Parameters:
      panelName - the new current panel
    • setButtonState

      public void setButtonState()
      Sets the ButtonState attribute of the WizardDialog object.
    • setShowStepCount

      public void setShowStepCount(boolean tf)
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Method Description.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e -
    • movingFoward

      protected void movingFoward(WizardPanel currentPanel)
      called when user has pressed the next button, after the next panel has been shown
      Parameters:
      currentPanel -
    • movingBack

      protected void movingBack(WizardPanel currentPanel)
      called when user has pressed the back button, before the back panel has been shown
      Parameters:
      currentPanel - current panel being displayed
    • changingPanels

      protected void changingPanels(String goingToPanelName)
      called when changing panels.
      Parameters:
      goingToPanelName - the name of the panel being switched to
    • dialogCanceled

      protected void dialogCanceled()
      called when the user has canceled the dialog.
    • dialogFinished

      protected void dialogFinished()
      called when the user has pressed the Finish button.
    • addWizardPanel

      public void addWizardPanel(WizardPanel panel)
      Adds a feature to the WizardPanel attribute of the WizardDialog object.
      Parameters:
      panel -
    • getWizardPanelIndex

      public int getWizardPanelIndex(String panelName)
    • getWizardPanel

      public WizardPanel getWizardPanel(String panelName)
    • getWizardPanels

      public List<WizardPanel> getWizardPanels()
    • getWizardPanelCount

      public int getWizardPanelCount()
      Gets the wizard panel count.
      Returns:
      the wizard panel count
    • setCancelButtonEnabled

      public void setCancelButtonEnabled(boolean enable)
      set the enabled state of the Cancel button.
      Parameters:
      enable - true to enable the button
    • setValidPanelControlsNextButton

      public void setValidPanelControlsNextButton(boolean tf)
    • getFinishButtonString

      protected String getFinishButtonString()