Record Class InputDateTimeLocalFormElement
java.lang.Object
java.lang.Record
io.micronaut.views.fields.elements.InputDateTimeLocalFormElement
- Record Components:
name- Name of the form control. Submitted with the form as part of a name/value pairid- It defines an identifier (ID) which must be unique in the whole documentrequired- If true indicates that the user must specify a value for the input before the owning form can be submitted.max- The latest date and time to acceptmin- The earliest date and time to acceptvalue- The value of the Input Datetime Localstep- Granularity that the value must adhere tolabel- represents a caption for an item in a user interfaceerrors- Form element validation Errors.
- All Implemented Interfaces:
FormElementAttributes,GlobalAttributes,InputFormElement,FormElement
@Introspected(builder=@IntrospectionBuilder(builderClass=Builder.class))
public record InputDateTimeLocalFormElement(@NonNull String name, @Nullable String id, boolean required, @Nullable LocalDateTime max, @Nullable LocalDateTime min, @Nullable LocalDateTime value, @Nullable String step, @Nullable Message label, @NonNull List<Message> errors)
extends Record
implements InputFormElement, GlobalAttributes, FormElementAttributes
- Since:
- 4.1.0
- Author:
- Sergio del Amo
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInput Date Time Builder. -
Constructor Summary
ConstructorsConstructorDescriptionInputDateTimeLocalFormElement(@NonNull String name, @Nullable String id, boolean required, @Nullable LocalDateTime max, @Nullable LocalDateTime min, @Nullable LocalDateTime value, @Nullable String step, @Nullable Message label, @NonNull List<Message> errors) Creates an instance of aInputDateTimeLocalFormElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull InputDateTimeLocalFormElement.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 LocalDateTimemax()Returns the value of themaxrecord component.@Nullable LocalDateTimemin()Returns the value of theminrecord component.@NonNull Stringname()Returns the value of thenamerecord component.booleanrequired()Returns the value of therequiredrecord component.@Nullable Stringstep()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.@Nullable LocalDateTimevalue()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.views.fields.elements.FormElementAttributes
hasErrorsMethods inherited from interface io.micronaut.views.fields.elements.InputFormElement
getTag
-
Constructor Details
-
InputDateTimeLocalFormElement
public InputDateTimeLocalFormElement(@NonNull @NonNull String name, @Nullable @Nullable String id, boolean required, @Nullable @Nullable LocalDateTime max, @Nullable @Nullable LocalDateTime min, @Nullable @Nullable LocalDateTime value, @Nullable @Nullable String step, @Nullable @Nullable Message label, @NonNull @NonNull List<Message> errors) Creates an instance of aInputDateTimeLocalFormElementrecord class.- Parameters:
name- the value for thenamerecord componentid- the value for theidrecord componentrequired- the value for therequiredrecord componentmax- the value for themaxrecord componentmin- the value for theminrecord componentvalue- the value for thevaluerecord componentstep- the value for thesteprecord componentlabel- the value for thelabelrecord componenterrors- the value for theerrorsrecord component
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceInputFormElement- Returns:
- Value of the type attribute of an input tag
-
builder
- Returns:
- a
InputDateTimeLocalFormElementbuilder.
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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 '=='. -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceFormElementAttributes- Returns:
- the value of the
namerecord component
-
id
Returns the value of theidrecord component.- Specified by:
idin interfaceGlobalAttributes- Returns:
- the value of the
idrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Specified by:
requiredin interfaceGlobalAttributes- Returns:
- the value of the
requiredrecord component
-
max
Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
min
Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
step
Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-
label
Returns the value of thelabelrecord component.- Specified by:
labelin interfaceFormElementAttributes- Returns:
- the value of the
labelrecord component
-
errors
Returns the value of theerrorsrecord component.- Specified by:
errorsin interfaceFormElementAttributes- Returns:
- the value of the
errorsrecord component
-