|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openbandy.service.Service
org.openbandy.service.NotificatorService
public final class NotificatorService
Provides static methods to notify the user via an alert.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
Constructor Summary | |
---|---|
NotificatorService()
|
Method Summary | |
---|---|
static boolean |
alarmAlert(java.lang.String notificationMessage)
Create an alarm alert with the given message and show it to the user (no timeout). |
static boolean |
alarmAlert(java.lang.String notificationMessage,
int timeout)
Create an alarm alert with the given message and show it to the user for timeout seconds. |
static boolean |
confirmationAlert(java.lang.String notificationMessage)
Create a confirmation alert with the given message and show it to the user (no timeout). |
static boolean |
confirmationAlert(java.lang.String notificationMessage,
int timeout)
Create a confirmation alert with the given message and show it to the user for timeout seconds. |
static boolean |
errorAlert(java.lang.String notificationMessage)
Create an error alert with the given message and show it to the user (no timeout). |
static boolean |
errorAlert(java.lang.String notificationMessage,
int timeout)
Create an error alert with the given message and show it to the user for timeout seconds. |
static boolean |
infoAlert(java.lang.String notificationMessage)
Create an info alert with the given message and show it to the user (no timeout). |
static boolean |
infoAlert(java.lang.String notificationMessage,
int timeout)
Create an info alert with the given message and show it to the user for timeout seconds. |
static boolean |
warningAlert(java.lang.String notificationMessage)
Create a warning alert with the given message and show it to the user (no timeout). |
static boolean |
warningAlert(java.lang.String notificationMessage,
int timeout)
Create a warning alert with the given message and show it to the user for timeout seconds. |
Methods inherited from class org.openbandy.service.Service |
---|
runningOnMicroEdition, runningOnSunWTK |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificatorService()
Method Detail |
---|
public static boolean confirmationAlert(java.lang.String notificationMessage)
notificationMessage
- The message that should be displayed
public static boolean confirmationAlert(java.lang.String notificationMessage, int timeout)
timeout
seconds.
notificationMessage
- The message that should be displayedtimeout
- Number of seconds for which the alert will be shown
public static boolean errorAlert(java.lang.String notificationMessage)
notificationMessage
- The message that should be displayedpublic static boolean errorAlert(java.lang.String notificationMessage, int timeout)
timeout
seconds.
notificationMessage
- The message that should be displayedtimeout
- Number of seconds for which the alert will be shown
public static boolean infoAlert(java.lang.String notificationMessage)
notificationMessage
- The message that should be displayed
public static boolean infoAlert(java.lang.String notificationMessage, int timeout)
timeout
seconds.
notificationMessage
- The message that should be displayedtimeout
- Number of seconds for which the alert will be shown
public static boolean alarmAlert(java.lang.String notificationMessage)
notificationMessage
- The message that should be displayed
public static boolean alarmAlert(java.lang.String notificationMessage, int timeout)
timeout
seconds.
notificationMessage
- The message that should be displayedtimeout
- Number of seconds for which the alert will be shown
public static boolean warningAlert(java.lang.String notificationMessage)
notificationMessage
- The message that should be displayed
public static boolean warningAlert(java.lang.String notificationMessage, int timeout)
timeout
seconds.
notificationMessage
- The message that should be displayedtimeout
- Number of seconds for which the alert will be shown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |