Class ConfirmationDialog

  • All Implemented Interfaces:
    Dialog

    public final class ConfirmationDialog
    extends Object
    implements Dialog
    Represents a simple dialog with text and two actions at the bottom (default: "yes", "no").
    • Constructor Detail

      • ConfirmationDialog

        public ConfirmationDialog​(DialogBase base)
      • ConfirmationDialog

        public ConfirmationDialog​(DialogBase base,
                                  DialogClickAction yes,
                                  DialogClickAction no)
        Creates a new ConfirmationDialog instance.
        Parameters:
        base -
        yes - The "yes" click action / bottom (appears on the left).
        no - The "no" click action / bottom (appears on the right).
    • Method Detail

      • getBase

        public DialogBase getBase()
        Description copied from interface: Dialog
        Gets the dialog base which contains the dialog title and other options common to all types of dialogs.
        Specified by:
        getBase in interface Dialog
        Returns:
        mutable reference to the dialog base
      • yes

        public DialogClickAction yes()
        The "yes" click action / bottom (appears on the left).
      • no

        public DialogClickAction no()
        The "no" click action / bottom (appears on the right).
      • setBase

        public void setBase​(DialogBase base)
        Description copied from interface: Dialog
        Sets the dialog base.
        For internal use only as this is mandatory and should be specified in the constructor.
        Specified by:
        setBase in interface Dialog
        Parameters:
        base - the new dialog base
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object