Package com.vaadin.tests
Interface AbstractSignalsTest.TwoWayBindMethod<C,T>
- Type Parameters:
C- the component typeT- the property value type
- Enclosing class:
AbstractSignalsTest
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A bind method that takes a signal and a write callback, for example
AppLayout::bindDrawerOpened.-
Method Summary
-
Method Details
-
bind
void bind(C component, com.vaadin.flow.signals.Signal<T> signal, com.vaadin.flow.function.SerializableConsumer<T> writeCallback) Binds the signal to the component property.- Parameters:
component- the component to bindsignal- the signal to bindwriteCallback- the callback to propagate value changes back, ornullfor a one-way binding
-