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 Details

    • 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)