Class TextInputHandlerBuilder
java.lang.Object
de.chojo.jdautil.modals.handler.TextInputHandlerBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull TextInputHandlerBuilderSets the input as optionalbuild()withHandler(Consumer<ModalMapping> handler) Set a handler which will handle the input of the text iput@NonNull TextInputHandlerBuilderwithMaxLength(int maxLength) @NonNull TextInputHandlerBuilderwithMinLength(int minLength) @NonNull TextInputHandlerBuilderwithPlaceholder(@Nullable String placeholder) @NonNull TextInputHandlerBuilderwithRequiredRange(int min, int max) @NonNull TextInputHandlerBuilder
-
Constructor Details
-
TextInputHandlerBuilder
-
-
Method Details
-
asOptional
Sets the input as optional- Returns:
- builder instance
-
withMinLength
- Returns:
- builder instance
-
withMaxLength
- Returns:
- builder instance
-
withRequiredRange
- Returns:
- builder instance
-
withValue
- Returns:
- builder instance
-
withPlaceholder
- Returns:
- builder instance
-
withHandler
Set a handler which will handle the input of the text iput- Parameters:
handler- a handler to accept the modal mapping- Returns:
- builder instance
-
build
-