Module org.apache.wicket.extensions
Interface IDynamicWizardStep
- All Superinterfaces:
IClusterable
,IWizardStep
,Serializable
- All Known Implementing Classes:
DynamicWizardStep
Wizard step that is intelligent enough to know how to navigate to the next and previous steps.
Using such steps, you can build wizard that consists of steps that are linked on the fly rather
than in a static, pre-determined fashion. The basic idea here is that the wizard step takes over
much of what otherwise would be done by the wizard model. You trade simplicity for flexibility.
Warning: only use these steps with the DynamicWizardModel
.
- Author:
- eelcohillenius
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Gets whether the finish button should be enabled.boolean
Checks if the last button should be enabled.boolean
Gets whether this is the last step in the wizard.boolean
Gets whether the next button should be enabled.boolean
Gets whether the previous button should be enabled.last()
Gets the next wizard step from here.next()
Gets the next wizard step from here.previous()
Gets the previous wizard step from here.Methods inherited from interface org.apache.wicket.extensions.wizard.IWizardStep
applyState, getHeader, getView, init, isComplete
-
Method Details
-
isLastStep
boolean isLastStep()Gets whether this is the last step in the wizard.- Returns:
- True if its the final step in the wizard, false otherwise.
- See Also:
-
isPreviousAvailable
boolean isPreviousAvailable()Gets whether the previous button should be enabled.- Returns:
- True if the previous button should be enabled, false otherwise.
- See Also:
-
previous
Gets the previous wizard step from here. Can only be called whenisPreviousAvailable()
returns true.- Returns:
- The next wizard step. May not be null unless this is the first step (in which case it should never be called).
-
isNextAvailable
boolean isNextAvailable()Gets whether the next button should be enabled.- Returns:
- True if the next button should be enabled, false otherwise.
- See Also:
-
next
Gets the next wizard step from here. Can only be called whenisNextAvailable()
returns true.- Returns:
- The next wizard step. May not be null unless this is the last step (
isLastStep()
returns true).
-
isLastAvailable
boolean isLastAvailable()Checks if the last button should be enabled.- Returns:
- true if the last button should be enabled, false otherwise.
- See Also:
-
last
Gets the next wizard step from here. Can only be called whenDynamicWizardModel.isLastAvailable()
returns true.- Returns:
- The next wizard step. May not be null.
-
isFinishAvailable
Gets whether the finish button should be enabled.- Returns:
- True if the finish button should be enabled, false otherwise.
- See Also:
-