Interface ValueSource<V>

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

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

    • getValue

      @Nullable V getValue()
    • setValue

      void setValue(@Nullable V value)
    • isReadOnly

      boolean isReadOnly()
    • getType

      Class<V> getType()
      Returns:
      type of value
    • addValueChangeListener

      Subscription 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