Class InputStringFormBuilder<T extends InputStringFormElement,SELF extends InputStringFormBuilder<T,SELF>>
java.lang.Object
io.micronaut.views.fields.elements.InputStringFormBuilder<T,SELF>
- Type Parameters:
T
- The type of the InputStringFormElementSELF
- The type of the subclassed builder
- Direct Known Subclasses:
InputEmailFormElement.Builder
,InputPasswordFormElement.Builder
,InputTelFormElement.Builder
,InputTextFormElement.Builder
,InputUrlFormElement.Builder
public abstract class InputStringFormBuilder<T extends InputStringFormElement,SELF extends InputStringFormBuilder<T,SELF>>
extends Object
Base builder class for all InputStringFormElement builders.
- Since:
- 4.1.0
- Author:
- Tim Yates
-
Field Summary
Modifier and TypeFieldDescriptionInput Errors.protected String
It defines an identifier (ID) which must be unique in the whole document.protected Message
message for an HTML Label element.protected Number
The maximum string length that the user can enter into the text input.protected Number
The minimum string length that the user can enter into the text input.protected String
Name of the form control.protected String
The pattern attribute, when specified, is a regular expression that the input's value must match for the value to pass constraint validation.protected String
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.protected boolean
A Boolean attribute which, if present, means this field cannot be edited by the user.protected boolean
If true indicates that the user must specify a value for the input before the owning form can be submitted.protected Integer
The size attribute is a numeric value indicating how many characters wide the input field should be.protected String
the input value. -
Constructor Summary
-
Method Summary
-
Field Details
-
name
Name of the form control. Submitted with the form as part of a name/value pair. -
id
It defines an identifier (ID) which must be unique in the whole document. -
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. -
required
protected boolean requiredIf true indicates that the user must specify a value for the input before the owning form can be submitted. -
readOnly
protected boolean readOnlyA Boolean attribute which, if present, means this field cannot be edited by the user. -
maxLength
The maximum string length that the user can enter into the text input. -
minLength
The minimum string length that the user can enter into the text input. -
size
The size attribute is a numeric value indicating how many characters wide the input field should be. -
pattern
The pattern attribute, when specified, is a regular expression that the input's value must match for the value to pass constraint validation. -
value
the input value. -
errors
Input Errors. -
label
message for an HTML Label element.
-
-
Constructor Details
-
InputStringFormBuilder
public InputStringFormBuilder()
-
-
Method Details
-
pattern
- Parameters:
pattern
- The pattern attribute, when specified, is a regular expression that the input's value must match for the value to pass constraint validation.- Returns:
- The 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 Builder
-
readOnly
- Parameters:
readOnly
- A Boolean attribute which, if present, means this field cannot be edited by the user.- Returns:
- the Builder
-
size
- Parameters:
size
- The size attribute is a numeric value indicating how many characters wide the input field should be.- Returns:
- The Builder
-
maxLength
- Parameters:
maxLength
- The maximum string length that the user can enter into the text input.- Returns:
- The Builder
-
minLength
- Parameters:
minLength
- The minimum string length that the user can enter into the text input.- 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
-
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
-
value
- Parameters:
value
- The value attribute of the input element- Returns:
- the Builder
-
label
- Parameters:
label
- represents a caption for an item in a user interface- Returns:
- the Builder
-
errors
- Parameters:
errors
- Form element validation Errors.- Returns:
- The builder
-
build
- Returns:
- Creates a
InputTelFormElement
.
-