public class DataLoaderAdapterKt
| Modifier and Type | Method and Description |
|---|---|
static <T> com.vaadin.data.provider.ConfigurableFilterDataProvider<T,com.github.mvysny.vokdataloader.Filter,com.github.mvysny.vokdataloader.Filter> |
asDataProvider(com.github.mvysny.vokdataloader.DataLoader<T> $receiver,
kotlin.jvm.functions.Function1<? super T,? extends java.lang.Object> idResolver)
Returns a VokDataProvider which loads data from this DataLoader.
|
public static <T> com.vaadin.data.provider.ConfigurableFilterDataProvider<T,com.github.mvysny.vokdataloader.Filter,com.github.mvysny.vokdataloader.Filter> asDataProvider(com.github.mvysny.vokdataloader.DataLoader<T> $receiver,
kotlin.jvm.functions.Function1<? super T,? extends java.lang.Object> idResolver)
Returns a VokDataProvider which loads data from this DataLoader.
idResolver - provides unique ID for every item. The ID is then used to differentiate items.
See com.vaadin.data.provider.DataProvider.getId for more details. Typically every item
has a primary key of type Long, but any Java/Kotlin object with properly written Any.equals and Any.hashCode can act as the ID,
including the item itself.