public interface AlertUIService
Modifier and Type | Field and Description |
---|---|
static int |
CANCEL_RETURN_CODE
Indicates that the Cancel button is pressed.
|
static int |
ERROR
The type of alert dialog which displays a warning instead of an error.
|
static int |
OK_DONT_ASK_CODE
Indicates that the OK button is pressed and the Don't ask check box is
checked.
|
static int |
OK_RETURN_CODE
Indicates that the OK button is pressed.
|
static int |
WARNING
The type of the alert dialog, which displays a warning instead of an
error.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases the resources acquired by this instance throughout its lifetime
and removes the listeners.
|
void |
showAlertDialog(java.lang.String title,
java.lang.String message)
Shows an alert dialog with the given title and message.
|
void |
showAlertDialog(java.lang.String title,
java.lang.String message,
int type)
Shows an alert dialog with the given title, message and type of message.
|
void |
showAlertDialog(java.lang.String title,
java.lang.String message,
java.lang.Throwable e)
Shows an alert dialog with the given title message and exception
corresponding to the error.
|
void |
showAlertPopup(java.lang.String title,
java.lang.String message)
Shows an notification pop-up which can be clicked.
|
void |
showAlertPopup(java.lang.String title,
java.lang.String message,
java.lang.String errorDialogTitle,
java.lang.String errorDialogMessage)
Shows an notification pop-up which can be clicked.
|
void |
showAlertPopup(java.lang.String title,
java.lang.String message,
java.lang.String errorDialogTitle,
java.lang.String errorDialogMessage,
java.lang.Throwable e)
Shows an notification pop-up which can be clicked.
|
void |
showAlertPopup(java.lang.String title,
java.lang.String message,
java.lang.Throwable e)
Shows an notification pop-up which can be clicked.
|
static final int OK_RETURN_CODE
static final int CANCEL_RETURN_CODE
static final int OK_DONT_ASK_CODE
static final int WARNING
static final int ERROR
void showAlertDialog(java.lang.String title, java.lang.String message)
title
- the title of the dialogmessage
- the message to be displayedvoid showAlertDialog(java.lang.String title, java.lang.String message, java.lang.Throwable e)
title
- the title of the dialogmessage
- the message to be displayede
- the exception corresponding to the errorvoid showAlertDialog(java.lang.String title, java.lang.String message, int type)
title
- the title of the error dialogmessage
- the message to be displayedtype
- the dialog type (warning or error)void showAlertPopup(java.lang.String title, java.lang.String message)
title
- the title of the error dialog and the notification pop-upmessage
- the message to be displayed in the error dialog and the
pop-upvoid showAlertPopup(java.lang.String title, java.lang.String message, java.lang.Throwable e)
title
- the title of the error dialog and the notification pop-upmessage
- the message to be displayed in the error dialog and the
pop-upe
- the exception that can be shown in the error dialogvoid showAlertPopup(java.lang.String title, java.lang.String message, java.lang.String errorDialogTitle, java.lang.String errorDialogMessage)
title
- the title of the notification pop-upmessage
- the message of the pop-uperrorDialogTitle
- the title of the error dialogerrorDialogMessage
- the message of the error dialogvoid showAlertPopup(java.lang.String title, java.lang.String message, java.lang.String errorDialogTitle, java.lang.String errorDialogMessage, java.lang.Throwable e)
title
- the title of the notification pop-upmessage
- the message of the pop-uperrorDialogTitle
- the title of the error dialogerrorDialogMessage
- the message of the error dialoge
- the exception that can be shown in the error dialogvoid dispose()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.