Package org.vaadin.miki.markers
Interface WithItemsMixin<T,SELF extends com.vaadin.flow.data.binder.HasItems<T>>
-
- Type Parameters:
T- Type of items to add.SELF- Self type.
- All Superinterfaces:
com.vaadin.flow.data.binder.HasItems<T>,Serializable
- All Known Implementing Classes:
GridMultiSelect,GridSelect,ItemGrid,SuperTabs
public interface WithItemsMixin<T,SELF extends com.vaadin.flow.data.binder.HasItems<T>> extends com.vaadin.flow.data.binder.HasItems<T>Mixin interface to allow chaining of setting items.- Since:
- 2020-04-30
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SELFwithItems(Collection<T> items)ChainsHasItems.setItems(Collection)and returns itself.default SELFwithItems(Stream<T> items)ChainsHasItems.setItems(Stream)and returns itself.default SELFwithItems(T... items)ChainsHasItems.setItems(Object[])and returns itself.
-
-
-
Method Detail
-
withItems
default SELF withItems(T... items)
ChainsHasItems.setItems(Object[])and returns itself.- Parameters:
items- Items to add.- Returns:
- This.
- See Also:
HasItems.setItems(Object[])
-
withItems
default SELF withItems(Collection<T> items)
ChainsHasItems.setItems(Collection)and returns itself.- Parameters:
items- Items to add.- Returns:
- This.
- See Also:
HasItems.setItems(Collection)
-
-