Class PWizardNavigator

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class PWizardNavigator extends JPanel implements ActionListener
The navigator panel that is added to the bottom of PWizard. Handles navigating between the various components that have been added to PWizard.
See Also:
  • Constructor Details

    • PWizardNavigator

      public PWizardNavigator(DeckPanel panel)
      Constructs a PWizardNavigator panel that handles the navigation between the various components that have been added to the PWizard framework.
      Parameters:
      panel - the DeckPanel that the navigation is delegated to.
    • PWizardNavigator

      public PWizardNavigator(DeckPanel panel, boolean helpBtnRightAligned)
      Constructs a PWizardNavigator panel that handles the navigation between the various components that have been added to the PWizard framework as well as aligning the help button towards right.
      Parameters:
      panel - the DeckPanel that the navigation is delegated to.
      helpBtnRightAligned - boolean to say to align right
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Handler for the ActionEvent events from the buttons on this panel
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event -
    • getHelpButton

      public JButton getHelpButton()
      Returns help button
      Returns:
      help button
    • getBackButton

      public JButton getBackButton()
      Returns Back button
      Returns:
      Back button
    • getNextButton

      public JButton getNextButton()
      Returns Next button
      Returns:
      Next button
    • getCancelButton

      public JButton getCancelButton()
      Returns Cancel button
      Returns:
      Cancel button
    • isWizardCancelled

      public boolean isWizardCancelled()
      Returns if the wizard has been cancelled
      Returns:
      true if the wizard has been cancelled
    • setPanel

      public void setPanel(String name)
      Activates the given component
      Parameters:
      name - Name of the component to be made active