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

org.bklab.flow.base.AbstractFieldFactory Maven / Gradle / Ivy

There is a newer version: 22.0.1
Show newest version
/*
 * Copyright (c) 2008 - 2020. - Broderick Labs.
 * Author: Broderick Johansson
 * E-mail: [email protected]
 * Modify date:2020-07-02 09:33:44
 * _____________________________
 * Project name: fluent-vaadin-flow
 * Class name:org.bklab.flow.base.AbstractFieldFactory
 * Copyright (c) 2008 - 2020. - Broderick Labs.
 */

package org.bklab.flow.base;

import com.vaadin.flow.component.AbstractField;
import com.vaadin.flow.component.HasValue;
import org.bklab.flow.IFlowFactory;

@SuppressWarnings("unchecked")
public interface AbstractFieldFactory, E extends AbstractFieldFactory>
        extends IFlowFactory, HasValueAndElementFactory, C, E> {
    default E value(T value) {
        get().setValue(value);
        return (E) this;
    }

    default E valueChangeListener(HasValue.ValueChangeListener> valueChangeListener) {
        get().addValueChangeListener(valueChangeListener);
        return (E) this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy