public interface DialogManager
Modifier and Type | Method and Description |
---|---|
boolean |
showConfirmationDialog(String title,
String message)
Show a confirmation message to the user with OK/Cancel buttons.
|
void |
showErrorDialog(String title,
String message)
Show an error message to the user.
Note: The code execution will pause until the user closes the dialog. |
void |
showInformationDialog(String title,
String message)
Show an information message to the user.
|
String |
showQuestionDialog(String title,
String question,
String defaultValue)
Ask the user a question in a form of a pop up window,
Note: The code execution will pause until the user answers the question. |
void |
showWarningDialog(String title,
String message)
Show a warning message to the user.
Note: The code execution will pause until the user closes the dialog. |
boolean |
showYesNoDialog(String title,
String message)
Show a confirmation message to the user with Yes/No buttons.
Note: The code execution will pause until the user chooses an option |
String showQuestionDialog(String title, String question, String defaultValue)
title
- title for the pop up window.question
- the question text to display for the user.defaultValue
- the default answer pre filled in the input text.void showInformationDialog(String title, String message)
title
- title of the pop up dialogmessage
- the message inside the dialogvoid showWarningDialog(String title, String message)
title
- title of the pop up dialogmessage
- the message inside the dialogvoid showErrorDialog(String title, String message)
title
- title of the pop up dialogmessage
- the message inside the dialogboolean showConfirmationDialog(String title, String message)
title
- title of the pop up dialogmessage
- the message inside the dialogboolean showYesNoDialog(String title, String message)
title
- title of the pop up dialogmessage
- the message inside the dialogCopyright © 2015. All rights reserved.