public class DialogTextElement extends Object implements DialogElement
| Modifier and Type | Class and Description |
|---|---|
static class |
DialogTextElement.DialogTextElementBuilder |
| Modifier and Type | Field and Description |
|---|---|
int |
maxLength
Maximum input length allowed for element.
|
| Constructor and Description |
|---|
DialogTextElement() |
DialogTextElement(String label,
String name,
String value,
String placeholder,
boolean optional,
int maxLength,
int minLength,
String hint,
DialogSubType subtype) |
| Modifier and Type | Method and Description |
|---|---|
static DialogTextElement.DialogTextElementBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getHint()
Helpful text provided to assist users in answering a question.
|
String |
getLabel()
Label displayed to user.
|
int |
getMaxLength()
Maximum input length allowed for element.
|
int |
getMinLength()
Minimum input length allowed for element.
|
String |
getName()
Name of form element.
|
String |
getPlaceholder()
A string displayed as needed to help guide users in completing the element.
|
DialogSubType |
getSubtype()
Subtype for this text type element (e.g.
|
String |
getType()
Type of element.
|
String |
getValue()
A default value for this field.
|
int |
hashCode() |
boolean |
isOptional()
Provide
true when the form element is not required. |
void |
setHint(String hint)
Helpful text provided to assist users in answering a question.
|
void |
setLabel(String label)
Label displayed to user.
|
void |
setMaxLength(int maxLength)
Maximum input length allowed for element.
|
void |
setMinLength(int minLength)
Minimum input length allowed for element.
|
void |
setName(String name)
Name of form element.
|
void |
setOptional(boolean optional)
Provide
true when the form element is not required. |
void |
setPlaceholder(String placeholder)
A string displayed as needed to help guide users in completing the element.
|
void |
setSubtype(DialogSubType subtype)
Subtype for this text type element (e.g.
|
void |
setValue(String value)
A default value for this field.
|
String |
toString() |
public int maxLength
public static DialogTextElement.DialogTextElementBuilder builder()
public String getLabel()
getLabel in interface DialogElementpublic String getName()
getName in interface DialogElementpublic String getType()
text . It's required.getType in interface DialogElementpublic String getValue()
getValue in interface DialogElementpublic String getPlaceholder()
getPlaceholder in interface DialogElementpublic boolean isOptional()
true when the form element is not required. By default,
form elements are required.isOptional in interface DialogElementpublic int getMaxLength()
public int getMinLength()
text: Up to 150 characters. Defaults to 0.public String getHint()
public DialogSubType getSubtype()
public void setLabel(String label)
setLabel in interface DialogElementpublic void setName(String name)
setName in interface DialogElementpublic void setValue(String value)
setValue in interface DialogElementpublic void setPlaceholder(String placeholder)
setPlaceholder in interface DialogElementpublic void setOptional(boolean optional)
true when the form element is not required. By default,
form elements are required.setOptional in interface DialogElementpublic void setMaxLength(int maxLength)
public void setMinLength(int minLength)
text: Up to 150 characters. Defaults to 0.public void setHint(String hint)
public void setSubtype(DialogSubType subtype)
protected boolean canEqual(Object other)
Copyright © 2020. All rights reserved.