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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceWizardModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isPreviousAvailable()
void
previous()
-
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
-
-
-
-
Method Detail
-
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
-
-