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(@org.checkerframework.checker.index.qual.Positive int maxLength) Sets the maximum length of the input.multiline(@Nullable TextDialogInput.MultilineOptions multiline) Sets the multiline options for the input.width(@org.jetbrains.annotations.Range(from=1L, to=1024L) int width) Sets the width of the input.
-
Method Details
-
width
@Contract(value="_ -> this", mutates="this") TextDialogInput.Builder width(@org.jetbrains.annotations.Range(from=1L, to=1024L) int width) Sets the width of the input.- Parameters:
width- the width of the input- Returns:
- this builder
-
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(@org.checkerframework.checker.index.qual.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
-