Class DialogToggleInteraction

  • All Implemented Interfaces:
    UserInteraction

    public class DialogToggleInteraction
    extends java.lang.Object
    implements UserInteraction
    Author:
    Stefan Dirix
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int askQuestion​(java.lang.String title, java.lang.String question, java.lang.String toggleQuestion)
      Asks the user a question.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DialogToggleInteraction

        public DialogToggleInteraction()
        Constructor.
    • Method Detail

      • askQuestion

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