org.oddjob.input
Interface InputMedium


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
 void confirm(String message, Boolean defaultValue)
          Prompt for a yes/no confirmation.
 void file(String message, String defaultValue, FileSelectionOptions options)
           
 void message(String message)
          Display a message.
 void password(String prompt)
          A prompt for a password.
 void prompt(String prompt, String defaultValue)
          A simple prompt for a value.
 

Method Detail

prompt

void prompt(String prompt,
            String defaultValue)
A simple prompt for a value.

Parameters:
prompt -
defaultValue -

password

void password(String prompt)
A prompt for a password. The implementing medium should not display the password as it is typed.

Parameters:
prompt -

confirm

void confirm(String message,
             Boolean defaultValue)
Prompt for a yes/no confirmation.

Parameters:
message -
defaultValue - True for yes, False for no.

message

void message(String message)
Display a message. Wait for acknowledgement. (Any Key To Continue type thing).

Parameters:
message -

file

void file(String message,
          String defaultValue,
          FileSelectionOptions options)