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

      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

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

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

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

      public @NonNull TextareaFormElement.Builder name(@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

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

      public @NonNull TextareaFormElement.Builder placeholder(@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

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

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

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

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