Package org.oddjob.input
Interface InputMedium
- All Known Implementing Classes:
WebForm
public interface InputMedium
Allows an
InputHandler to provide a call-back to an
InputRequest. Implementation are essentially the Visitor in
the Visitor Pattern.- Author:
- rob
-
Method Summary
Modifier and TypeMethodDescriptionvoidPrompt for a yes/no confirmation.voidfile(String message, String defaultValue, FileSelectionOptions options) voidDisplay a message.voidA prompt for a password.voidA simple prompt for a value.
-
Method Details
-
prompt
A simple prompt for a value.- Parameters:
prompt-defaultValue-
-
password
A prompt for a password. The implementing medium should not display the password as it is typed.- Parameters:
prompt-
-
confirm
Prompt for a yes/no confirmation.- Parameters:
message-defaultValue- True for yes, False for no.
-
message
Display a message. Wait for acknowledgement. (Any Key To Continue type thing).- Parameters:
message-
-
file
-