Interface UserInteraction

  • All Known Implementing Classes:
    DialogToggleInteraction

    public interface UserInteraction
    Encapsulates user interaction.
    Author:
    Stefan Dirix
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CANCEL
      Indicates a 'Cancel' answer.
      static int NO
      Indicates a 'No' answer.
      static int YES
      Indicates a 'Yes' answer.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int askQuestion​(java.lang.String title, java.lang.String question, java.lang.String toggle)
      Asks the user a question.
    • Method Detail

      • askQuestion

        int askQuestion​(java.lang.String title,
                        java.lang.String question,
                        java.lang.String toggle)
        Asks the user a question.
        Parameters:
        title - The title of the question.
        question - The question itself.
        toggle - The message for an eventual toggle box.
        Returns:
        The answer, typically UserInteraction.YES, UserInteraction.NO or UserInteraction.CANCEL