Record Class InputRadioFormElement
java.lang.Object
java.lang.Record
io.micronaut.views.fields.elements.InputRadioFormElement
- Record Components:
- name- Name of the form control. Submitted with the form as part of a name/value pair
- required- If true indicates that the user must specify a value for the input before the owning form can be submitted.
- - Radio Buttons
- label- HTML label
- All Implemented Interfaces:
- InputFormElement,- FormElement
@Introspected(builder=@IntrospectionBuilder(builderClass=Builder.class))
public record InputRadioFormElement(@NonNull String name, boolean required, @NonNull List<Radio> buttons, @NonNull Message label)
extends Record
implements InputFormElement
Input Radio.
- Since:
- 4.1.0
- Author:
- Sergio del Amo
- See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionInputRadioFormElement(@NonNull String name, boolean required, @NonNull List<Radio> buttons, @NonNull Message label) Creates an instance of aInputRadioFormElementrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()buttons()Returns the value of thebuttonsrecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull InputTypegetType()final inthashCode()Returns a hash code value for this object.@NonNull Messagelabel()Returns the value of thelabelrecord component.@NonNull Stringname()Returns the value of thenamerecord component.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.views.fields.elements.InputFormElementgetTag
- 
Constructor Details
- 
Method Details- 
getType- Specified by:
- getTypein interface- InputFormElement
- Returns:
- Value of the type attribute of an input tag
 
- 
builder- Returns:
- Creates a InputRadioFormElement.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.- Returns:
- the value of the namerecord component
 
- 
requiredpublic boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the requiredrecord component
 
- 
buttonsReturns the value of thebuttonsrecord component.- Returns:
- the value of the buttonsrecord component
 
- 
labelReturns the value of thelabelrecord component.- Returns:
- the value of the labelrecord component
 
 
-