com.ibm.as400.ui.framework.java
Interface WizardStateMachine


public interface WizardStateMachine

The interface for objects whose responsibility it is to track the user's path through a task wizard.

Since:
v4r2m0
Version:
1.0, 04/15/98
Author:
D. Petty
See Also:
WizardManager

Method Summary
Modifier and Type Method and Description
 int getNextPage(int currentPage)
          Indicates which wizard page should be displayed next.
 void setButtonStates(int currentPage)
          Sets the state of the buttons on the wizard panel.
 

Method Detail

getNextPage

int getNextPage(int currentPage)
Indicates which wizard page should be displayed next. This method is called when the user clicks the Next button on a wizard panel. The WizardManager calls this method on this object to figure out where to go next.

Parameters:
currentPage - The index of the page that is currently displayed.
Returns:
The index of the page which should be displayed next.
Since:
v4r2m0

setButtonStates

void setButtonStates(int currentPage)
Sets the state of the buttons on the wizard panel. This method is called when a new wizard page is displayed. It gives this WizardStateMachine an opportunity to enable/disable the Back, Next, Cancel, Finish and Help buttons.

Parameters:
currentPage - The index of the newly-displayed page.
Since:
v4r2m0