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

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

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

import com.vaadin.flow.component.progressbar.GeneratedVaadinProgressBar;
import com.vaadin.flow.component.progressbar.ProgressBarVariant;
import org.bklab.flow.IFlowFactory;

@SuppressWarnings("unchecked")
public interface GeneratedVaadinProgressBarFactory, E extends GeneratedVaadinProgressBarFactory> extends IFlowFactory {
    default E themeVariants(ProgressBarVariant... themeVariants) {
        get().addThemeVariants(themeVariants);
        return (E) this;
    }

    default E removeThemeVariants(ProgressBarVariant... removeThemeVariants) {
        get().removeThemeVariants(removeThemeVariants);
        return (E) this;
    }

    default E lumoContrast() {
        get().addThemeVariants(ProgressBarVariant.LUMO_CONTRAST);
        return (E) this;
    }

    default E lumoError() {
        get().addThemeVariants(ProgressBarVariant.LUMO_ERROR);
        return (E) this;
    }

    default E lumoSuccess() {
        get().addThemeVariants(ProgressBarVariant.LUMO_SUCCESS);
        return (E) this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy