com.connectina.lib
Interface WizardPage

All Known Implementing Classes:
FourPanel, OnePanel, ThreePanel, TwoPanel

public interface WizardPage

A wizard page.


Method Summary
 java.lang.String finish()
          Checks the current page and returns JWizardPanel.FINISH if the wizard can complete.
 java.lang.String getName()
          Provides a unique page name.
 javax.swing.JPanel getPanel()
          Provides the JPanel for this page.
 boolean isFirst()
          Indicates that this is the first page of the wizard.
 boolean isLast()
          Indicates that this is the last page of the wizard.
 java.lang.String next()
          Checks the current page and points to the appropriate next page.
 java.lang.String previous()
          Checks the current page and points to the appropriate previous page.
 

Method Detail

getPanel

javax.swing.JPanel getPanel()
Provides the JPanel for this page.

Returns:
a panel

getName

java.lang.String getName()
Provides a unique page name.

Returns:
a unique name

next

java.lang.String next()
Checks the current page and points to the appropriate next page. In order to remain to the current page it should return JWizardPanel.HOLD. The method is invoked when the next button is clicked. When the wizard displays the next page any change listeners are notified with its name as the ChangeEvent source.

Returns:
the name of the next page

previous

java.lang.String previous()
Checks the current page and points to the appropriate previous page. In order to remain to the current page it should return JWizardPanel.HOLD. The method is invoked when the previous button is clicked. When the wizard displays the previous page any change listeners are notified with its name as the ChangeEvent source.

Returns:
the name of the previous page

finish

java.lang.String finish()
Checks the current page and returns JWizardPanel.FINISH if the wizard can complete. The method is invoked when the finish button is clicked in the last page. If the wizard can complete any change listeners are notified with JWizardPanel.FINISH as the ChangeEvent source.

Returns:
a state JWizardPanel.FINISH or JWizardPanel.HOLD

isFirst

boolean isFirst()
Indicates that this is the first page of the wizard.

Returns:
true if this is the first page.

isLast

boolean isLast()
Indicates that this is the last page of the wizard.

Returns:
true if this is the last page.