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

com.vaadin.server.Setter Maven / Gradle / Ivy

There is a newer version: 8.27.3
Show newest version
/*
 * 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.server;

import java.io.Serializable;
import java.util.function.BiConsumer;

import com.vaadin.data.Binder;

/**
 * The function to write the field value to the bean property.
 *
 * @see BiConsumer
 * @see Binder#bind(com.vaadin.data.HasValue, com.vaadin.data.ValueProvider, Setter)
 * @param 
 *            the type of the target bean
 * @param 
 *            the field value type to be written to the bean
 *
 * @since 8.0
 * @author Vaadin Ltd
 *
 */
@FunctionalInterface
public interface Setter
        extends BiConsumer, Serializable {

    /**
     * Save value to the bean property.
     *
     * @param bean
     *            the target bean
     * @param fieldvalue
     *            the field value to be written to the bean
     */
    @Override
    void accept(BEAN bean, FIELDVALUE fieldvalue);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy