Interface ValueSource<V>

All Superinterfaces:
DataUnit, HasType<V>
All Known Subinterfaces:
EntityValueSource<E,V>
All Known Implementing Classes:
ContainerValueSource

public interface ValueSource<V> extends DataUnit, HasType<V>
Data component holding a typed value.
  • Method Details

    • getValue

      @Nullable V getValue()
    • setValue

      void setValue(@Nullable V value)
    • isReadOnly

      boolean isReadOnly()
    • addValueChangeListener

      com.vaadin.flow.shared.Registration addValueChangeListener(Consumer<ValueSource.ValueChangeEvent<V>> listener)
      Registers a new value change listener.
      Parameters:
      listener - the listener to be added
      Returns:
      a registration object for removing an event listener added to a source