org.bklab.flow.base.HasOrderedComponentsFactory 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.component.HasOrderedComponents;
import org.bklab.flow.IFlowFactory;
@SuppressWarnings("unchecked")
public interface HasOrderedComponentsFactory> extends
IFlowFactory, HasComponentsFactory {
default E indexOf(Component indexOf) {
get().indexOf(indexOf);
return (E) this;
}
default E replace(Component oldComponent, Component newComponent) {
get().replace(oldComponent, newComponent);
return (E) this;
}
default E remove(Component... remove) {
get().remove(remove);
return (E) this;
}
default E removeAll() {
get().removeAll();
return (E) this;
}
default E componentAsFirst(Component componentAsFirst) {
get().addComponentAsFirst(componentAsFirst);
return (E) this;
}
default E componentAtIndex(int index, Component component) {
get().addComponentAtIndex(index, component);
return (E) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy