use of com.evolveum.midpoint.web.component.wizard.Wizard in project midpoint by Evolveum.
the class PageResourceWizard method isCurrentStepComplete.
public boolean isCurrentStepComplete() {
Wizard wizard = (Wizard) get(ID_WIZARD);
WizardStep activeStep = (WizardStep) wizard.getModelObject().getActiveStep();
return activeStep == null || activeStep.isComplete();
}
use of com.evolveum.midpoint.web.component.wizard.Wizard in project midpoint by Evolveum.
the class PageResourceWizard method refreshIssues.
public void refreshIssues(@Nullable AjaxRequestTarget target) {
issuesModel.reset();
if (target != null) {
Wizard wizard = (Wizard) get(ID_WIZARD);
target.add(wizard.getIssuesPanel());
target.add(wizard.getSteps());
target.add(wizard.getButtons());
}
}
use of com.evolveum.midpoint.web.component.wizard.Wizard in project midpoint by Evolveum.
the class PageResourceWizard method initLayout.
private void initLayout() {
WizardModel wizardModel = new ResourceWizardModel();
if (!configurationOnly) {
wizardModel.add(new NameStep(modelRaw, this));
}
configurationStep = new ConfigurationStep(modelNoFetch, this);
wizardModel.add(configurationStep);
if (!configurationOnly) {
wizardModel.add(new SchemaStep(modelFull, this));
wizardModel.add(new SchemaHandlingStep(modelFull, this));
wizardModel.add(new SynchronizationStep(modelFull, this));
wizardModel.add(new CapabilityStep(modelFull, this));
}
Wizard wizard = new Wizard(ID_WIZARD, new Model<>(wizardModel), issuesModel);
wizard.setOutputMarkupId(true);
add(wizard);
}
Aggregations