public class Dialogs
extends java.lang.Object
Constructor and Description |
---|
Dialogs() |
Modifier and Type | Method and Description |
---|---|
static void |
alert(java.lang.String title,
java.lang.String headerText,
java.lang.String infoText)
Shows an information alert.
|
static boolean |
confirmDialog(java.lang.String title,
java.lang.String headerText,
java.lang.String question)
Shows an confirmation alert with buttons "Yes" and "No".
|
static java.util.Optional<java.lang.String> |
oneInputDialog(java.lang.String title,
java.lang.String headerText,
java.lang.String label)
Shows an input dialog with one input field.
|
static java.util.Optional<java.lang.String[]> |
twoInputsDialog(java.lang.String title,
java.lang.String headerText,
java.lang.String[] labels)
Shows an input dialog with as many input fields as elements in labels
|
public static void alert(java.lang.String title, java.lang.String headerText, java.lang.String infoText)
title
- the title of the pop up windowheaderText
- the string to show in the dialog header areainfoText
- the string to show in the dialog content areapublic static boolean confirmDialog(java.lang.String title, java.lang.String headerText, java.lang.String question)
title
- the title of the pop up windowheaderText
- the string to show in the dialog header areaquestion
- the string to show in the dialog content areapublic static java.util.Optional<java.lang.String> oneInputDialog(java.lang.String title, java.lang.String headerText, java.lang.String label)
title
- the title of the pop up windowheaderText
- the string to show in the dialog header arealabel
- the string to show in the dialog content area before the input fieldpublic static java.util.Optional<java.lang.String[]> twoInputsDialog(java.lang.String title, java.lang.String headerText, java.lang.String[] labels)
title
- the title of the pop up windowheaderText
- the string to show in the dialog header arealabels
- the strings to show in the dialog content area before the input fields