Interface IDialogService

All Known Implementing Classes:
JavaFxDialogService

public interface IDialogService
Service for presenting popup dialogs to the user. Dialogs are synchronous, and should block the calling thread until they are closed by the user.

Their implementation should preferably present dialogs separately from the main content of the application, preferably as a modal window.

Author:
Erik Zemčík
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    showErrorDialog(String title, String message)
    Displays an error alert dialog to the user.
    void
    Displays an information alert dialog to the user.
  • Method Details

    • showErrorDialog

      void showErrorDialog(String title, String message)
      Displays an error alert dialog to the user. Blocks the current thread until it is closed.
      Parameters:
      title - title of the dialog
      message - message of the dialog
      Throws:
      IllegalArgumentException - if title is null or if message is null
    • showInformationDialog

      void showInformationDialog(String title, String message)
      Displays an information alert dialog to the user. Blocks the current thread until it is closed.
      Parameters:
      title - title of the dialog
      message - message of the dialog
      Throws:
      IllegalArgumentException - if title is null or if message is null