@ApplicationScoped public class NotificationService extends Object
| Constructor and Description |
|---|
NotificationService()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
completeProgressNotification(String uuid,
String title,
SrampUiException error)
Completes an in-progress (progress-style) notification.
|
void |
completeProgressNotification(String uuid,
String title,
String message)
Completes an in-progress (progress-style) notification.
|
void |
completeProgressNotification(String uuid,
String title,
Throwable error)
Completes an in-progress (progress-style) notification.
|
void |
completeProgressNotification(String uuid,
String title,
com.google.gwt.user.client.ui.Widget widget)
Completes an in-progress (progress-style) notification.
|
protected void |
onNotificationClosed(Notification notification)
Called when a notification is closed, either by the user clicking on the close button
or the alive timer fires.
|
void |
sendErrorNotification(String title,
SrampUiException exception)
Sends an error notification to the user.
|
void |
sendErrorNotification(String title,
String message,
SrampUiException exception)
Sends an error notification to the user.
|
void |
sendErrorNotification(String title,
Throwable exception)
Sends an error notification to the user.
|
protected void |
sendNotification(NotificationBean notification)
Sends a notification (local/client only).
|
void |
sendNotification(String title,
String message)
Sends a simple notification to the user.
|
NotificationBean |
startProgressNotification(String title,
String message)
Starts a progress style notification.
|
public final void sendNotification(String title, String message)
title - message - public final void sendErrorNotification(String title, String message, SrampUiException exception)
title - message - exception - public final void sendErrorNotification(String title, SrampUiException exception)
title - exception - public final void sendErrorNotification(String title, Throwable exception)
title - exception - public final NotificationBean startProgressNotification(String title, String message)
title - message - exception - public final void completeProgressNotification(String uuid, String title, String message)
title - message - exception - public final void completeProgressNotification(String uuid, String title, com.google.gwt.user.client.ui.Widget widget)
title - widget - exception - public final void completeProgressNotification(String uuid, String title, SrampUiException error)
title - message - exception - public void completeProgressNotification(String uuid, String title, Throwable error)
uuid - title - error - protected void sendNotification(NotificationBean notification)
notification - protected void onNotificationClosed(Notification notification)
notification - Copyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.