Class InputFileFormElement.Builder

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

public static final class InputFileFormElement.Builder extends Object
Input Text Builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • accept

      @NonNull public @NonNull InputFileFormElement.Builder accept(@NonNull @NonNull String accept)
      Parameters:
      accept - The accept attribute defines the file types the file input should accept.
      Returns:
      The Builder
    • required

      @NonNull public @NonNull InputFileFormElement.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
    • name

      @NonNull public @NonNull InputFileFormElement.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 InputFileFormElement.Builder id(@NonNull @NonNull String id)
      Parameters:
      id - It defines an identifier (ID) which must be unique in the whole document
      Returns:
      The Builder
    • label

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

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

      @NonNull public @NonNull InputFileFormElement build()
      /**
      Returns:
      Creates a InputFileFormElement.