Class PasswordField
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.AbstractField<C,T>
-
- com.vaadin.flow.component.AbstractSinglePropertyField<R,T>
-
- com.vaadin.flow.component.textfield.GeneratedVaadinTextField<R,T>
-
- com.vaadin.flow.component.textfield.GeneratedVaadinPasswordField<PasswordField,String>
-
- com.vaadin.flow.component.textfield.PasswordField
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<PasswordField>,com.vaadin.flow.component.CompositionNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<PasswordField>,com.vaadin.flow.component.FocusNotifier<PasswordField>,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasHelper,com.vaadin.flow.component.HasLabel,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.HasValidation,com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>,String>,com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>,String>,com.vaadin.flow.component.InputNotifier,com.vaadin.flow.component.KeyNotifier,HasAllowedCharPattern,HasClearButton,HasThemeVariant<TextFieldVariant>,HasTooltip,HasAutocapitalize,HasAutocomplete,HasAutocorrect,HasPrefixAndSuffix,com.vaadin.flow.data.binder.HasValidator<String>,com.vaadin.flow.data.value.HasValueChangeMode,Serializable
public class PasswordField extends GeneratedVaadinPasswordField<PasswordField,String> implements com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasValidation, com.vaadin.flow.data.value.HasValueChangeMode, HasPrefixAndSuffix, com.vaadin.flow.component.InputNotifier, com.vaadin.flow.component.KeyNotifier, com.vaadin.flow.component.CompositionNotifier, HasAutocomplete, HasAutocapitalize, HasAutocorrect, com.vaadin.flow.component.HasHelper, com.vaadin.flow.component.HasLabel, HasClearButton, HasAllowedCharPattern, HasThemeVariant<TextFieldVariant>, HasTooltip, com.vaadin.flow.data.binder.HasValidator<String>
Password Field is an input field for entering passwords. The input is masked by default. On mobile devices the last typed letter is shown for a brief moment. The masking can be toggled using an optional reveal button.- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.textfield.GeneratedVaadinTextField
GeneratedVaadinTextField.ChangeEvent<R extends GeneratedVaadinTextField<R,?>>, GeneratedVaadinTextField.InvalidChangeEvent<R extends GeneratedVaadinTextField<R,?>>
-
Nested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField
com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V extends Object>
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>
-
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
com.vaadin.flow.component.HasValue.ValueChangeEvent<V extends Object>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>
-
-
Field Summary
-
Fields inherited from interface com.vaadin.flow.component.textfield.HasAutocapitalize
AUTOCAPITALIZE_ATTRIBUTE
-
Fields inherited from interface com.vaadin.flow.component.textfield.HasAutocomplete
AUTOCOMPLETE_ATTRIBUTE
-
Fields inherited from interface com.vaadin.flow.component.textfield.HasAutocorrect
AUTOCORRECT_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description PasswordField()Constructs an emptyPasswordField.PasswordField(com.vaadin.flow.component.HasValue.ValueChangeListener<? super com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>> listener)Constructs an emptyPasswordFieldwith a value change listener.PasswordField(String label)Constructs an emptyPasswordFieldwith the given label.PasswordField(String label, com.vaadin.flow.component.HasValue.ValueChangeListener<? super com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>> listener)Constructs an emptyPasswordFieldwith a value change listener and a label.PasswordField(String label, String placeholder)Constructs an emptyPasswordFieldwith the given label and placeholder text.PasswordField(String label, String initialValue, com.vaadin.flow.component.HasValue.ValueChangeListener<? super com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>> listener)Constructs aPasswordFieldwith a value change listener, a label and an initial value.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddThemeVariants(TextFieldVariant... variants)com.vaadin.flow.data.binder.Validator<String>getDefaultValidator()StringgetEmptyValue()StringgetErrorMessage()StringgetLabel()String used for the label element.intgetMaxLength()Maximum number of characters (in Unicode code points) that the user can enter.intgetMinLength()Minimum number of characters (in Unicode code points) that the user can enter.StringgetPattern()A regular expression that the value is checked against.StringgetPlaceholder()A hint to the user of what can be entered in the component.StringgetTitle()The text usually displayed in a tooltip popup when the mouse is over the field.StringgetValue()Returns the current value of the password field.com.vaadin.flow.data.value.ValueChangeModegetValueChangeMode()intgetValueChangeTimeout()booleanisAutofocus()Specify that this control should have input focus when the page loads.booleanisAutoselect()Specifies if the field value gets automatically selected when the field gains focus.protected booleanisFeatureFlagEnabled(com.vaadin.experimental.Feature feature)Returns true if the given feature flag is enabled, false otherwise.booleanisInvalid()booleanisPreventInvalidInput()Deprecated.Since 23.2, this API is deprecated.booleanisRequired()Specifies that the user must fill in a value.booleanisRevealButtonVisible()Set tofalseto hide the eye icon which toggles the password visibility.protected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent)voidremoveThemeVariants(TextFieldVariant... variants)voidsetAutofocus(boolean autofocus)Description copied from corresponding location in WebComponent:voidsetAutoselect(boolean autoselect)Set totrueto always have the field value automatically selected when the field gains focus,falseotherwise.voidsetErrorMessage(String errorMessage)Description copied from corresponding location in WebComponent:voidsetInvalid(boolean invalid)Description copied from corresponding location in WebComponent:voidsetLabel(String label)Description copied from corresponding location in WebComponent:voidsetMaxLength(int maxLength)Maximum number of characters (in Unicode code points) that the user can enter.voidsetMinLength(int minLength)Minimum number of characters (in Unicode code points) that the user can enter.voidsetPattern(String pattern)Description copied from corresponding location in WebComponent:voidsetPlaceholder(String placeholder)Description copied from corresponding location in WebComponent:voidsetPreventInvalidInput(boolean preventInvalidInput)Deprecated.Since 23.2, this API is deprecated in favor ofHasAllowedCharPattern.setAllowedCharPattern(String)voidsetRequired(boolean required)Description copied from corresponding location in WebComponent:voidsetRequiredIndicatorVisible(boolean requiredIndicatorVisible)voidsetRevealButtonVisible(boolean revealButtonVisible)Set tofalseto hide the eye icon which toggles the password visibility.voidsetTitle(String title)Description copied from corresponding location in WebComponent:voidsetValue(String value)Sets the value of this password field.voidsetValueChangeMode(com.vaadin.flow.data.value.ValueChangeMode valueChangeMode)voidsetValueChangeTimeout(int valueChangeTimeout)protected voidvalidate()Performs server-side validation of the current value.-
Methods inherited from class com.vaadin.flow.component.textfield.GeneratedVaadinPasswordField
isPasswordVisibleBoolean, isRevealButtonHiddenBoolean, setRevealButtonHidden
-
Methods inherited from class com.vaadin.flow.component.textfield.GeneratedVaadinTextField
addChangeListener, addInvalidChangeListener, addToInput, addToPrefix, addToSuffix, checkValidity, getAutocapitalizeString, getAutocompleteString, getAutocorrectString, getErrorMessageString, getLabelString, getListString, getMaxlengthDouble, getMinlengthDouble, getNameString, getPatternString, getPlaceholderString, getTitleString, isAutofocusBoolean, isAutoselectBoolean, isDisabledBoolean, isInvalidBoolean, isPreventInvalidInputBoolean, isReadonlyBoolean, isRequiredBoolean, remove, removeAll, setAutocapitalize, setAutocomplete, setAutocorrect, setDisabled, setList, setMaxlength, setMinlength, setName, setReadonly
-
Methods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField
getSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEvent
-
Methods inherited from class com.vaadin.flow.component.AbstractField
addValueChangeListener, isEmpty, setModelValue, valueEquals
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.CompositionNotifier
addCompositionEndListener, addCompositionStartListener, addCompositionUpdateListener
-
Methods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
-
Methods inherited from interface com.vaadin.flow.component.shared.HasAllowedCharPattern
getAllowedCharPattern, setAllowedCharPattern
-
Methods inherited from interface com.vaadin.flow.component.textfield.HasAutocapitalize
getAutocapitalize, setAutocapitalize
-
Methods inherited from interface com.vaadin.flow.component.textfield.HasAutocomplete
getAutocomplete, setAutocomplete
-
Methods inherited from interface com.vaadin.flow.component.textfield.HasAutocorrect
isAutocorrect, setAutocorrect
-
Methods inherited from interface com.vaadin.flow.component.shared.HasClearButton
isClearButtonVisible, setClearButtonVisible
-
Methods inherited from interface com.vaadin.flow.component.HasHelper
getHelperComponent, getHelperText, setHelperComponent, setHelperText
-
Methods inherited from interface com.vaadin.flow.component.textfield.HasPrefixAndSuffix
getPrefixComponent, getSuffixComponent, setPrefixComponent, setSuffixComponent
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
-
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Methods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
-
Methods inherited from interface com.vaadin.flow.component.shared.HasTooltip
getTooltip, setTooltipText
-
Methods inherited from interface com.vaadin.flow.data.binder.HasValidator
addValidationStatusChangeListener
-
-
-
-
Constructor Detail
-
PasswordField
public PasswordField()
Constructs an emptyPasswordField.
-
PasswordField
public PasswordField(String label)
Constructs an emptyPasswordFieldwith the given label.- Parameters:
label- the text to set as the label
-
PasswordField
public PasswordField(String label, String placeholder)
Constructs an emptyPasswordFieldwith the given label and placeholder text.- Parameters:
label- the text to set as the labelplaceholder- the placeholder text to set
-
PasswordField
public PasswordField(com.vaadin.flow.component.HasValue.ValueChangeListener<? super com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>> listener)
Constructs an emptyPasswordFieldwith a value change listener.- Parameters:
listener- the value change listener- See Also:
AbstractField.addValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener)
-
PasswordField
public PasswordField(String label, com.vaadin.flow.component.HasValue.ValueChangeListener<? super com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>> listener)
Constructs an emptyPasswordFieldwith a value change listener and a label.- Parameters:
label- the text to set as the labellistener- the value change listener- See Also:
setLabel(String),AbstractField.addValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener)
-
PasswordField
public PasswordField(String label, String initialValue, com.vaadin.flow.component.HasValue.ValueChangeListener<? super com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>> listener)
Constructs aPasswordFieldwith a value change listener, a label and an initial value.- Parameters:
label- the text to set as the labelinitialValue- the initial valuelistener- the value change listener- See Also:
setLabel(String),AbstractField.setValue(Object),AbstractField.addValueChangeListener(com.vaadin.flow.component.HasValue.ValueChangeListener)
-
-
Method Detail
-
getValueChangeMode
public com.vaadin.flow.data.value.ValueChangeMode getValueChangeMode()
The default value is
ValueChangeMode.ON_CHANGE.- Specified by:
getValueChangeModein interfacecom.vaadin.flow.data.value.HasValueChangeMode
-
setValueChangeMode
public void setValueChangeMode(com.vaadin.flow.data.value.ValueChangeMode valueChangeMode)
- Specified by:
setValueChangeModein interfacecom.vaadin.flow.data.value.HasValueChangeMode
-
setValueChangeTimeout
public void setValueChangeTimeout(int valueChangeTimeout)
- Specified by:
setValueChangeTimeoutin interfacecom.vaadin.flow.data.value.HasValueChangeMode
-
getValueChangeTimeout
public int getValueChangeTimeout()
- Specified by:
getValueChangeTimeoutin interfacecom.vaadin.flow.data.value.HasValueChangeMode
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessagein interfacecom.vaadin.flow.component.HasValidation
-
setErrorMessage
public void setErrorMessage(String errorMessage)
Description copied from class:GeneratedVaadinTextFieldDescription copied from corresponding location in WebComponent:
Error to show when the input value is invalid.
- Specified by:
setErrorMessagein interfacecom.vaadin.flow.component.HasValidation- Overrides:
setErrorMessagein classGeneratedVaadinTextField<PasswordField,String>- Parameters:
errorMessage- the String value to set
-
isInvalid
public boolean isInvalid()
- Specified by:
isInvalidin interfacecom.vaadin.flow.component.HasValidation
-
setInvalid
public void setInvalid(boolean invalid)
Description copied from class:GeneratedVaadinTextFieldDescription copied from corresponding location in WebComponent:
This property is set to true when the control value is invalid.
- Specified by:
setInvalidin interfacecom.vaadin.flow.component.HasValidation- Overrides:
setInvalidin classGeneratedVaadinTextField<PasswordField,String>- Parameters:
invalid- the boolean value to set
-
setLabel
public void setLabel(String label)
Description copied from class:GeneratedVaadinTextFieldDescription copied from corresponding location in WebComponent:
String used for the label element.
- Specified by:
setLabelin interfacecom.vaadin.flow.component.HasLabel- Overrides:
setLabelin classGeneratedVaadinTextField<PasswordField,String>- Parameters:
label- the String value to set
-
getLabel
public String getLabel()
String used for the label element.- Specified by:
getLabelin interfacecom.vaadin.flow.component.HasLabel- Returns:
- the
labelproperty from the webcomponent
-
setPlaceholder
public void setPlaceholder(String placeholder)
Description copied from class:GeneratedVaadinTextFieldDescription copied from corresponding location in WebComponent:
A hint to the user of what can be entered in the control.
- Overrides:
setPlaceholderin classGeneratedVaadinTextField<PasswordField,String>- Parameters:
placeholder- the String value to set
-
getPlaceholder
public String getPlaceholder()
A hint to the user of what can be entered in the component.- Returns:
- the
placeholderproperty from the webcomponent
-
setAutofocus
public void setAutofocus(boolean autofocus)
Description copied from class:GeneratedVaadinTextFieldDescription copied from corresponding location in WebComponent:
Specify that this control should have input focus when the page loads.
- Overrides:
setAutofocusin classGeneratedVaadinTextField<PasswordField,String>- Parameters:
autofocus- the boolean value to set
-
isAutofocus
public boolean isAutofocus()
Specify that this control should have input focus when the page loads.- Returns:
- the
autofocusproperty from the webcomponent
-
setMaxLength
public void setMaxLength(int maxLength)
Maximum number of characters (in Unicode code points) that the user can enter.- Parameters:
maxLength- the maximum length
-
getMaxLength
public int getMaxLength()
Maximum number of characters (in Unicode code points) that the user can enter.- Returns:
- the
maxlengthproperty from the webcomponent
-
setMinLength
public void setMinLength(int minLength)
Minimum number of characters (in Unicode code points) that the user can enter.- Parameters:
minLength- the minimum length
-
getMinLength
public int getMinLength()
Minimum number of characters (in Unicode code points) that the user can enter.- Returns:
- the
minlengthproperty from the webcomponent
-
isRequired
public boolean isRequired()
Specifies that the user must fill in a value.- Returns:
- the
requiredproperty from the webcomponent
-
setRequired
public void setRequired(boolean required)
Description copied from class:GeneratedVaadinTextFieldDescription copied from corresponding location in WebComponent:
Specifies that the user must fill in a value.
- Overrides:
setRequiredin classGeneratedVaadinTextField<PasswordField,String>- Parameters:
required- the boolean value to set
-
isPreventInvalidInput
@Deprecated public boolean isPreventInvalidInput()
Deprecated.Since 23.2, this API is deprecated.When set totrue, user is prevented from typing a value that conflicts with the givenpattern.- Returns:
- the
preventInvalidInputproperty from the webcomponent
-
setPreventInvalidInput
@Deprecated public void setPreventInvalidInput(boolean preventInvalidInput)
Deprecated.Since 23.2, this API is deprecated in favor ofHasAllowedCharPattern.setAllowedCharPattern(String)Description copied from class:GeneratedVaadinTextFieldDescription copied from corresponding location in WebComponent:
When set to true, user is prevented from typing a value that conflicts with the given
pattern,maxlengthorminlengthproperties.- Overrides:
setPreventInvalidInputin classGeneratedVaadinTextField<PasswordField,String>- Parameters:
preventInvalidInput- the boolean value to set
-
setPattern
public void setPattern(String pattern)
Description copied from class:GeneratedVaadinTextFieldDescription copied from corresponding location in WebComponent:
A regular expression that the value is checked against. The pattern must match the entire value, not just some subset.
- Overrides:
setPatternin classGeneratedVaadinTextField<PasswordField,String>- Parameters:
pattern- the String value to set
-
getPattern
public String getPattern()
A regular expression that the value is checked against. The pattern must match the entire value, not just some subset.- Returns:
- the
patternproperty from the webcomponent
-
getTitle
public String getTitle()
The text usually displayed in a tooltip popup when the mouse is over the field.- Returns:
- the
titleproperty from the webcomponent
-
setTitle
public void setTitle(String title)
Description copied from class:GeneratedVaadinTextFieldDescription copied from corresponding location in WebComponent:
The text usually displayed in a tooltip popup when the mouse is over the field.
- Overrides:
setTitlein classGeneratedVaadinTextField<PasswordField,String>- Parameters:
title- the String value to set
-
isRevealButtonVisible
public boolean isRevealButtonVisible()
Set tofalseto hide the eye icon which toggles the password visibility.- Returns:
trueif the button is visible,falseotherwise
-
setRevealButtonVisible
public void setRevealButtonVisible(boolean revealButtonVisible)
Set tofalseto hide the eye icon which toggles the password visibility.- Parameters:
revealButtonVisible-trueto set the button visible,falseotherwise
-
isAutoselect
public boolean isAutoselect()
Specifies if the field value gets automatically selected when the field gains focus.- Returns:
trueif autoselect is active,falseotherwise
-
setAutoselect
public void setAutoselect(boolean autoselect)
Set totrueto always have the field value automatically selected when the field gains focus,falseotherwise.- Overrides:
setAutoselectin classGeneratedVaadinTextField<PasswordField,String>- Parameters:
autoselect-trueto set auto select on,falseotherwise
-
getEmptyValue
public String getEmptyValue()
- Specified by:
getEmptyValuein interfacecom.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>,String>- Overrides:
getEmptyValuein classcom.vaadin.flow.component.AbstractField<PasswordField,String>
-
setValue
public void setValue(String value)
Sets the value of this password field. If the new value is not equal togetValue(), fires a value change event. ThrowsNullPointerException, if the value is null.Note:
Binderwill take care of thenullconversion when integrates with password field, as long as no new converter is defined.- Specified by:
setValuein interfacecom.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>,String>- Overrides:
setValuein classcom.vaadin.flow.component.AbstractField<PasswordField,String>- Parameters:
value- the new value, notnull
-
getValue
public String getValue()
Returns the current value of the password field. By default, the empty password field will return an empty string.- Specified by:
getValuein interfacecom.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>,String>- Overrides:
getValuein classcom.vaadin.flow.component.AbstractField<PasswordField,String>- Returns:
- the current value.
-
setRequiredIndicatorVisible
public void setRequiredIndicatorVisible(boolean requiredIndicatorVisible)
- Specified by:
setRequiredIndicatorVisiblein interfacecom.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>,String>- Specified by:
setRequiredIndicatorVisiblein interfacecom.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<PasswordField,String>,String>
-
getDefaultValidator
public com.vaadin.flow.data.binder.Validator<String> getDefaultValidator()
- Specified by:
getDefaultValidatorin interfacecom.vaadin.flow.data.binder.HasValidator<String>
-
validate
protected void validate()
Performs server-side validation of the current value. This is needed because it is possible to circumvent the client-side validation constraints using browser development tools.- Overrides:
validatein classGeneratedVaadinTextField<PasswordField,String>
-
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
- Overrides:
onAttachin classcom.vaadin.flow.component.Component
-
addThemeVariants
public void addThemeVariants(TextFieldVariant... variants)
- Specified by:
addThemeVariantsin interfaceHasThemeVariant<TextFieldVariant>
-
removeThemeVariants
public void removeThemeVariants(TextFieldVariant... variants)
- Specified by:
removeThemeVariantsin interfaceHasThemeVariant<TextFieldVariant>
-
isFeatureFlagEnabled
protected boolean isFeatureFlagEnabled(com.vaadin.experimental.Feature feature)
Returns true if the given feature flag is enabled, false otherwise.Exposed with protected visibility to support mocking
The method requires the
VaadinServiceinstance to obtain the available feature flags, otherwise, the feature is considered disabled.- Parameters:
feature- the feature flag.- Returns:
- whether the feature flag is enabled.
-
-