| UjoWizardBar |
The WizardBar
Example
// Create a step list:
List<UjoTab> tabs = new ArrayList<>();
tabs.add(new UjoTab("Step 1", "step1", Step1.class).setModel(model));
tabs.add(new UjoTab("Step 2", "step2", Step2.class).setModel(model));
// Wizard Panel:
add(tabbedPanel = new UjoWizardPanel<UjoTab>("wizard", tabs));
tabbedPanel.setVisibilityAllowed(true);
// Wizard Bar:
add(new UjoWizardBar("wizardBar", tabbedPanel) {
protected void onUpdate(AjaxRequestTarget target) {
// Refresh jQuery components:
target.appendJavaScript("location.reload(false);");
}
});
|