public interface Notifications
Modifier and Type | Interface and Description |
---|---|
static interface |
Notifications.NotificationBuilder
Notification builder object.
|
static class |
Notifications.NotificationType
Popup notification type.
|
static class |
Notifications.Position
Popup notification position.
|
Modifier and Type | Field and Description |
---|---|
static int |
DELAY_DEFAULT |
static int |
DELAY_FOREVER |
static int |
DELAY_NONE |
Modifier and Type | Method and Description |
---|---|
Notifications.NotificationBuilder |
create()
Creates a notification builder.
|
Notifications.NotificationBuilder |
create(Notifications.NotificationType type)
Creates a notification builder with the passed notification type.
|
static final int DELAY_FOREVER
static final int DELAY_NONE
static final int DELAY_DEFAULT
Notifications.NotificationBuilder create()
notifications.create()
.withType(NotificationType.WARNING)
.withCaption("Alert")
.withPosition(Notifications.Position.BOTTOM_RIGHT)
.show();
Notifications.NotificationBuilder create(Notifications.NotificationType type)
notifications.create(NotificationType.WARNING)
.withCaption("Alert")
.withDescription("Please specify name")
.withPosition(Notifications.Position.BOTTOM_RIGHT)
.show();
type
- notification type