Class Radio.Builder

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

public static final class Radio.Builder extends Object
A Radio Builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • value

      public Radio.Builder value(@Nullable @Nullable String value)
      Parameters:
      value - the value of the input radio element
      Returns:
      The Builder
    • id

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

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

      @NonNull public @NonNull Radio.Builder checked(boolean checked)
      Parameters:
      checked - whether the radio button is checked
      Returns:
      The Builder
    • build

      @NonNull public @NonNull Radio build()
      Returns:
      creates the radio button