Class Option.Builder

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

public static final class Option.Builder extends Object
Option Builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • disabled

      @NonNull public @NonNull Option.Builder disabled(boolean disabled)
      Parameters:
      disabled - If this Boolean attribute is set, this option is not checkable.
      Returns:
      the Builder
    • selected

      @NonNull public @NonNull Option.Builder selected(boolean selected)
      Parameters:
      selected - If present, this Boolean attribute indicates that the option is initially selected.
      Returns:
      the Builder
    • value

      @NonNull public @NonNull Option.Builder value(@NonNull @NonNull String value)
      Parameters:
      value - The content of this attribute represents the value to be submitted with the form, should this option be selected.
      Returns:
      The Builder
    • label

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

      @NonNull public @NonNull Option build()
      Instantiates an Option.
      Returns:
      An Option.