Class InputNumberFormElement.Builder
java.lang.Object
io.micronaut.views.fields.elements.InputNumberFormElement.Builder
- Enclosing class:
- InputNumberFormElement
Input Number Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull InputNumberFormElement
build()
@NonNull InputNumberFormElement.Builder
@NonNull InputNumberFormElement.Builder
@NonNull InputNumberFormElement.Builder
@NonNull InputNumberFormElement.Builder
@NonNull InputNumberFormElement.Builder
@NonNull InputNumberFormElement.Builder
@NonNull InputNumberFormElement.Builder
placeholder
(@Nullable String placeholder) @NonNull InputNumberFormElement.Builder
readOnly
(boolean readOnly) @NonNull InputNumberFormElement.Builder
required
(boolean required) @NonNull InputNumberFormElement.Builder
@NonNull InputNumberFormElement.Builder
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
- Parameters:
readOnly
- A Boolean attribute which, if present, means this field cannot be edited by the user.- Returns:
- The Builder
-
name
- Parameters:
name
- Name of the form control. Submitted with the form as part of a name/value pair- Returns:
- The Builder
-
id
- Parameters:
id
- It defines an identifier (ID) which must be unique in the whole document- Returns:
- the Builder
-
value
- Parameters:
value
- A number representing the value of the input number- Returns:
- a Builder
-
max
- Parameters:
max
- The maximum value to accept for this input.- Returns:
- The Builder
-
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
- 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
- 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
- Returns:
- Instantiate a
InputNumberFormElement
.
-