Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/org/vaadin/teemu/wizards/Wizard.java
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,20 @@ protected void activateStep(WizardStep step) {
}
}

contentPanel.removeAllComponents();
contentPanel.addComponent(step.getContent());
addStepComponent(contentPanel, step);
currentStep = step;

updateUriFragment();
updateButtons();
fireEvent(new WizardStepActivationEvent(this, step));
}

protected void activateStep(String id) {
protected void addStepComponent(Panel wizardContentPanel, WizardStep step) {
wizardContentPanel.removeAllComponents();
wizardContentPanel.addComponent(step.getContent());
}

protected void activateStep(String id) {
WizardStep step = idMap.get(id);
if (step != null) {
// check that we don't go past the lastCompletedStep by using the id
Expand Down