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 TypeMethodDescriptionvoidshowErrorDialog(String title, String message) Displays an error alert dialog to the user.voidshowInformationDialog(String title, String message) Displays an information alert dialog to the user.
-
Method Details
-
showErrorDialog
Displays an error alert dialog to the user. Blocks the currentthreaduntil it is closed.- Parameters:
title- title of the dialogmessage- message of the dialog- Throws:
IllegalArgumentException- iftitleisnullor ifmessageisnull
-
showInformationDialog
Displays an information alert dialog to the user. Blocks the currentthreaduntil it is closed.- Parameters:
title- title of the dialogmessage- message of the dialog- Throws:
IllegalArgumentException- iftitleisnullor ifmessageisnull
-