public class PasswordFieldImpl extends AbstractField<JmixPasswordField,java.lang.String,java.lang.String> implements PasswordField, org.springframework.beans.factory.InitializingBean
TextInputField.CaseConversion, TextInputField.CaseConversionSupported, TextInputField.CursorPositionSupported, TextInputField.EnterPressEvent, TextInputField.EnterPressNotifier, TextInputField.HtmlNameSupported, TextInputField.MaxLengthLimited, TextInputField.TextChangeEvent, TextInputField.TextChangeEventMode, TextInputField.TextChangeNotifier, TextInputField.TextSelectionSupported, TextInputField.TrimSupportedHasValue.ValueChangeEvent<V>Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperHasContextHelp.ContextHelpIconClickEvent| Modifier and Type | Field and Description |
|---|---|
protected CapsLockIndicator |
capsLockIndicator |
editable, parentEditableChangeListener, validators, VALIDATORS_LIST_INITIAL_CAPACITYinternalValue, uiTestIdsSupport, valueBindingalignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentNAMEAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Constructor and Description |
|---|
PasswordFieldImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
commit()
Updates all changes since the previous commit to the data source.
|
protected java.lang.String |
convertToModel(java.lang.String componentRawValue) |
protected java.lang.String |
convertToPresentation(java.lang.String modelValue) |
protected JmixPasswordField |
createComponent() |
void |
discard()
Discards all changes since last commit.
|
void |
focus()
Sets focus to this component
|
CapsLockIndicator |
getCapsLockIndicator() |
java.lang.String |
getHtmlName() |
java.lang.String |
getInputPrompt() |
int |
getMaxLength() |
int |
getTabIndex()
Gets the tabulator index of the
HasTabIndex component. |
protected void |
initComponent(JmixPasswordField component) |
boolean |
isAutocomplete()
Return autocomplete attribute value to specify saving it in browser.
|
boolean |
isBuffered() |
boolean |
isEmpty() |
boolean |
isModified()
Tests if the value stored in the object has been modified since it was
last updated from the data source.
|
void |
setAutocomplete(java.lang.Boolean value)
Set autocomplete attribute value to specify saving it in browser.
|
void |
setBuffered(boolean buffered)
Sets the buffered mode.
|
void |
setCapsLockIndicator(CapsLockIndicator capsLockIndicator)
Sets CapsLockIndicator component, that will be indicate when caps lock key is active.
|
void |
setHtmlName(java.lang.String htmlName)
Sets the given
htmlName as a value of "name" HTML attribute. |
void |
setInputPrompt(java.lang.String inputPrompt)
Sets the input prompt - a textual prompt that is displayed when the field
would otherwise be empty, to prompt the user for input.
|
void |
setMaxLength(int value) |
void |
setTabIndex(int tabIndex)
Sets the tabulator index of the
Focusable component. |
protected void |
valueBindingConnected(ValueSource<java.lang.String> valueSource) |
addValidator, attachValueChangeListener, getDatatypeConversionErrorMsg, getErrorMessage, getRequiredMessage, getValidators, isEditable, isRequired, isValid, removeValidator, setEditable, setEditableToComponent, setParent, setRequired, setRequiredMessage, setupComponentErrorProvider, triggerValidators, validateaddValueChangeListener, componentValueChanged, fieldValueEquals, getValue, getValueSource, setUiTestId, setUiTestIdsSupport, setValue, setValueSource, setValueToPresentation, valueBindingActivatedaddAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValueSource, setValueSourceaddValueChangeListener, clear, getEmptyValue, getValue, setValueisEditable, isEditableWithParent, setEditablegetFrame, setFrameaddStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionisValid, isValidateOnCommit, validategetIcon, setIcon, setIconFromSetgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledisCaptionAsHtml, setCaptionAsHtmlgetCaption, setCaptiongetDescription, setDescriptionisDescriptionAsHtml, setDescriptionAsHtmlisHtmlSanitizerEnabled, setHtmlSanitizerEnabledaddValidator, addValidators, getValidators, removeValidatorgetRequiredMessage, isRequired, setRequired, setRequiredMessageisFocusable, setFocusableprotected CapsLockIndicator capsLockIndicator
protected void valueBindingConnected(ValueSource<java.lang.String> valueSource)
valueBindingConnected in class AbstractValueComponent<JmixPasswordField,java.lang.String,java.lang.String>protected JmixPasswordField createComponent()
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionprotected void initComponent(JmixPasswordField component)
protected java.lang.String convertToPresentation(@Nullable
java.lang.String modelValue)
throws ConversionException
convertToPresentation in class AbstractValueComponent<JmixPasswordField,java.lang.String,java.lang.String>ConversionException@Nullable
protected java.lang.String convertToModel(@Nullable
java.lang.String componentRawValue)
throws ConversionException
convertToModel in class AbstractValueComponent<JmixPasswordField,java.lang.String,java.lang.String>ConversionExceptionpublic int getMaxLength()
getMaxLength in interface TextInputField.MaxLengthLimitedpublic void setMaxLength(int value)
setMaxLength in interface TextInputField.MaxLengthLimitedpublic boolean isAutocomplete()
PasswordFieldisAutocomplete in interface PasswordFieldpublic void setAutocomplete(java.lang.Boolean value)
PasswordFieldsetAutocomplete in interface PasswordFieldpublic void focus()
Component.Focusablefocus in interface Component.Focusablepublic int getTabIndex()
Component.FocusableHasTabIndex component.getTabIndex in interface Component.FocusableHasTabIndex componentpublic void setTabIndex(int tabIndex)
Component.FocusableFocusable component.
The tab index property is used to specify the order in which the
fields are focused when the user presses the Tab key. Components with
a defined tab index are focused sequentially first, and then the
components with no tab index.setTabIndex in interface Component.FocusabletabIndex - tab indexpublic void commit()
Bufferedcommit in interface Bufferedcommit in class AbstractValueComponent<JmixPasswordField,java.lang.String,java.lang.String>public void discard()
Buffereddiscard in interface Buffereddiscard in class AbstractValueComponent<JmixPasswordField,java.lang.String,java.lang.String>public boolean isBuffered()
isBuffered in interface BufferedisBuffered in class AbstractValueComponent<JmixPasswordField,java.lang.String,java.lang.String>true if buffered mode is on, false otherwisepublic void setBuffered(boolean buffered)
Buffered
When in buffered mode, an internal buffer will be used to store changes
until Buffered.commit() is called. Calling Buffered.discard() will revert
the internal buffer to the value of the data source.
When in non-buffered mode both read and write operations will be done
directly on the data source. In this mode the Buffered.commit() and
Buffered.discard() methods serve no purpose.
setBuffered in interface BufferedsetBuffered in class AbstractValueComponent<JmixPasswordField,java.lang.String,java.lang.String>buffered - true if buffered mode should be turned on, false otherwisepublic boolean isModified()
BufferedisModified in interface BufferedisModified in class AbstractValueComponent<JmixPasswordField,java.lang.String,java.lang.String>true if the value in the object has been modified
since the last data source update, false if not.public void setCapsLockIndicator(@Nullable
CapsLockIndicator capsLockIndicator)
PasswordFieldsetCapsLockIndicator in interface PasswordFieldcapsLockIndicator - capsLockIndicator component@Nullable public CapsLockIndicator getCapsLockIndicator()
getCapsLockIndicator in interface PasswordField@Nullable public java.lang.String getInputPrompt()
getInputPrompt in interface HasInputPromptpublic void setInputPrompt(@Nullable
java.lang.String inputPrompt)
HasInputPromptsetInputPrompt in interface HasInputPromptinputPrompt - input promptpublic void setHtmlName(@Nullable
java.lang.String htmlName)
TextInputField.HtmlNameSupportedhtmlName as a value of "name" HTML attribute.setHtmlName in interface TextInputField.HtmlNameSupportedhtmlName - name@Nullable public java.lang.String getHtmlName()
getHtmlName in interface TextInputField.HtmlNameSupported