Class 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
    • 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
    • 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
      • Methods inherited from interface org.apache.wicket.extensions.wizard.IWizardModel

        isFinishAvailable
    • Constructor Detail

      • ResourceWizardModel

        public ResourceWizardModel()
    • Method Detail

      • previous

        public void previous()
        Specified by:
        previous in interface org.apache.wicket.extensions.wizard.IWizardModel
        Overrides:
        previous in class org.apache.wicket.extensions.wizard.WizardModel
      • isPreviousAvailable

        public boolean isPreviousAvailable()
        Specified by:
        isPreviousAvailable in interface org.apache.wicket.extensions.wizard.IWizardModel
        Overrides:
        isPreviousAvailable in class org.apache.wicket.extensions.wizard.WizardModel