Package se.conciliate.extensions.ui
Interface ShellNotification
public interface ShellNotification
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetDate()default longThe duration (in ms) for which to show the notification.default StringgetId()getTitle()default booleanTrue if the notification should be kept in the list of unread notifications after shown.static ShellNotificationnewShellNotification(ShellNotification.Category c, String title, String message) Creates a new notification with the given category, title and message.static ShellNotificationnewShellNotification(ShellNotification.Category c, String title, String message, boolean showAsUnread, long duration) static ShellNotificationnewShellNotification(ShellNotification.Category c, String title, ShellNotificationHTML html) Creates a new notification with the given category, title and html-message.static ShellNotificationnewShellNotification(ShellNotification.Category c, String title, ShellNotificationHTML html, boolean showAsUnread, long duration) default ShellNotificationstatic ShellNotificationwithId(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
-