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 DialogElement
public String getName()
getName
in interface DialogElement
public String getType()
text
. It's required.getType
in interface DialogElement
public String getValue()
getValue
in interface DialogElement
public String getPlaceholder()
getPlaceholder
in interface DialogElement
public boolean isOptional()
true
when the form element is not required. By default,
form elements are required.isOptional
in interface DialogElement
public 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 DialogElement
public void setName(String name)
setName
in interface DialogElement
public void setValue(String value)
setValue
in interface DialogElement
public void setPlaceholder(String placeholder)
setPlaceholder
in interface DialogElement
public void setOptional(boolean optional)
true
when the form element is not required. By default,
form elements are required.setOptional
in interface DialogElement
public 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.