Lines Matching defs:prompt
44 private String prompt;
57 * Construct a {@code NameCallback} with a prompt.
59 * @param prompt the prompt used to request the name.
61 * @exception IllegalArgumentException if {@code prompt} is null
62 * or if {@code prompt} has a length of 0.
64 public NameCallback(String prompt) {
65 if (prompt == null || prompt.length() == 0)
67 this.prompt = prompt;
71 * Construct a {@code NameCallback} with a prompt
74 * @param prompt the prompt used to request the information.
77 * with the prompt.
79 * @exception IllegalArgumentException if {@code prompt} is null,
80 * if {@code prompt} has a length of 0,
84 public NameCallback(String prompt, String defaultName) {
85 if (prompt == null || prompt.length() == 0 ||
89 this.prompt = prompt;
94 * Get the prompt.
96 * @return the prompt.
99 return prompt;