Example usage for org.apache.wicket.extensions.wizard Wizard VIEW_ID

List of usage examples for org.apache.wicket.extensions.wizard Wizard VIEW_ID

Introduction

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

Prototype

String VIEW_ID

To view the source code for org.apache.wicket.extensions.wizard Wizard VIEW_ID.

Click Source Link

Document

Component id of the view panel (where the main wizard contents go) as used by the default wizard panel.

Usage

From source file:com.googlecode.wicket.jquery.ui.widget.wizard.AbstractWizard.java

License:Apache License

/**
 * Initialization// w  w  w. j a  v a2s. c  o  m
 * @param wizardModel the {@link IWizardModel}
 */
protected void init(final IWizardModel wizardModel) {
    if (wizardModel == null) {
        throw new IllegalArgumentException("argument wizardModel must be not null");
    }

    this.wizardModel = wizardModel;
    this.wizardModel.addListener(this);

    // form //
    this.form = new Form<T>(Wizard.FORM_ID);
    this.add(this.form);

    // header (title + summary )//
    this.form.add(new EmptyPanel(Wizard.HEADER_ID));

    // Feedback //
    this.feedback = new JQueryFeedbackPanel(Wizard.FEEDBACK_ID);
    this.form.add(this.feedback);

    // dummy view to be replaced //
    this.form.add(new EmptyPanel(Wizard.VIEW_ID));
    //      this.form.add(newOverviewBar(Wizard.OVERVIEW_ID)); //OverviewBar not handled
}

From source file:com.googlecode.wicket.jquery.ui.widget.wizard.AbstractWizard.java

License:Apache License

@Override
public void onActiveStepChanged(IWizardStep step) {
    this.form.replace(step.getHeader(Wizard.HEADER_ID, this, this));
    this.form.replace(step.getView(Wizard.VIEW_ID, this, this));
}