Class ConfirmDialog

  • Direct Known Subclasses:
    ConfirmDeleteDialog, ConfirmQuitDialog

    public class ConfirmDialog
    extends java.lang.Object
    The ConfirmDialog class provides a dialog for confirming user intentions.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  ConfirmDialog.OnConfirmListener
      The OnQuitListener interface defines the onConfirm handler that is called when the user confirms.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfirmDialog​(android.content.Context context, java.lang.String title, java.lang.String message, java.lang.String confirmButtonText, ConfirmDialog.OnConfirmListener onConfirmListener)
      Constructs a ConfirmQuitDialog
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void show()
      Shows the dialog
      • Methods inherited from class java.lang.Object

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

      • ConfirmDialog

        public ConfirmDialog​(android.content.Context context,
                             java.lang.String title,
                             java.lang.String message,
                             java.lang.String confirmButtonText,
                             ConfirmDialog.OnConfirmListener onConfirmListener)
        Constructs a ConfirmQuitDialog
        Parameters:
        context - the context
        title - the title of the dialog
        message - the message of the dialog
        confirmButtonText - the text of the confirm button
        onConfirmListener - the OnConfirmListener
    • Method Detail

      • show

        public void show()
        Shows the dialog