Interface ChangeHandler<C,T>

Type Parameters:
C - The type of the component.
T - The type of the value.
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 interface ChangeHandler<C,T>
Functional interface for handling changes in a component. This is not related to the native EventType.change event. Instead, it is used for any kind of change in a component. For instance, the text components support adding change handlers for native EventType.keyup, EventType.input, or EventType.change events.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <C,T> void
    fireIfChanged(C component, T oldValue, T value, List<ChangeHandler<C,T>> changeHandlers)
     
    void
    onChange(Event event, C component, T value)
     
  • Method Details

    • fireIfChanged

      static <C,T> void fireIfChanged(C component, T oldValue, T value, List<ChangeHandler<C,T>> changeHandlers)
    • onChange

      void onChange(Event event, C component, T value)