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

org.bklab.flow.factory.ProgressBarFactory Maven / Gradle / Ivy

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

import com.vaadin.flow.component.progressbar.ProgressBar;
import org.bklab.flow.FlowFactory;
import org.bklab.flow.base.GeneratedVaadinProgressBarFactory;
import org.bklab.flow.base.HasSizeFactory;

public class ProgressBarFactory extends FlowFactory implements
        GeneratedVaadinProgressBarFactory,
        HasSizeFactory {
    public ProgressBarFactory() {
        this(new ProgressBar());
    }

    public ProgressBarFactory(double min, double max) {
        this(new ProgressBar(min, max));
    }

    public ProgressBarFactory(double min, double max, double value) {
        this(new ProgressBar(min, max, value));
    }

    public ProgressBarFactory(ProgressBar component) {
        super(component);
    }

    public ProgressBarFactory value(double value) {
        get().setValue(value);
        return this;
    }

    public ProgressBarFactory min(double min) {
        get().setMin(min);
        return this;
    }

    public ProgressBarFactory max(double max) {
        get().setMax(max);
        return this;
    }

    public ProgressBarFactory indeterminate(boolean indeterminate) {
        get().setIndeterminate(indeterminate);
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy