Interface DialogDisplayer

    • Method Detail

      • displayDialog

        void displayDialog​(Message message)
        Displays a dialog as defined by implementation.
        Parameters:
        message - the message to display in the dialog
      • displayDialog

        String displayDialog​(Message message,
                             String... options)
        Displays a dialog as defined by implementation offering a selection control for each of options and a cancel button.
        Parameters:
        message - the message to display in the dialog
        options - the options to choose from
        Returns:
        the selected option of options or null if the dialog has been canceled
      • displayYesNoDialog

        int displayYesNoDialog​(Message message)
        Displays a message and forces the user to choose a yes- or a no-option.
        Parameters:
        message - the message to confirm
        Returns:
        JOptionPane.YES_OPTION if the yes-option has been chosen, JOptionPane.NO_OPTION otherwise