Example usage for org.apache.wicket.extensions.wizard IWizardModel stepIterator

List of usage examples for org.apache.wicket.extensions.wizard IWizardModel stepIterator

Introduction

In this page you can find the example usage for org.apache.wicket.extensions.wizard IWizardModel stepIterator.

Prototype

Iterator<IWizardStep> stepIterator();

Source Link

Document

Returns an iterator over all the steps in the model.

Usage

From source file:org.apache.syncope.client.console.wizards.AjaxWizard.java

License:Apache License

@Override
protected void init(final IWizardModel wizardModel) {
    super.init(wizardModel);
    getForm().remove(FEEDBACK_ID);//  w w w. j  av a  2s .  c o m

    if (mode == Mode.READONLY) {
        final Iterator<IWizardStep> iter = wizardModel.stepIterator();
        while (iter.hasNext()) {
            WizardStep.class.cast(iter.next()).setEnabled(false);
        }
    }
}