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 pairid
- It defines an identifier (ID) which must be unique in the whole documentvalue
- HTML to be loaded in the editorlabel
- represents a caption for an item in a user interfaceerrors
- 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 Summary
Modifier and TypeClassDescriptionstatic final class
Textarea form builder. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull TrixEditorFormElement.Builder
builder()
final boolean
Indicates whether some other object is "equal to" this one.errors()
Returns the value of theerrors
record component.getTag()
final int
hashCode()
Returns a hash code value for this object.@Nullable String
id()
Returns the value of theid
record component.@Nullable Message
label()
Returns the value of thelabel
record component.@NonNull String
name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.@Nullable String
value()
Returns the value of thevalue
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.micronaut.views.fields.elements.FormElementAttributes
hasErrors
-
Constructor Details
-
Method Details
-
getTag
- Specified by:
getTag
in interfaceFormElement
- Returns:
- The HTML Tag this element refers to.
-
builder
- Returns:
- Trix Editor FormElement Builder
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
name
Returns the value of thename
record component.- Specified by:
name
in interfaceFormElementAttributes
- Returns:
- the value of the
name
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
label
Returns the value of thelabel
record component.- Specified by:
label
in interfaceFormElementAttributes
- Returns:
- the value of the
label
record component
-
errors
Returns the value of theerrors
record component.- Specified by:
errors
in interfaceFormElementAttributes
- Returns:
- the value of the
errors
record component
-