Class NotificationManager
- java.lang.Object
-
- org.uberfire.client.workbench.widgets.notifications.NotificationManager
-
@ApplicationScoped public class NotificationManager extends Object
Observes all notification events, and coordinates their display and removal.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNotificationManager.NotificationPopupHandlestatic interfaceNotificationManager.ViewThe view contract for the UI that shows and hides active notifications.
-
Constructor Summary
Constructors Constructor Description NotificationManager()NotificationManager(org.jboss.errai.ioc.client.container.SyncBeanManager iocManager, PlaceManager placeManager, WorkbenchLayoutInfo workbenchLayoutInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotification(org.uberfire.workbench.events.NotificationEvent event)Adds a new notification message to the system, asking the notification presenter to display it, and storing it in the list of existing notifications.voidonClosePlaceEvent(ClosePlaceEvent event)voidonPlaceLostFocus(PlaceLostFocusEvent event)
-
-
-
Constructor Detail
-
NotificationManager
public NotificationManager()
-
NotificationManager
@Inject public NotificationManager(org.jboss.errai.ioc.client.container.SyncBeanManager iocManager, PlaceManager placeManager, WorkbenchLayoutInfo workbenchLayoutInfo)
-
-
Method Detail
-
addNotification
public void addNotification(@Observes org.uberfire.workbench.events.NotificationEvent event)Adds a new notification message to the system, asking the notification presenter to display it, and storing it in the list of existing notifications. This method can be invoked directly, or it can be invoked indirectly by firing a CDINotificationEvent.- Parameters:
event- The notification to display and store in the notification system.
-
onClosePlaceEvent
public void onClosePlaceEvent(@Observes ClosePlaceEvent event)
-
onPlaceLostFocus
public void onPlaceLostFocus(@Observes PlaceLostFocusEvent event)
-
-