Record Class TrixEditorFormElement
java.lang.Object
java.lang.Record
io.micronaut.views.fields.elements.TrixEditorFormElement
- 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
- value- HTML to be loaded in the editor
- label- represents a caption for an item in a user interface
- errors- Form element validation Errors.
- All Implemented Interfaces:
- FormElementAttributes,- FormElement
@Introspected(builder=@IntrospectionBuilder(builderClass=Builder.class))
public record TrixEditorFormElement(@NonNull String name, @Nullable String id, @Nullable String value, @Nullable Message label, @NonNull List<Message> errors)
extends Record
implements FormElement, FormElementAttributes
Trix editor form element.
- Since:
- 4.1.0
- Author:
- Sergio del Amo
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classTextarea form builder.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic @NonNull TrixEditorFormElement.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.getTag()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.@NonNull Stringname()Returns the value of thenamerecord 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.FormElementAttributeshasErrors
- 
Constructor Details
- 
Method Details- 
getTag- Specified by:
- getTagin interface- FormElement
- Returns:
- The HTML Tag this element refers to.
 
- 
builder- Returns:
- Trix Editor 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. All components in this record class are compared withObjects::equals(Object,Object).
- 
nameReturns the value of thenamerecord component.- Specified by:
- namein interface- FormElementAttributes
- Returns:
- the value of the namerecord component
 
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
valueReturns the value of thevaluerecord component.- Returns:
- the value of the valuerecord component
 
- 
labelReturns the value of thelabelrecord component.- Specified by:
- labelin interface- FormElementAttributes
- Returns:
- the value of the labelrecord component
 
- 
errorsReturns the value of theerrorsrecord component.- Specified by:
- errorsin interface- FormElementAttributes
- Returns:
- the value of the errorsrecord component
 
 
-