org.bklab.flow.base.HasItemsFactory 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.
/*
* Copyright (c) 2008 - 2020. - Broderick Labs.
* Author: Broderick Johansson
* E-mail: [email protected]
* Modify date:2020-07-03 13:54:51
* _____________________________
* Project name: fluent-vaadin-flow
* Class name:org.bklab.flow.base.HasItemsFactory
* Copyright (c) 2008 - 2020. - Broderick Labs.
*/
package org.bklab.flow.base;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.data.binder.HasItems;
import org.bklab.flow.IFlowFactory;
import java.util.Collection;
import java.util.stream.Stream;
@SuppressWarnings("unchecked")
public interface HasItemsFactory, E extends HasItemsFactory> extends IFlowFactory {
default E items(Collection items) {
get().setItems(items);
return (E) this;
}
default E items(T... items) {
get().setItems(items);
return (E) this;
}
default E items(Stream items) {
get().setItems(items);
return (E) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy