List of usage examples for com.jgoodies.validation ValidationResult hasErrors
public boolean hasErrors()
From source file:se.streamsource.streamflow.client.ui.workspace.cases.general.forms.FormSubmissionWizardPageView.java
License:Apache License
@Override public WizardPanelNavResult allowNext(String s, Map map, Wizard wizard) { ValidationResult validation = validatePage(); validationResultModel.setResult(validation); if (!validation.hasErrors()) { // last page check needed ??? return WizardPanelNavResult.PROCEED; }/* w ww. j a v a 2 s. c o m*/ return WizardPanelNavResult.REMAIN_ON_PAGE; }
From source file:se.streamsource.streamflow.client.ui.workspace.cases.general.forms.FormSubmissionWizardPageView.java
License:Apache License
@Override public WizardPanelNavResult allowFinish(String s, Map map, Wizard wizard) { ValidationResult validationResult = validatePage(); validationResultModel.setResult(validationResult); if (validationResult.hasErrors()) { return WizardPanelNavResult.REMAIN_ON_PAGE; }/*from w w w . j a v a 2 s . com*/ return WizardPanelNavResult.PROCEED; }