Module org.apache.wicket.extensions
Interface IWizardStep
- All Superinterfaces:
IClusterable
,Serializable
- All Known Subinterfaces:
IDynamicWizardStep
- All Known Implementing Classes:
DynamicWizardStep
,StaticContentStep
,WizardStep
Models one step in a wizard, and is the equivalent of one panel in a wizard from an end-user's
perspective.
Typically, you would extend panel based wizard steps
and provide a custom
panel for the step instead of directly implementing this interface.
Swing Wizard Framework served as a valuable source of inspiration.
- Author:
- Eelco Hillenius
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is called whenever the wizard proceeds from this step to another step.Gets the header component for this step.Returns the current view this step is displaying.void
init
(IWizardModel wizardModel) Initializes this step with the model it will belong to.boolean
Checks if this step is complete.
-
Method Details
-
init
Initializes this step with the model it will belong to.This method is called at least once before this step becomes the actual step.
- Parameters:
wizardModel
- the owning wizard model
-
getHeader
Gets the header component for this step. This component is displayed in a special section of the wizard.This method is called every time this step becomes the active step of the wizard.
- Parameters:
id
- The id that the component should be created withparent
- The parent component (for post 1.2)wizard
- The wizard component the header will be placed on- Returns:
- The header component
-
getView
Returns the current view this step is displaying. This component will be displayed in the main section of the wizard.This method is called every time this step becomes the active step of the wizard.
- Parameters:
id
- The id that the component should be created withparent
- The parent component (for post 1.2)wizard
- The wizard component the header will be placed on- Returns:
- The current view of the step.
-
applyState
void applyState()This method is called whenever the wizard proceeds from this step to another step. It is not called when returning to a previous step. -
isComplete
boolean isComplete()Checks if this step is complete. This method should returntrue
if the wizard can proceed to the next step.- Returns:
true
if the wizard can proceed from this step,false
otherwise.- See Also:
-