All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.data.BindingValidationStatusHandler Maven / Gradle / Ivy

/*
 * Copyright (C) 2000-2024 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */
package com.vaadin.data;

import com.vaadin.data.Binder.BindingBuilder;
import com.vaadin.event.SerializableEventListener;

/**
 * Handler for {@link BindingValidationStatus} changes.
 * 

* {@link BindingBuilder#withValidationStatusHandler(BindingValidationStatusHandler)} * Register} an instance of this class to be able to override the default * handling, which is to show * {@link com.vaadin.ui.AbstractComponent#setComponentError(com.vaadin.server.ErrorMessage) * an error message} for failed field validations. * * @author Vaadin Ltd * * @see BindingBuilder#withValidationStatusHandler(BindingValidationStatusHandler) * @see BindingValidationStatus * * @since 8.0 * */ @FunctionalInterface public interface BindingValidationStatusHandler extends SerializableEventListener { /** * Invoked when the validation status has changed in a binding. * * @param statusChange * the changed status */ public void statusChange(BindingValidationStatus statusChange); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy