Modifier and Type | Method and Description |
---|---|
void |
displayError(java.lang.String message)
Displays the error.
|
void |
displayMessage(java.lang.String message)
Displays the message.
|
java.lang.String[] |
processForm(UIForm form)
Displays a form and returns an array of validated responses.
|
void |
processMenu(UIMenu menu)
Displays a menu and calls the menu action corresponding to the user input.
|
void processMenu(UIMenu menu)
menu.getPrompt(i)
for each menu item i
.
selection
from the user.
menu.runAction(selection)
.
java.lang.String[] processForm(UIForm form)
form.getPrompt(i)
for each form item i
.
response
from the user, for each form item i
, and validates it using form.checkInput(response)
. Only valid responses are accepted.
void displayMessage(java.lang.String message)
void displayError(java.lang.String message)