Package com.slack.api.model.dialog
Class DialogTextElement
java.lang.Object
com.slack.api.model.dialog.DialogTextElement
- All Implemented Interfaces:
DialogElement
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDialogTextElement
(String label, String name, String value, String placeholder, boolean optional, int maxLength, int minLength, String hint, DialogSubType subtype) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
getHint()
Helpful text provided to assist users in answering a question.getLabel()
Label displayed to user.int
Maximum input length allowed for element.int
Minimum input length allowed for element.getName()
Name of form element.A string displayed as needed to help guide users in completing the element.Subtype for this text type element (e.g.getType()
Type of element.getValue()
A default value for this field.int
hashCode()
boolean
Providetrue
when the form element is not required.void
Helpful text provided to assist users in answering a question.void
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
Name of form element.void
setOptional
(boolean optional) Providetrue
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
A default value for this field.toString()
-
Field Details
-
maxLength
public int maxLengthMaximum input length allowed for element. Up to 150 characters. Defaults to 150.
-
-
Constructor Details
-
DialogTextElement
public DialogTextElement() -
DialogTextElement
-
-
Method Details
-
builder
-
getLabel
Label displayed to user. Required. No more than 24 characters.- Specified by:
getLabel
in interfaceDialogElement
-
getName
Name of form element. Required. No more than 300 characters.- Specified by:
getName
in interfaceDialogElement
-
getType
Type of element. For a text element, the type is alwaystext
. It's required.- Specified by:
getType
in interfaceDialogElement
- See Also:
-
getValue
A default value for this field. Up to 500 characters.- Specified by:
getValue
in interfaceDialogElement
-
getPlaceholder
A string displayed as needed to help guide users in completing the element. 150 character maximum.- Specified by:
getPlaceholder
in interfaceDialogElement
-
isOptional
public boolean isOptional()Providetrue
when the form element is not required. By default, form elements are required.- Specified by:
isOptional
in interfaceDialogElement
-
getMaxLength
public int getMaxLength()Maximum input length allowed for element. Up to 150 characters. Defaults to 150. -
getMinLength
public int getMinLength()Minimum input length allowed for element. Typetext
: Up to 150 characters. Defaults to 0. -
getHint
Helpful text provided to assist users in answering a question. Up to 150 characters. -
getSubtype
Subtype for this text type element (e.g. Number) -
setLabel
Label displayed to user. Required. No more than 24 characters.- Specified by:
setLabel
in interfaceDialogElement
-
setName
Name of form element. Required. No more than 300 characters.- Specified by:
setName
in interfaceDialogElement
-
setValue
A default value for this field. Up to 500 characters.- Specified by:
setValue
in interfaceDialogElement
-
setPlaceholder
A string displayed as needed to help guide users in completing the element. 150 character maximum.- Specified by:
setPlaceholder
in interfaceDialogElement
-
setOptional
public void setOptional(boolean optional) Providetrue
when the form element is not required. By default, form elements are required.- Specified by:
setOptional
in interfaceDialogElement
-
setMaxLength
public void setMaxLength(int maxLength) Maximum input length allowed for element. Up to 150 characters. Defaults to 150. -
setMinLength
public void setMinLength(int minLength) Minimum input length allowed for element. Typetext
: Up to 150 characters. Defaults to 0. -
setHint
Helpful text provided to assist users in answering a question. Up to 150 characters. -
setSubtype
Subtype for this text type element (e.g. Number) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-