Interface PasswordField

All Superinterfaces:
Buffered, Component, Component.BelongToFrame, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Field<String>, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, HasInputPrompt, HasValidator<String>, HasValue<String>, HasValueSource<String>, Requirable, TextInputField<String>, TextInputField.HtmlNameSupported, TextInputField.MaxLengthLimited, TextInputField.TextChangeNotifier, Validatable
All Known Implementing Classes:
PasswordFieldImpl

@StudioComponent(caption="PasswordField", category="Components", xmlElement="passwordField", icon="io/jmix/ui/icon/component/passwordField.svg", canvasBehaviour=INPUT_FIELD, documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/password-field.html") public interface PasswordField extends TextInputField<String>, TextInputField.MaxLengthLimited, HasInputPrompt, TextInputField.TextChangeNotifier, TextInputField.HtmlNameSupported
A field that is used to enter secret text information like passwords. The entered text is not displayed on the screen.
  • Field Details

  • Method Details

    • isAutocomplete

      boolean isAutocomplete()
      Return autocomplete attribute value to specify saving it in browser.
    • setAutocomplete

      @StudioProperty(defaultValue="false") void setAutocomplete(Boolean autocomplete)
      Set autocomplete attribute value to specify saving it in browser. False value disables saving passwords in browser.
    • setCapsLockIndicator

      @StudioProperty(type=COMPONENT_REF, options="io.jmix.ui.component.CapsLockIndicator") void setCapsLockIndicator(@Nullable CapsLockIndicator capsLockIndicator)
      Sets CapsLockIndicator component, that will be indicate when caps lock key is active.
      Parameters:
      capsLockIndicator - capsLockIndicator component
    • getCapsLockIndicator

      @Nullable CapsLockIndicator getCapsLockIndicator()
      Returns:
      capsLockIndicator component