Record Class InputPasswordFormElement
java.lang.Object
java.lang.Record
io.micronaut.views.fields.elements.InputPasswordFormElement
- Record Components:
- name- Name of the form control. Submitted with the form as part of a name/value pair
- id- It defines an identifier (ID) which must be unique in the whole document
- placeholder- The placeholder attribute is a string that provides a brief hint to the user as to what kind of information is expected in the field.
- required- If true indicates that the user must specify a value for the input before the owning form can be submitted.
- readOnly- A Boolean attribute which, if present, means this field cannot be edited by the user.
- maxLength- The maximum string length that the user can enter into the text input.
- minLength- The minimum string length that the user can enter into the text input.
- pattern- The pattern attribute, when specified, is a regular expression that the input's value must match for the value to pass constraint validation.
- size- The size attribute is a numeric value indicating how many characters wide the input field should be.
- value- The value attribute of the input element
- label- the input label
- errors- errors associated with this input
- All Implemented Interfaces:
- FormElementAttributes,- GlobalAttributes,- InputFormElement,- InputStringFormElement,- FormElement
@Introspected(builder=@IntrospectionBuilder(builderClass=Builder.class))
public record InputPasswordFormElement(@NonNull String name, @Nullable String id, @Nullable String placeholder, boolean required, boolean readOnly, @Nullable Number maxLength, @Nullable Number minLength, @Nullable String pattern, @Nullable Integer size, @Nullable String value, @Nullable Message label, @NonNull List<Message> errors)
extends Record
implements InputFormElement, FormElementAttributes, GlobalAttributes, InputStringFormElement
Input Password.
- Since:
- 4.1.0
- Author:
- Sergio del Amo
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classInput Password Builder.
- 
Constructor SummaryConstructorsConstructorDescriptionInputPasswordFormElement(@NonNull String name, @Nullable String id, @Nullable String placeholder, boolean required, boolean readOnly, @Nullable Number maxLength, @Nullable Number minLength, @Nullable String pattern, @Nullable Integer size, @Nullable String value, @Nullable Message label, @NonNull List<Message> errors) Creates an instance of aInputPasswordFormElementrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionstatic @NonNull InputPasswordFormElement.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.@NonNull InputTypegetType()final inthashCode()Returns a hash code value for this object.@Nullable Stringid()Returns the value of theidrecord component.@Nullable Messagelabel()Returns the value of thelabelrecord component.@Nullable NumberReturns the value of themaxLengthrecord component.@Nullable NumberReturns the value of theminLengthrecord component.@NonNull Stringname()Returns the value of thenamerecord component.@Nullable Stringpattern()Returns the value of thepatternrecord component.@Nullable StringReturns the value of theplaceholderrecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.booleanrequired()Returns the value of therequiredrecord component.@Nullable Integersize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringvalue()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.views.fields.elements.FormElementAttributeshasErrorsMethods inherited from interface io.micronaut.views.fields.elements.InputFormElementgetTag
- 
Constructor Details- 
InputPasswordFormElementpublic InputPasswordFormElement(@NonNull @NonNull String name, @Nullable @Nullable String id, @Nullable @Nullable String placeholder, boolean required, boolean readOnly, @Nullable @Nullable Number maxLength, @Nullable @Nullable Number minLength, @Nullable @Nullable String pattern, @Nullable @Nullable Integer size, @Nullable @Nullable String value, @Nullable @Nullable Message label, @NonNull @NonNull List<Message> errors) Creates an instance of aInputPasswordFormElementrecord class.- Parameters:
- name- the value for the- namerecord component
- id- the value for the- idrecord component
- placeholder- the value for the- placeholderrecord component
- required- the value for the- requiredrecord component
- readOnly- the value for the- readOnlyrecord component
- maxLength- the value for the- maxLengthrecord component
- minLength- the value for the- minLengthrecord component
- pattern- the value for the- patternrecord component
- size- the value for the- sizerecord component
- value- the value for the- valuerecord component
- label- the value for the- labelrecord component
- errors- the value for the- errorsrecord component
 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- InputFormElement
- Returns:
- Value of the type attribute of an input tag
 
- 
builder- Returns:
- the Input Password FormElement Builder
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
nameReturns the value of thenamerecord component.- Specified by:
- namein interface- FormElementAttributes
- Specified by:
- namein interface- InputStringFormElement
- Returns:
- the value of the namerecord component
 
- 
idReturns the value of theidrecord component.- Specified by:
- idin interface- GlobalAttributes
- Specified by:
- idin interface- InputStringFormElement
- Returns:
- the value of the idrecord component
 
- 
placeholderReturns the value of theplaceholderrecord component.- Specified by:
- placeholderin interface- InputStringFormElement
- Returns:
- the value of the placeholderrecord component
 
- 
requiredpublic boolean required()Returns the value of therequiredrecord component.- Specified by:
- requiredin interface- GlobalAttributes
- Specified by:
- requiredin interface- InputStringFormElement
- Returns:
- the value of the requiredrecord component
 
- 
readOnlypublic boolean readOnly()Returns the value of thereadOnlyrecord component.- Specified by:
- readOnlyin interface- InputStringFormElement
- Returns:
- the value of the readOnlyrecord component
 
- 
maxLengthReturns the value of themaxLengthrecord component.- Specified by:
- maxLengthin interface- InputStringFormElement
- Returns:
- the value of the maxLengthrecord component
 
- 
minLengthReturns the value of theminLengthrecord component.- Specified by:
- minLengthin interface- InputStringFormElement
- Returns:
- the value of the minLengthrecord component
 
- 
patternReturns the value of thepatternrecord component.- Specified by:
- patternin interface- InputStringFormElement
- Returns:
- the value of the patternrecord component
 
- 
sizeReturns the value of thesizerecord component.- Specified by:
- sizein interface- InputStringFormElement
- Returns:
- the value of the sizerecord component
 
- 
valueReturns the value of thevaluerecord component.- Specified by:
- valuein interface- InputStringFormElement
- Returns:
- the value of the valuerecord component
 
- 
labelReturns the value of thelabelrecord component.- Specified by:
- labelin interface- FormElementAttributes
- Specified by:
- labelin interface- InputStringFormElement
- Returns:
- the value of the labelrecord component
 
- 
errorsReturns the value of theerrorsrecord component.- Specified by:
- errorsin interface- FormElementAttributes
- Specified by:
- errorsin interface- InputStringFormElement
- Returns:
- the value of the errorsrecord component
 
 
-