Class ResourceWizardModel
java.lang.Object
org.apache.wicket.extensions.wizard.AbstractWizardModel
org.apache.wicket.extensions.wizard.WizardModel
com.evolveum.midpoint.web.page.admin.resources.ResourceWizardModel
- All Implemented Interfaces:
Serializable
,org.apache.wicket.extensions.wizard.IWizardModel
,org.apache.wicket.util.io.IClusterable
public class ResourceWizardModel
extends org.apache.wicket.extensions.wizard.WizardModel
Because ResourceWizard is so simple, we want to change Previous button semantics:
it should go to physically previous step (in the list of steps); not to the previously visited step.
Currently we ignore that history list grows bigger on each 'next' click.
This class provides the custom previous/isPreviousAvailable functionality.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.wicket.extensions.wizard.WizardModel
org.apache.wicket.extensions.wizard.WizardModel.ICondition
-
Field Summary
Fields inherited from class org.apache.wicket.extensions.wizard.WizardModel
TRUE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.wicket.extensions.wizard.WizardModel
add, add, allStepsComplete, findLastStep, findNextVisibleStep, getActiveStep, getConditions, isLastAvailable, isLastStep, isNextAvailable, last, next, reset, setActiveStep, stepIterator
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
Methods inherited from interface org.apache.wicket.extensions.wizard.IWizardModel
isFinishAvailable
-
Constructor Details
-
ResourceWizardModel
public ResourceWizardModel()
-
-
Method Details
-
previous
public void previous()- Specified by:
previous
in interfaceorg.apache.wicket.extensions.wizard.IWizardModel
- Overrides:
previous
in classorg.apache.wicket.extensions.wizard.WizardModel
-
isPreviousAvailable
public boolean isPreviousAvailable()- Specified by:
isPreviousAvailable
in interfaceorg.apache.wicket.extensions.wizard.IWizardModel
- Overrides:
isPreviousAvailable
in classorg.apache.wicket.extensions.wizard.WizardModel
-