Class PWizardPanel

All Implemented Interfaces:
PWizardValidator, ImageObserver, MenuContainer, Serializable, Accessible

public class PWizardPanel extends JPanel implements PWizardValidator
A convenience class from which to extend the panels that are going to be added to PWizard.
See Also:
  • Field Details

    • mCanMoveForward

      protected boolean mCanMoveForward
    • mCanMoveBackward

      protected boolean mCanMoveBackward
  • Constructor Details

    • PWizardPanel

      public PWizardPanel()
      Create a new PWizardPanel
    • PWizardPanel

      public PWizardPanel(LayoutManager layout)
      Create a new PWizardPanel with the specified layout manager
      Parameters:
      layout - the layout manger to use
  • Method Details

    • canMoveForward

      public boolean canMoveForward()
      Called by the PWizard framework to see if the "Next" button can be enabled
      Specified by:
      canMoveForward in interface PWizardValidator
      Returns:
      true if the "Next" button can be enabled
    • canMoveBackward

      public boolean canMoveBackward()
      Called by the PWizard framework to see if the "Back" button can be enabled
      Specified by:
      canMoveBackward in interface PWizardValidator
      Returns:
      true if the "Back" button can be enabled
    • collectData

      public boolean collectData(boolean validate)
      Called by the PWizard framework when this panel is going to be switched out. Implement your data collection here
      Parameters:
      validate - if true, then validation(if any) is performed otherwise, no validation is done
      Returns:
      true if it is ok for the panel to be switched out. if there is an error on data collection, return false to stay on this panel.
    • initData

      public void initData()
      Called by the PWizard framework when this panel is going to be made active. Implement your data initialization here
    • getSequenceManager

      public SequenceManager getSequenceManager()
      Gets the manager that manages the sequence of the components added to the wizard
      Returns:
      The SequenceManager that has been set for the wizard