Class InputDateFormElement.Builder

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

public static final class InputDateFormElement.Builder extends Object
Input Date Builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • required

      @NonNull public @NonNull InputDateFormElement.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
    • max

      @NonNull public @NonNull InputDateFormElement.Builder max(@NonNull @NonNull LocalDate max)
      Parameters:
      max - The latest date to accept
      Returns:
      The Builder
    • min

      @NonNull public @NonNull InputDateFormElement.Builder min(@NonNull @NonNull LocalDate min)
      Parameters:
      min - The earliest date to accept.
      Returns:
      the Builder
    • name

      @NonNull public @NonNull InputDateFormElement.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
    • step

      @NonNull public @NonNull InputDateFormElement.Builder step(@NonNull @NonNull String step)
      Parameters:
      step - Granularity that the value must adhere to
      Returns:
      The Builder
    • id

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

      @NonNull public @NonNull InputDateFormElement.Builder value(@NonNull @NonNull LocalDate value)
      Parameters:
      value - The value attribute of the input element
      Returns:
      the Builder
    • label

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

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

      @NonNull public @NonNull InputDateFormElement build()
      Returns:
      Creates a InputDateFormElement.