Interface TextDialogInput.Builder
- Enclosing interface:
TextDialogInput
A builder for a text dialog input.
Created via DialogInput.text(String, Component)
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the text dialog input.Sets the initial value of the input.labelVisible(boolean labelVisible) Sets whether the label should be visible.maxLength(@Positive int maxLength) Sets the maximum length of the input.multiline(@Nullable TextDialogInput.MultilineOptions multiline) Sets the multiline options for the input.Sets the width of the input.
-
Method Details
-
width
-
labelVisible
@Contract(value="_ -> this", mutates="this") TextDialogInput.Builder labelVisible(boolean labelVisible) Sets whether the label should be visible.- Parameters:
labelVisible- true if the label should be visible, false otherwise- Returns:
- this builder
-
initial
Sets the initial value of the input.- Parameters:
initial- the initial value of the input- Returns:
- this builder
-
maxLength
@Contract(value="_ -> this", mutates="this") TextDialogInput.Builder maxLength(@Positive int maxLength) Sets the maximum length of the input.- Parameters:
maxLength- the maximum length of the input- Returns:
- this builder
-
multiline
@Contract(value="_ -> this", mutates="this") TextDialogInput.Builder multiline(@Nullable TextDialogInput.MultilineOptions multiline) Sets the multiline options for the input.- Parameters:
multiline- the multiline options, or null if not set- Returns:
- this builder
-
build
Builds the text dialog input.- Returns:
- the text dialog input
-