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

com.vaadin.data.BinderValidationStatusHandler 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.event.SerializableEventListener;

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

* {@link Binder#setValidationStatusHandler(BinderValidationStatusHandler) * Register} an instance of this class to be able to customize validation status * handling. *

* The default handler will show * {@link com.vaadin.ui.AbstractComponent#setComponentError(com.vaadin.server.ErrorMessage) * an error message} for failed field validations. For bean level validation * errors it will display the first error message in * {@link Binder#setStatusLabel(com.vaadin.ui.Label) status label}, if one has * been set. * * @author Vaadin Ltd * * @see BinderValidationStatus * @see Binder#validate() * @see BindingValidationStatus * * @param * the bean type of binder * * @since 8.0 */ @FunctionalInterface public interface BinderValidationStatusHandler extends SerializableEventListener { /** * Invoked when the validation status has changed in binder. * * @param statusChange * the changed status */ void statusChange(BinderValidationStatus statusChange); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy