Class PWizardNavigator

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

public class PWizardNavigator extends JPanel implements ActionListener
A navigator component which allows the user to select one wizard page from a list of many.
See Also:
  • Constructor Details

    • PWizardNavigator

      public PWizardNavigator()
      Creates the navigator component
    • PWizardNavigator

      public PWizardNavigator(PWizard wizard)
      Creates the navigator component for a wizard
      Parameters:
      wizard - The wizard that will host this navigator.
  • Method Details

    • getPreferredSize

      public Dimension getPreferredSize()
      Overridden to establish our desired width
      Overrides:
      getPreferredSize in class JComponent
      Returns:
      The desired size for this component
    • removeEntry

      public void removeEntry(Component p)
      Removes an entry (wizard page) from the navigator
      Parameters:
      p - The page to remove
    • addEntry

      public void addEntry(Component p)
      Adds a new entry (wizard page) to the navigator
      Parameters:
      p - Represents the page to add
    • setSelected

      public void setSelected(Component p)
      Selects an entry (wizard page)
      Parameters:
      p - The wizard page to select
    • getSelected

      public Component getSelected()
      Retrieves the currently selected entry/wizard page
      Returns:
      The selected wizard page
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Specified by:
      actionPerformed in interface ActionListener