Package se.conciliate.extensions.ui
Interface ShellNotification
public interface ShellNotification
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetDate()
default long
The duration (in ms) for which to show the notification.default String
getId()
getTitle()
default boolean
True if the notification should be kept in the list of unread notifications after shown.static ShellNotification
newShellNotification
(ShellNotification.Category c, String title, String message) Creates a new notification with the given category, title and message.static ShellNotification
newShellNotification
(ShellNotification.Category c, String title, String message, boolean showAsUnread, long duration) static ShellNotification
newShellNotification
(ShellNotification.Category c, String title, ShellNotificationHTML html) Creates a new notification with the given category, title and html-message.static ShellNotification
newShellNotification
(ShellNotification.Category c, String title, ShellNotificationHTML html, boolean showAsUnread, long duration) default ShellNotification
static ShellNotification
withId
(ShellNotification notification, String id)
-
Field Details
-
DEFAULT_DURATION
static final int DEFAULT_DURATION- See Also:
-
-
Method Details
-
getCategory
ShellNotification.Category getCategory() -
getTitle
String getTitle() -
getMessage
ShellNotificationHTML getMessage() -
getDate
ZonedDateTime getDate() -
getId
-
withId
-
isShowAsUnread
default boolean isShowAsUnread()True if the notification should be kept in the list of unread notifications after shown.- Returns:
-
getDuration
default long getDuration()The duration (in ms) for which to show the notification.- Returns:
-
newShellNotification
static ShellNotification newShellNotification(ShellNotification.Category c, String title, String message) Creates a new notification with the given category, title and message. The date of the notification will be the local time of the call to this function. This default implementation is immutable.- Parameters:
c
-title
-message
-- Returns:
-
newShellNotification
static ShellNotification newShellNotification(ShellNotification.Category c, String title, String message, boolean showAsUnread, long duration) -
newShellNotification
static ShellNotification newShellNotification(ShellNotification.Category c, String title, ShellNotificationHTML html) Creates a new notification with the given category, title and html-message. The date of the notification will be the local time of the call to this function. This default implementation is immutable.- Parameters:
c
-title
-html
-- Returns:
-
newShellNotification
static ShellNotification newShellNotification(ShellNotification.Category c, String title, ShellNotificationHTML html, boolean showAsUnread, long duration) -
withId
-