Class InputNumberFormElement.Builder

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

public static final class InputNumberFormElement.Builder extends Object
Input Number Builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • required

      @NonNull public @NonNull InputNumberFormElement.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 InputNumberFormElement.Builder readOnly(boolean readOnly)
      Parameters:
      readOnly - A Boolean attribute which, if present, means this field cannot be edited by the user.
      Returns:
      The Builder
    • name

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

      @NonNull public @NonNull InputNumberFormElement.Builder value(@Nullable @Nullable Number value)
      Parameters:
      value - A number representing the value of the input number
      Returns:
      a Builder
    • max

      @NonNull public @NonNull InputNumberFormElement.Builder max(@Nullable @Nullable Number max)
      Parameters:
      max - The maximum value to accept for this input.
      Returns:
      The Builder
    • min

      @NonNull public @NonNull InputNumberFormElement.Builder min(@Nullable @Nullable Number min)
      Parameters:
      min - The minimum value to accept for this input.
      Returns:
      The Builder
    • placeholder

      @NonNull public @NonNull InputNumberFormElement.Builder placeholder(@Nullable @Nullable 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
    • step

      @NonNull public @NonNull InputNumberFormElement.Builder step(@Nullable @Nullable String step)
      Parameters:
      step - The step attribute is a number that specifies the granularity that the value must adhere to, or the special value any.
      Returns:
      The builder
    • label

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

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

      @NonNull public @NonNull InputNumberFormElement build()
      Returns:
      Instantiate a InputNumberFormElement.