org.bklab.flow.base.HasDataViewFactory 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.DataProvider;
import com.vaadin.flow.data.provider.DataView;
import com.vaadin.flow.data.provider.HasDataView;
import com.vaadin.flow.data.provider.InMemoryDataProvider;
import org.bklab.flow.IFlowFactory;
@SuppressWarnings("unchecked")
public interface HasDataViewFactory,
C extends Component & HasDataView,
E extends HasDataViewFactory> extends IFlowFactory {
default E setItems(DataProvider dataProvider) {
get().setItems(dataProvider);
return (E) this;
}
default E setItems(InMemoryDataProvider dataProvider) {
//noinspection rawtypes
this.setItems((DataProvider) dataProvider);
return (E) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy