Class Prompt.Text
java.lang.Object
com.codename1.cli.Prompt.Text
- Enclosing class:
Prompt
A text question with options: a default, a validator, masking.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionask()Asks the question and answers what was typed.defaultValue(String value) The answer an empty line gives, shown in the prompt.mask(char maskChar) Hides the answer, echoingmaskCharfor each character, or nothing at all when it is0.placeholder(String text) Faint text shown while the answer is empty.validator(Prompt.Validator validator) Checks the answer before it is accepted.
-
Constructor Details
-
Text
A text question.
-
-
Method Details
-
defaultValue
The answer an empty line gives, shown in the prompt. -
validator
Checks the answer before it is accepted. -
mask
Hides the answer, echoingmaskCharfor each character, or nothing at all when it is0. -
placeholder
Faint text shown while the answer is empty. -
ask
Asks the question and answers what was typed.
-