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 |
---|---|
IDynamicWizardStep |
getActiveStep()
Gets the current active step the wizard should display.
|
IDynamicWizardStep |
getStartStep() |
boolean |
isFinishAvailable()
Gets whether the finish button should be enabled.
|
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, setLastVisible
public DynamicWizardModel(IDynamicWizardStep startStep)
startStep
- first step in the wizardpublic IDynamicWizardStep getActiveStep()
IWizardModel
IWizardModel.getActiveStep()
public final IDynamicWizardStep getStartStep()
reset()
.public boolean isLastAvailable()
IWizardModel
IWizardModel.isLastAvailable()
public boolean isLastStep(IWizardStep step)
IWizardModel
step
- the step to checkIWizardModel.isLastStep(org.apache.wicket.extensions.wizard.IWizardStep)
public boolean isNextAvailable()
IWizardModel
IWizardModel.isNextAvailable()
public boolean isPreviousAvailable()
IWizardModel
IWizardModel.isPreviousAvailable()
public boolean isFinishAvailable()
IWizardModel
By default the finish button is available for the last step only.
IWizardModel.isLastStep(IWizardStep)
,
IWizardModel.finish()
public void last()
IWizardModel
IWizardModel.isLastAvailable()
returns true. Implementors should notify
listeners
through calling
IWizardModelListener.onActiveStepChanged(IWizardStep)
.IWizardModel.last()
public void next()
IWizardModel
IWizardModel.isNextAvailable()
returns true. Implementors should notify
listeners
through calling
IWizardModelListener.onActiveStepChanged(IWizardStep)
.IWizardModel.next()
public void previous()
IWizardModel
IWizardModel.isPreviousAvailable()
returns true. Implementors should notify
listeners
through calling
IWizardModelListener.onActiveStepChanged(IWizardStep)
.IWizardModel.previous()
public void reset()
IWizardModel
listeners
through calling
IWizardModelListener.onActiveStepChanged(IWizardStep)
.IWizardModel.reset()
public Iterator<IWizardStep> stepIterator()
IWizardModel
IWizardModel.stepIterator()
protected final void setActiveStep(IDynamicWizardStep step)
step
- the new active step step.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.