Package io.jmix.ui
Interface Notifications
- All Known Implementing Classes:
 NotificationsImpl
public interface Notifications
Notifications API.
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn event that is fired when notification is closed.static interfaceNotification builder object.static enumPopup notification type.static enumPopup notification position. - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int - 
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a notification builder.Creates a notification builder with the passed notification type. 
- 
Field Details
- 
DELAY_FOREVER
static final int DELAY_FOREVER- See Also:
 
 - 
DELAY_NONE
static final int DELAY_NONE- See Also:
 
 - 
DELAY_DEFAULT
static final int DELAY_DEFAULT- See Also:
 
 
 - 
 - 
Method Details
- 
create
Notifications.NotificationBuilder create()Creates a notification builder.
Example of showing a notification:notifications.create() .withType(NotificationType.WARNING) .withCaption("Alert") .withPosition(Notifications.Position.BOTTOM_RIGHT) .show();- Returns:
 - notification builder
 
 - 
create
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();- Parameters:
 type- notification type- Returns:
 - notification builder
 
 
 -