org.openbandy.service
Class NotificatorService

java.lang.Object
  extended by org.openbandy.service.Service
      extended by org.openbandy.service.NotificatorService

public final class NotificatorService
extends Service

Provides static methods to notify the user via an alert.

(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.

Version:
1.0
Author:
Philipp Bolliger (philipp@bolliger.name)

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

NotificatorService

public NotificatorService()
Method Detail

confirmationAlert

public static boolean confirmationAlert(java.lang.String notificationMessage)
Create a confirmation alert with the given message and show it to the user (no timeout).

Parameters:
notificationMessage - The message that should be displayed
Returns:
True if the alert could be shown

confirmationAlert

public 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.

Parameters:
notificationMessage - The message that should be displayed
timeout - Number of seconds for which the alert will be shown
Returns:
True if the alert could be shown

errorAlert

public static boolean errorAlert(java.lang.String notificationMessage)
Create an error alert with the given message and show it to the user (no timeout).

Parameters:
notificationMessage - The message that should be displayed

errorAlert

public 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.

Parameters:
notificationMessage - The message that should be displayed
timeout - Number of seconds for which the alert will be shown
Returns:
True if the alert could be shown

infoAlert

public static boolean infoAlert(java.lang.String notificationMessage)
Create an info alert with the given message and show it to the user (no timeout).

Parameters:
notificationMessage - The message that should be displayed
Returns:
True if the alert could be shown

infoAlert

public 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.

Parameters:
notificationMessage - The message that should be displayed
timeout - Number of seconds for which the alert will be shown
Returns:
True if the alert could be shown

alarmAlert

public static boolean alarmAlert(java.lang.String notificationMessage)
Create an alarm alert with the given message and show it to the user (no timeout).

Parameters:
notificationMessage - The message that should be displayed
Returns:
True if the alert could be shown

alarmAlert

public 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.

Parameters:
notificationMessage - The message that should be displayed
timeout - Number of seconds for which the alert will be shown
Returns:
True if the alert could be shown

warningAlert

public static boolean warningAlert(java.lang.String notificationMessage)
Create a warning alert with the given message and show it to the user (no timeout).

Parameters:
notificationMessage - The message that should be displayed
Returns:
True if the alert could be shown

warningAlert

public 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.

Parameters:
notificationMessage - The message that should be displayed
timeout - Number of seconds for which the alert will be shown
Returns:
True if the alert could be shown