public class Alerts
extends java.lang.Object
Constructor and Description |
---|
Alerts() |
Modifier and Type | Method and Description |
---|---|
static boolean |
confirm(java.lang.String title,
java.lang.String header,
java.lang.String content)
Displays an alert popup to the user to get a confirmation.
|
static void |
exception(java.lang.Exception e)
Displays an alert popup to the user indicating an internal exception occurred.
|
static void |
failure(java.lang.String content)
Displays an alert popup to the user indicating a failure.
|
static void |
success(java.lang.String content)
Displays an alert popup to the user indicating a success.
|
public static void success(java.lang.String content)
content
- the string detail of the popuppublic static void failure(java.lang.String content)
content
- the string detail of the popuppublic static void exception(java.lang.Exception e)
e
- the exception handledpublic static boolean confirm(java.lang.String title, java.lang.String header, java.lang.String content)
title
- the popup titleheader
- the popup headercontent
- the string detail of the popup