|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserInteraction
User interaction takes place through the display() method (to display information to the user), the keyboardInput() method (to retrieve information from the user) and the promptUser() method to combine display and input in a single call.
CardTerminal
,
CardTerminalIOControl
Method Summary | |
---|---|
void |
clearDisplay()
Clear the display. |
void |
display(java.lang.String message)
Display a message. |
java.lang.String |
keyboardInput(CardTerminalIOControl ioControl)
Return keyboard (i.e., keyboard, PIN pad, etc.) input. |
java.lang.String |
promptUser(java.lang.String prompt,
CardTerminalIOControl ioControl)
Prompt the user for a password, etc. |
Method Detail |
---|
void display(java.lang.String message)
message
- The String to display.void clearDisplay()
java.lang.String keyboardInput(CardTerminalIOControl ioControl)
ioControl
- A CardTerminalIOControl object that specifies
how the user input should look like.
java.lang.String promptUser(java.lang.String prompt, CardTerminalIOControl ioControl)
This method displays a message and reads a password from the user. The implementation of this method depends on the ioBlender implementation of the terminal. E.g. a PIN input could be implemented by the terminals numerical keyboard whereas an alphanumeric password might be implemented through the UserInteractionHandler.
prompt
- The message to be displayed.ioControl
- A CardTerminalIOControl object that specifies
how the user input should look like.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |