public static interface NotificationManager.View
Modifier and Type | Method and Description |
---|---|
void |
hide(NotificationManager.NotificationPopupHandle popup)
Hides the active notification identified by the given popup handle.
|
void |
hideAll()
Hides all active notifications.
|
boolean |
isShowing(org.uberfire.workbench.events.NotificationEvent event)
Checks whether the given event is currently being shown.
|
void |
setContainer(com.google.gwt.user.client.ui.IsWidget container)
Set the container relative to which Notifications are to be shown.
|
void |
setInitialSpacing(int spacing)
Configures the initial vertical spacing for the first notifications
(see
NotificationEvent.getInitialTopOffset() ). |
NotificationManager.NotificationPopupHandle |
show(org.uberfire.workbench.events.NotificationEvent event,
com.google.gwt.user.client.Command hideCommand)
Displays a notification with the given severity and contents.
|
void setContainer(com.google.gwt.user.client.ui.IsWidget container)
show(NotificationEvent, Command)
or #hide(NotificationPopupHandle)
and must be passed a non-null value.container
- The container relative to which Notifications will be shown. Must not be null.void setInitialSpacing(int spacing)
NotificationEvent.getInitialTopOffset()
). A default value is
used if this method is never invoked.spacing
- the vertical spacing in number of pixelsNotificationManager.NotificationPopupHandle show(org.uberfire.workbench.events.NotificationEvent event, com.google.gwt.user.client.Command hideCommand)
event
- The notification event. Must not be null.hideCommand
- The command that must be called when the notification is to be closed. When this command is
invoked, the notification manager will change the notification status from active to acknowledged,
and it will invoke the #hide(NotificationPopupHandle)
method with the notification handle
that this method call returned.#hide(NotificationPopupHandle)
that will hide this notification. Must
not return null.void hide(NotificationManager.NotificationPopupHandle popup)
popup
- The handle for the active notification that should be hidden.void hideAll()
boolean isShowing(org.uberfire.workbench.events.NotificationEvent event)
event
- The notification event. Must not be null.Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.