|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.extensions.wizard.AbstractWizardModel
org.apache.wicket.extensions.wizard.dynamic.DynamicWizardModel
public class DynamicWizardModel
Wizard model that is specialized on dynamic wizards. Unlike the default, static
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 Summary | |
---|---|
DynamicWizardModel(IDynamicWizardStep startStep)
Construct. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.wicket.extensions.wizard.AbstractWizardModel |
---|
addListener, cancel, finish, fireActiveStepChanged, fireWizardCancelled, fireWizardFinished, isCancelVisible, isLastVisible, removeListener, setCancelVisible, setLastVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicWizardModel(IDynamicWizardStep startStep)
startStep
- first step in the wizardMethod Detail |
---|
public IWizardStep 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 check
IWizardModel.isLastStep(org.apache.wicket.extensions.wizard.IWizardStep)
public boolean isNextAvailable()
IWizardModel
IWizardModel.isNextAvailable()
public boolean isPreviousAvailable()
IWizardModel
IWizardModel.isPreviousAvailable()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |