Example usage for com.jgoodies.validation ValidationResult hasErrors

List of usage examples for com.jgoodies.validation ValidationResult hasErrors

Introduction

In this page you can find the example usage for com.jgoodies.validation ValidationResult hasErrors.

Prototype

public boolean hasErrors() 

Source Link

Document

Checks and answers whether this validation result contains a message of type ERROR .

Usage

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;
}