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

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

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

import com.vaadin.flow.component.icon.Icon;
import com.vaadin.flow.component.icon.VaadinIcon;
import org.bklab.flow.FlowFactory;
import org.bklab.flow.base.ClickNotifierFactory;
import org.bklab.flow.base.HasStyleFactory;

public class IconFactory extends FlowFactory implements
        HasStyleFactory,
        ClickNotifierFactory {

    public IconFactory() {
        this(new Icon());
    }

    public IconFactory(Icon component) {
        super(component);
    }

    public IconFactory(VaadinIcon icon) {
        this(new Icon(icon));
    }

    public IconFactory(String icon) {
        this(new Icon(icon));
    }

    @Deprecated
    public IconFactory(String collection, String icon) {
        this(new Icon(collection, icon));
    }

    public IconFactory size(String size) {
        get().setSize(size);
        return this;
    }

    public IconFactory color(String color) {
        get().setColor(color);
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy