Package org.opencms.gwt.client.ui
Class CmsNotification
java.lang.Object
org.opencms.gwt.client.ui.CmsNotification
User feedback provider.
- Since:
- 8.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumNotification Mode.static enumNotification Type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe duration of the animations. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsNotificationget()Returns the singleton instance.Returns the widget.booleanReturns if the notification widget is set.voidremoveMessage(CmsNotificationMessage message) Removes the given notification message.voidsend(CmsNotification.Type type, String message) Sends a new notification, that will be removed automatically.voidsendAlert(CmsNotification.Type type, String message) Sends a new blocking alert notification that can be closed by the user.sendBusy(CmsNotification.Type type, String message) Sends a new blocking notification that can not be removed by the user.voidsendDeferred(CmsNotification.Type type, String message) Sends a new notification after all other events have been processed.sendSticky(CmsNotification.Type type, String message) Sends a new sticky notification that can not be removed by the user.voidsetWidget(I_CmsNotificationWidget widget) Sets the widget.
-
Field Details
-
ANIMATION_DURATION
The duration of the animations.- See Also:
-
-
Method Details
-
get
Returns the singleton instance.- Returns:
- the singleton instance
-
getWidget
Returns the widget.- Returns:
- the widget
-
hasWidget
Returns if the notification widget is set. Only if the widget is set, notifications can be shown.- Returns:
trueif the notification widget is set
-
removeMessage
Removes the given notification message.- Parameters:
message- the message to remove
-
send
Sends a new notification, that will be removed automatically.- Parameters:
type- the notification typemessage- the message
-
sendAlert
Sends a new blocking alert notification that can be closed by the user.- Parameters:
type- the notification typemessage- the message
-
sendBusy
Sends a new blocking notification that can not be removed by the user.- Parameters:
type- the notification typemessage- the message- Returns:
- the message, use to hide the message
-
sendDeferred
Sends a new notification after all other events have been processed.- Parameters:
type- the notification typemessage- the message
-
sendSticky
Sends a new sticky notification that can not be removed by the user.- Parameters:
type- the notification typemessage- the message- Returns:
- the message, use to hide the message
-
setWidget
Sets the widget.- Parameters:
widget- the widget to set
-