Class ReadOnlyHasValue<V>

java.lang.Object
com.vaadin.flow.data.binder.ReadOnlyHasValue<V>
Type Parameters:
V - the value type
All Implemented Interfaces:
HasValue<HasValue.ValueChangeEvent<V>,V>, Serializable

public class ReadOnlyHasValue<V> extends Object implements HasValue<HasValue.ValueChangeEvent<V>,V>, Serializable
Generic HasValue to use any type of component with Vaadin data binding.

Example:

 Label label = new Label();
 ReadOnlyHasValue<String> hasValue = new ReadOnlyHasValue<>(label::setText);
 binder.forField(hasValue).bind(SomeBean::getName, null);
 
Since:
1.0
See Also: