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

org.bklab.flow.base.GeneratedVaadinTextFieldFactory 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.GeneratedVaadinTextField;
import com.vaadin.flow.component.textfield.TextFieldVariant;
import org.bklab.flow.IFlowFactory;

@SuppressWarnings("unchecked")
public interface GeneratedVaadinTextFieldFactory, E extends GeneratedVaadinTextFieldFactory> extends
        AbstractSinglePropertyFieldFactory,
        IFlowFactory,
        HasStyleFactory,
        FocusableFactory,
        HasThemeFactory {

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy