Class Checkbox.Builder
java.lang.Object
io.micronaut.views.fields.elements.Checkbox.Builder
- Enclosing class:
- Checkbox
Checkbox Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Checkbox
build()
Instantiates a Checkbox.@NonNull Checkbox.Builder
checked
(boolean checked) @NonNull Checkbox.Builder
disabled
(boolean disabled) @NonNull Checkbox.Builder
@NonNull Checkbox.Builder
@NonNull Checkbox.Builder
@NonNull Checkbox.Builder
required
(boolean required) @NonNull Checkbox.Builder
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
- Parameters:
name
- Name of the form control. Submitted with the form as part of a name/value pair- Returns:
- The Checkbox Builder
-
id
- Parameters:
id
- It defines an identifier (ID) which must be unique in the whole document- Returns:
- The Checkbox Builder
-
value
- Parameters:
value
- A string representing the value of the checkbox.- Returns:
- the Builder
-
label
- Parameters:
label
- represents a caption for an item in a user interface- Returns:
- The Checkbox Builder
-
checked
- Parameters:
checked
- A boolean attribute indicating whether this checkbox is checked by default (when the page loads).- Returns:
- The Checkbox Builder
-
disabled
- Parameters:
disabled
- A boolean attribute indicating whether this checkbox is disabled by default (when the page loads).- Returns:
- The Checkbox Builder
-
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 Checkbox Builder
-
build
Instantiates a Checkbox.- Returns:
- A Checkbox
-