@ConsumerType public interface Text extends Field
Text Sling Model used for the /apps/core/wcm/components/form/text component.| Modifier and Type | Method and Description |
|---|---|
default String |
getConstraintMessage()
Returns the message to be displayed when the constraint specified by
getType() is not fulfilled. |
default String |
getPlaceholder()
Returns the value of the
placeholder HTML attribute. |
default String |
getRequiredMessage()
Returns the message to be displayed if the field is mandatory.
|
default int |
getRows()
Returns the number of rows to display in case this item's type is a
textarea. |
default String |
getType()
Returns the type of the input field such as
text, textarea, date, email etc. |
default boolean |
hideTitle()
Checks if the title (label of the field) should be visually hidden; this is required if the title is mandatory only for
accessibility purposes.
|
default boolean |
isReadOnly()
Checks if the field should be rendered read only.
|
default boolean |
isRequired()
Checks if the this text field is mandatory.
|
getExportedType, getHelpMessage, getId, getName, getTitle, getValuedefault boolean isRequired()
true if the field must have a input, false otherwisedefault in 14.1.0default String getRequiredMessage()
default in 14.1.0isRequired()default String getPlaceholder()
placeholder HTML attribute.default in 14.1.0default boolean isReadOnly()
true if the field should be read-only, false otherwisedefault in 14.1.0default String getConstraintMessage()
getType() is not fulfilled.getType() is not fulfilleddefault in 14.1.0default String getType()
text, textarea, date, email etc.
The types other than textarea are defined by the HTML5 standard.default in 14.1.0default int getRows()
textarea.textarea should displaydefault in 14.1.0default boolean hideTitle()
true if the title should remain hidden, false otherwisedefault in 14.1.0Copyright © 2010 - 2020 Adobe. All Rights Reserved