All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bklab.flow.base.HasItemsAndComponentsFactory Maven / Gradle / Ivy

There is a newer version: 22.0.1
Show newest version
package org.bklab.flow.base;

import com.vaadin.flow.component.Component;
import com.vaadin.flow.data.binder.HasItemsAndComponents;
import org.bklab.flow.IFlowFactory;

@SuppressWarnings("unchecked")
public interface HasItemsAndComponentsFactory, E extends HasItemsAndComponentsFactory> extends IFlowFactory,
        HasComponentsFactory,
        HasItemsFactory {

    default E components(T afterItem, Component... components) {
        get().addComponents(afterItem, components);
        return (E) this;
    }

    default E prependComponents(T beforeItem, Component... components) {
        get().prependComponents(beforeItem, components);
        return (E) this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy