Package io.jmix.ui
Interface Notifications
- All Known Implementing Classes:
NotificationsImpl
public interface Notifications
Notifications API.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
An event that is fired when notification is closed.static interface
Notification builder object.static enum
Popup notification type.static enum
Popup notification position. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static 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
-