com.mantledillusion.vaadin.cotton.component.mixin.HasAutocapitalizeBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cotton Show documentation
Show all versions of cotton Show documentation
Cotton is a Vaadin extension destined for the ultimate of developer convenience.
package com.mantledillusion.vaadin.cotton.component.mixin;
import com.mantledillusion.vaadin.cotton.component.EntityBuilder;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.textfield.Autocapitalize;
import com.vaadin.flow.component.textfield.HasAutocapitalize;
/**
* {@link EntityBuilder} for {@link HasAutocapitalize} implementing {@link Component}s.
*
* @param
* The {@link Component} type implementing {@link HasAutocapitalize}.
* @param
* The final implementation type of {@link HasAutocapitalizeBuilder}.
*/
public interface HasAutocapitalizeBuilder>
extends EntityBuilder {
/**
* Builder method, configures the {@link Autocapitalize} to be set.
*
* @see HasAutocapitalize#setAutocapitalize(Autocapitalize)
* @param autocapitalize
* The {@link Autocapitalize} to use; might be null for no
* autocapitalization.
* @return this
*/
default B setAutocapitalize(Autocapitalize autocapitalize) {
return configure(hasAutocomplete -> hasAutocomplete.setAutocapitalize(autocapitalize));
}
}