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 ClassesNested classes/interfaces inherited from interface io.jmix.ui.Notifications
Notifications.CloseEvent, Notifications.NotificationBuilder, Notifications.NotificationType, Notifications.Position - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BackgroundWorkerprotected UiComponentPropertiesprotected HtmlSanitizerprotected static final intprotected AppUIprotected static final intFields inherited from interface io.jmix.ui.Notifications
DELAY_DEFAULT, DELAY_FOREVER, DELAY_NONE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a notification builder.Creates a notification builder with the passed notification type.protected voidsetBackgroundWorker(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:NotificationsCreates a notification builder.
Example of showing a notification:notifications.create() .withType(NotificationType.WARNING) .withCaption("Alert") .withPosition(Notifications.Position.BOTTOM_RIGHT) .show();- Specified by:
 createin interfaceNotifications- Returns:
 - notification builder
 
 - 
create
Description copied from interface:NotificationsCreates 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:
 createin interfaceNotifications- Parameters:
 type- notification type- Returns:
 - notification builder
 
 
 -