Example usage for org.apache.wicket.extensions.wizard.dynamic DynamicWizardModel setLastVisible

List of usage examples for org.apache.wicket.extensions.wizard.dynamic DynamicWizardModel setLastVisible

Introduction

In this page you can find the example usage for org.apache.wicket.extensions.wizard.dynamic DynamicWizardModel setLastVisible.

Prototype

public void setLastVisible(final boolean lastVisible) 

Source Link

Document

Configures if the last button should be displayed.

Usage

From source file:org.apache.openmeetings.web.pages.install.InstallWizard.java

License:Apache License

public InstallWizard(String id, String title) {
    super(id, title, new CompoundPropertyModel<InstallationConfig>(new InstallationConfig()), true);
    setTitle(Model.of(getModelObject().appName));
    welcomeStep = new WelcomeStep();
    dbStep = new DbStep();
    paramsStep1 = new ParamsStep1();
    paramsStep2 = new ParamsStep2();
    paramsStep3 = new ParamsStep3();
    paramsStep4 = new ParamsStep4();
    installStep = new InstallStep();

    DynamicWizardModel wmodel = new DynamicWizardModel(welcomeStep);
    wmodel.setCancelVisible(false);// w  ww  .  j a v a2s  .com
    wmodel.setLastVisible(true);
    init(wmodel);
}