org.bklab.flow.base.GeneratedVaadinTextFieldFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-vaadin-flow Show documentation
Show all versions of fluent-vaadin-flow Show documentation
Broderick Labs for fluent vaadin flow. Inherits common Vaadin components.
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