org.bklab.flow.base.HasLazyDataViewFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-vaadin-flow Show documentation
Show all versions of fluent-vaadin-flow Show documentation
Broderick Labs for fluent vaadin flow. Inherits common Vaadin components.
package org.bklab.flow.base;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.data.provider.BackEndDataProvider;
import com.vaadin.flow.data.provider.CallbackDataProvider;
import com.vaadin.flow.data.provider.HasLazyDataView;
import com.vaadin.flow.data.provider.LazyDataView;
import org.bklab.flow.IFlowFactory;
@SuppressWarnings("unchecked")
public interface HasLazyDataViewFactory,
C extends Component & HasLazyDataView,
E extends HasLazyDataViewFactory> extends IFlowFactory {
default E items(CallbackDataProvider.FetchCallback fetchCallback) {
get().setItems(fetchCallback);
return (E) this;
}
default E items(CallbackDataProvider.FetchCallback fetchCallback,
CallbackDataProvider.CountCallback countCallback) {
get().setItems(fetchCallback, countCallback);
return (E) this;
}
default E items(BackEndDataProvider backEndDataProvider) {
get().setItems(backEndDataProvider);
return (E) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy