Interface HasAutocomplete
-
- All Superinterfaces:
HasElement
,Serializable
- All Known Implementing Classes:
AbstractNumberField
,BigDecimalField
,EmailField
,IntegerField
,NumberField
,PasswordField
,TextArea
,TextField
public interface HasAutocomplete extends HasElement
Mixin interface for fields withautocomplete
attribute.
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTOCOMPLETE_ATTRIBUTE
Name of @{code autocomplete} attribute.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Autocomplete
getAutocomplete()
Gets theAutocomplete
option of the field.default void
setAutocomplete(Autocomplete autocomplete)
Sets theAutocomplete
attribute for indicating whether the value of this component can be automatically completed by the browser.-
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
-
-
-
Field Detail
-
AUTOCOMPLETE_ATTRIBUTE
static final String AUTOCOMPLETE_ATTRIBUTE
Name of @{code autocomplete} attribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
setAutocomplete
default void setAutocomplete(Autocomplete autocomplete)
Sets theAutocomplete
attribute for indicating whether the value of this component can be automatically completed by the browser.If not set, devices may apply their own defaults.
See autocomplete attribute for more information.
- Parameters:
autocomplete
- theautocomplete
value, ornull
to unset
-
getAutocomplete
default Autocomplete getAutocomplete()
Gets theAutocomplete
option of the field.- Returns:
- the
autocomplete
value, ornull
if not set
-
-