Class TextInput.Builder
java.lang.Object
com.ultikits.ultitools.ui.TextInput.Builder
- Enclosing class:
TextInput
A reusable, non-thread-safe builder.
-
Field Details
-
key
-
label
-
initial
-
maxLength
private int maxLength -
maxLines
private int maxLines
-
-
Constructor Details
-
Builder
-
-
Method Details
-
initial
Sets the initial text. -
maxLength
- Throws:
IllegalArgumentException- outside 1..256
-
maxLines
- Throws:
IllegalArgumentException- if less than one
-
build
Builds an immutable input.- Throws:
IllegalArgumentException- if initial is longer than maxLength (String#length) or has more than maxLines - 1 line feeds
-