Interface EntityOptions<E>

All Superinterfaces:
DataUnit, EntityDataUnit, Options<E>
All Known Implementing Classes:
ContainerOptions, ListEntityOptions, MapEntityOptions

public interface EntityOptions<E> extends Options<E>, EntityDataUnit
  • Method Details

    • setSelectedItem

      void setSelectedItem(@Nullable E item)
      Set current item in the source.
      Parameters:
      item - the item to set
    • containsItem

      boolean containsItem(@Nullable E item)
      Returns:
      true if the underlying collection contains an item with the specified ID
    • updateItem

      void updateItem(E item)
      Update an item in the collection if it is already there.
    • refresh

      void refresh()
      Refreshes the source moving it to the BindingState.ACTIVE state
    • addValueChangeListener

      Subscription addValueChangeListener(Consumer<EntityOptions.ValueChangeEvent<E>> listener)