Package io.jmix.ui.sys
Class NotificationsImpl
java.lang.Object
io.jmix.ui.sys.NotificationsImpl
- All Implemented Interfaces:
Notifications
@UIScope
@Component("ui_Notifications")
public class NotificationsImpl
extends Object
implements Notifications
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.Notifications
Notifications.CloseEvent, Notifications.NotificationBuilder, Notifications.NotificationType, Notifications.Position
-
Field Summary
Modifier and TypeFieldDescriptionprotected BackgroundWorker
protected UiComponentProperties
protected HtmlSanitizer
protected static final int
protected AppUI
protected static final int
Fields inherited from interface io.jmix.ui.Notifications
DELAY_DEFAULT, DELAY_FOREVER, DELAY_NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates a notification builder.Creates a notification builder with the passed notification type.protected void
setBackgroundWorker
(BackgroundWorker backgroundWorker) void
-
Field Details
-
HUMANIZED_NOTIFICATION_DELAY_MSEC
protected static final int HUMANIZED_NOTIFICATION_DELAY_MSEC- See Also:
-
WARNING_NOTIFICATION_DELAY_MSEC
protected static final int WARNING_NOTIFICATION_DELAY_MSEC- See Also:
-
ui
-
backgroundWorker
-
componentProperties
-
htmlSanitizer
-
-
Constructor Details
-
NotificationsImpl
public NotificationsImpl()
-
-
Method Details
-
setUi
-
setBackgroundWorker
-
create
Description copied from interface:Notifications
Creates a notification builder.
Example of showing a notification:notifications.create() .withType(NotificationType.WARNING) .withCaption("Alert") .withPosition(Notifications.Position.BOTTOM_RIGHT) .show();
- Specified by:
create
in interfaceNotifications
- Returns:
- notification builder
-
create
Description copied from interface:Notifications
Creates a notification builder with the passed notification type.
Example of showing a notification:notifications.create(NotificationType.WARNING) .withCaption("Alert") .withDescription("Please specify name") .withPosition(Notifications.Position.BOTTOM_RIGHT) .show();
- Specified by:
create
in interfaceNotifications
- Parameters:
type
- notification type- Returns:
- notification builder
-