net.sf.okapi.common

## Interface IUserPrompt

- All Known Implementing Classes:
    UserPrompt

      public interface IUserPrompt

  An interface for prompting the user for confirmation before continuing.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `initialize(java.lang.Object uiParent, java.lang.String title)` Initialize the prompt.
    `boolean` | `promptOKCancel(java.lang.String message)` Prompt the user to decide between "OK" and "Cancel".
    `boolean` | `promptYesNoCancel(java.lang.String message)` Prompt the user to decide between "Yes", "No", and "Cancel".

- - ### Method Detail

    - #### initialize

          void initialize(java.lang.Object uiParent,
                          java.lang.String title)

      Initialize the prompt.
      Parameters:
        `uiParent` - The UI parent (used in GUI mode only; can be null otherwise)
        `title` - The title of the dialog (used in GUI mode only; can be null)

    - #### promptYesNoCancel

          boolean promptYesNoCancel(java.lang.String message)
                             throws OkapiUserCanceledException

      Prompt the user to decide between "Yes", "No", and "Cancel".
      Parameters:
        `message` - The text message to display
      Returns:
        true if yes, false if no
      Throws:
        `OkapiUserCanceledException` - If user cancels

    - #### promptOKCancel

          boolean promptOKCancel(java.lang.String message)
                          throws OkapiUserCanceledException

      Prompt the user to decide between "OK" and "Cancel".
      Parameters:
        `message` - The text message to display
      Returns:
        true if OK
      Throws:
        `OkapiUserCanceledException` - If user cancels