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

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

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

import com.vaadin.flow.component.textfield.GeneratedVaadinTextArea;
import com.vaadin.flow.component.textfield.TextAreaVariant;
import org.bklab.flow.IFlowFactory;

@SuppressWarnings("unchecked")
public interface GeneratedVaadinTextAreaFactory, E extends GeneratedVaadinTextAreaFactory> extends IFlowFactory,
        AbstractSinglePropertyFieldFactory,
        HasStyleFactory,
        FocusableFactory,
        HasThemeFactory {
    default E removeThemeVariants(TextAreaVariant... removeThemeVariants) {
        get().removeThemeVariants(removeThemeVariants);
        return (E) this;
    }

    default E themeVariants(TextAreaVariant... themeVariants) {
        get().addThemeVariants(themeVariants);
        return (E) this;
    }

    default E lumoSmall() {
        get().addThemeVariants(TextAreaVariant.LUMO_SMALL);
        return (E) this;
    }

    default E lumoAlignCenter() {
        get().addThemeVariants(TextAreaVariant.LUMO_ALIGN_CENTER);
        return (E) this;
    }

    default E lumoAlignRight() {
        get().addThemeVariants(TextAreaVariant.LUMO_ALIGN_RIGHT);
        return (E) this;
    }

    default E materialAlwaysFloatLabel() {
        get().addThemeVariants(TextAreaVariant.MATERIAL_ALWAYS_FLOAT_LABEL);
        return (E) this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy