Interface TextInputBuilderDelegate
-
- All Superinterfaces:
ComponentBuilderDelegate
public interface TextInputBuilderDelegate extends ComponentBuilderDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextInputbuild()Creates aTextInputinstance with the given values.voidcopy(TextInput textInput)Copy a TextInput's values into the builder.java.lang.StringgetCustomId()Get the TextInput's component identifier.java.lang.StringgetLabel()Get the TextInput's label.java.util.Optional<java.lang.Integer>getMaximumLength()Get the TextInput's maximum length.java.util.Optional<java.lang.Integer>getMinimumLength()Get the TextInput's minimum length.java.util.Optional<java.lang.String>getPlaceholder()Get the TextInput's placeholder.TextInputStylegetStyle()Get the TextInput's style.ComponentTypegetType()Get the TextInput's type.java.util.Optional<java.lang.String>getValue()Get the TextInput's value.booleanisRequired()Get whether the TextInput is required.voidsetCustomId(java.lang.String customId)Set the TextInput's custom ID.voidsetLabel(java.lang.String label)Set the TextInput's label.voidsetMaximumLength(java.lang.Integer maximumLength)Set the TextInput's maximumLength length.voidsetMinimumLength(java.lang.Integer minimumLength)Set the TextInput's minimum length.voidsetPlaceholder(java.lang.String placeholder)Set the TextInput's placeholder.voidsetRequired(boolean required)Set whether the TextInput is required.voidsetStyle(TextInputStyle style)Set the TextInput's style.voidsetValue(java.lang.String value)Set the TextInput's value.
-
-
-
Method Detail
-
getType
ComponentType getType()
Get the TextInput's type.- Returns:
- Always
ComponentType.TEXT_INPUT
-
copy
void copy(TextInput textInput)
Copy a TextInput's values into the builder.- Parameters:
textInput- The TextInput to copy.
-
getStyle
TextInputStyle getStyle()
Get the TextInput's style.- Returns:
- The TextInput's style.
-
getLabel
java.lang.String getLabel()
Get the TextInput's label.- Returns:
- The TextInput's label.
-
getCustomId
java.lang.String getCustomId()
Get the TextInput's component identifier.- Returns:
- The TextInput's component identifier.
-
getValue
java.util.Optional<java.lang.String> getValue()
Get the TextInput's value.- Returns:
- The TextInput's value.
-
getPlaceholder
java.util.Optional<java.lang.String> getPlaceholder()
Get the TextInput's placeholder.- Returns:
- The TextInput's placeholder.
-
getMinimumLength
java.util.Optional<java.lang.Integer> getMinimumLength()
Get the TextInput's minimum length.- Returns:
- The TextInput's minimum length.
-
getMaximumLength
java.util.Optional<java.lang.Integer> getMaximumLength()
Get the TextInput's maximum length.- Returns:
- The TextInput's maximum length.
-
isRequired
boolean isRequired()
Get whether the TextInput is required.- Returns:
- Whether the TextInput is required.
-
setStyle
void setStyle(TextInputStyle style)
Set the TextInput's style.- Parameters:
style- The style of the TextInput.
-
setLabel
void setLabel(java.lang.String label)
Set the TextInput's label.- Parameters:
label- The TextInput's label.
-
setValue
void setValue(java.lang.String value)
Set the TextInput's value.- Parameters:
value- The TextInput's label.
-
setPlaceholder
void setPlaceholder(java.lang.String placeholder)
Set the TextInput's placeholder.- Parameters:
placeholder- The TextInput's placeholder.
-
setMinimumLength
void setMinimumLength(java.lang.Integer minimumLength)
Set the TextInput's minimum length.- Parameters:
minimumLength- The TextInput's minimum length.
-
setMaximumLength
void setMaximumLength(java.lang.Integer maximumLength)
Set the TextInput's maximumLength length.- Parameters:
maximumLength- The TextInput's maximumLength length.
-
setCustomId
void setCustomId(java.lang.String customId)
Set the TextInput's custom ID.- Parameters:
customId- The TextInput's identifier.
-
setRequired
void setRequired(boolean required)
Set whether the TextInput is required.- Parameters:
required- Whether the TextInput is required or not.
-
-