Construct a
TextInputCallback
with a prompt
and default input value.
Parameters:
- prompt - the prompt used to request the information.
- defaultText - the text to be used as the default text displayed
with the prompt.
Throws:
- IllegalArgumentException - if prompt
is null,
if prompt
has a length of 0,
if defaultText
is null
or if defaultText
has a length of 0.