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

com.mantledillusion.vaadin.cotton.component.mixin.HasAutocapitalizeBuilder Maven / Gradle / Ivy

Go to download

Cotton is a Vaadin extension destined for the ultimate of developer convenience.

There is a newer version: 2.3.4
Show newest version
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));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy