Class TextareaFormElement.Builder

java.lang.Object
io.micronaut.views.fields.elements.TextareaFormElement.Builder
Enclosing class:
TextareaFormElement

public static final class TextareaFormElement.Builder extends Object
Textarea form builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • required

      @NonNull public @NonNull TextareaFormElement.Builder required(boolean required)
      Parameters:
      required - If true indicates that the user must specify a value for the input before the owning form can be submitted.
      Returns:
      The Builder
    • readOnly

      @NonNull public @NonNull TextareaFormElement.Builder readOnly(boolean readOnly)
      Parameters:
      readOnly - indicates that the user cannot modify the value of the control
      Returns:
      The Builder
    • rows

      @NonNull public @NonNull TextareaFormElement.Builder rows(@NonNull @NonNull Integer rows)
      Parameters:
      rows - The number of visible text lines for the control.
      Returns:
      The Builder
    • cols

      @NonNull public @NonNull TextareaFormElement.Builder cols(@NonNull @NonNull Integer cols)
      Parameters:
      cols - The visible width of the text control, in average character widths
      Returns:
      the Builder
    • name

      @NonNull public @NonNull TextareaFormElement.Builder name(@NonNull @NonNull String name)
      Parameters:
      name - Name of the form control. Submitted with the form as part of a name/value pair
      Returns:
      The Builder
    • id

      @NonNull public @NonNull TextareaFormElement.Builder id(@NonNull @NonNull String id)
      Parameters:
      id - It defines an identifier (ID) which must be unique in the whole document
      Returns:
      The Builder
    • placeholder

      @NonNull public @NonNull TextareaFormElement.Builder placeholder(@NonNull @NonNull String placeholder)
      Parameters:
      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.
      Returns:
      the Builder
    • value

      @NonNull public @NonNull TextareaFormElement.Builder value(@NonNull @NonNull String value)
      Parameters:
      value - text area content
      Returns:
      the Builder
    • label

      @NonNull public @NonNull TextareaFormElement.Builder label(Message label)
      Parameters:
      label - represents a caption for an item in a user interface
      Returns:
      The Builder
    • errors

      @NonNull public @NonNull TextareaFormElement.Builder errors(@NonNull @NonNull List<Message> errors)
      Parameters:
      errors - Form element validation Errors.
      Returns:
      The Builder
    • build

      @NonNull public @NonNull TextareaFormElement build()
      Returns:
      Creates a TextAreaFormElement.