com.vaadin.flow.function.ValueProvider

Here are the examples of the java api com.vaadin.flow.function.ValueProvider taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : Col.java
with Apache License 2.0
from kochetkov-ma

@Builder(builderMethodName = "with")
@Value
public clreplaced Col<ROW_OBJECT> {

    String name;

    @Builder.Default
    boolean sortable = true;

    ValueProvider<ROW_OBJECT, ?> value;

    @Builder.Default
    Type type = Type.TEXT;

    public static <ROW_OBJECT> ValueProvider<ROW_OBJECT, ?> prop(String propName) {
        return row -> Reflect.on(row).field(propName).get();
    }

    public enum Type {

        TEXT, LINK, NUMBER
    }
}