Interface AbstractSignalsTest.TwoWayBindMethod<C,T>

Type Parameters:
C - the component type
T - 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.

@FunctionalInterface public static interface AbstractSignalsTest.TwoWayBindMethod<C,T>
A bind method that takes a signal and a write callback, for example AppLayout::bindDrawerOpened.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • 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 bind
      signal - the signal to bind
      writeCallback - the callback to propagate value changes back, or null for a one-way binding