com.borland.primetime.wizard
Interface WizardPage

All Known Implementing Classes:
BasicWizardPage

public interface WizardPage

The WizardPage is a single page in a Wizard. This interface is typically implemented directly on a JPanel subclass, and 'this' is returned from the public JComponent getPageComponent() method. When a WizardPage becomes the 'current' page in the Wizard, the public void activated(WizardHost host) method is called. When the user hits 'Back' or 'Next' in the WizardHost, the public void deactivated() method is called.

The BasicWizardPage class is provided as a basic imlementation of this interface - ideal for subclassing to create a wizard page.

See Also:
Wizard, WizardHost, BasicWizardPage

Method Summary
 void activated(WizardHost host)
          Called when this WizardPage is activated as the 'current' page in the Wizard.
 void deactivated()
          Called when this WizardPage is deactivated, and is no longer the 'current' page in the Wizard.
 javax.swing.JComponent getPageComponent(WizardHost host)
          Returns the JComponent to act as the UI for this WizardPage.
 

Method Detail

getPageComponent

public javax.swing.JComponent getPageComponent(WizardHost host)
Returns the JComponent to act as the UI for this WizardPage.
Parameters:
host - The WizardHost hosting this Wizard.
Returns:
the JComponent to act as the UI for this WizardPage.

activated

public void activated(WizardHost host)
Called when this WizardPage is activated as the 'current' page in the Wizard.
Parameters:
host - The WizardHost hosting this Wizard. NOTE: For pages that have required fields - the WizardHost interface can be used to enable/ disable the 'Next' and 'Finish' buttons.

deactivated

public void deactivated()
Called when this WizardPage is deactivated, and is no longer the 'current' page in the Wizard.