public class DynamicWizardModel extends AbstractWizardModel
wizard model, this model isn't very intelligent, but rather delegates much of
the work and knowledge to the dynamic wizard steps it uses.| Constructor and Description |
|---|
DynamicWizardModel(IDynamicWizardStep startStep)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
IWizardStep |
getActiveStep()
Gets the current active step the wizard should display.
|
IDynamicWizardStep |
getStartStep() |
boolean |
isLastAvailable()
Checks if the last button should be enabled.
|
boolean |
isLastStep(IWizardStep step)
Gets whether the specified step is the last step in the wizard.
|
boolean |
isNextAvailable()
Gets whether the next button should be enabled.
|
boolean |
isPreviousAvailable()
Gets whether the previous button should be enabled.
|
void |
last()
Takes the model to the last step in the wizard.
|
void |
next()
Increments the model to the next step.
|
void |
previous()
Takes the model to the previous step.This method must only be called if
IWizardModel.isPreviousAvailable() returns true. |
void |
reset()
Resets the model, setting it to the first step.
|
protected void |
setActiveStep(IDynamicWizardStep step)
Sets the active step.
|
Iterator<IWizardStep> |
stepIterator()
Returns an iterator over all the steps in the model.
|
addListener, cancel, finish, fireActiveStepChanged, fireWizardCancelled, fireWizardFinished, isCancelVisible, isLastVisible, removeListener, setCancelVisible, setLastVisiblepublic DynamicWizardModel(IDynamicWizardStep startStep)
startStep - first step in the wizardpublic IWizardStep getActiveStep()
IWizardModelIWizardModel.getActiveStep()public final IDynamicWizardStep getStartStep()
reset().public boolean isLastAvailable()
IWizardModelIWizardModel.isLastAvailable()public boolean isLastStep(IWizardStep step)
IWizardModelstep - the step to checkIWizardModel.isLastStep(org.apache.wicket.extensions.wizard.IWizardStep)public boolean isNextAvailable()
IWizardModelIWizardModel.isNextAvailable()public boolean isPreviousAvailable()
IWizardModelIWizardModel.isPreviousAvailable()public void last()
IWizardModelIWizardModel.isLastAvailable() returns true. Implementors should notify
listeners through calling
IWizardModelListener.onActiveStepChanged(IWizardStep).IWizardModel.last()public void next()
IWizardModelIWizardModel.isNextAvailable() returns true. Implementors should notify
listeners through calling
IWizardModelListener.onActiveStepChanged(IWizardStep).IWizardModel.next()public void previous()
IWizardModelIWizardModel.isPreviousAvailable() returns true. Implementors should notify
listeners through calling
IWizardModelListener.onActiveStepChanged(IWizardStep).IWizardModel.previous()public void reset()
IWizardModellisteners through calling
IWizardModelListener.onActiveStepChanged(IWizardStep).IWizardModel.reset()public Iterator<IWizardStep> stepIterator()
IWizardModelIWizardModel.stepIterator()protected final void setActiveStep(IDynamicWizardStep step)
step - the new active step step.Copyright © 2006–2015 Apache Software Foundation. All rights reserved.