public abstract class NotificationDisplayer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NotificationDisplayer.Category
Category of Notification, displayed in Notifications TC.
|
static class |
NotificationDisplayer.Priority
Priority of Notification
|
Constructor and Description |
---|
NotificationDisplayer() |
Modifier and Type | Method and Description |
---|---|
static NotificationDisplayer |
getDefault()
Looks for an implementation in global Lookup, if none is found then it falls
back to a primitive implementation which displays the notifications in main
window's status line.
|
abstract Notification |
notify(String title,
Icon icon,
JComponent balloonDetails,
JComponent popupDetails,
NotificationDisplayer.Priority priority)
Create and show new notification with customized content.
|
Notification |
notify(String title,
Icon icon,
JComponent balloonDetails,
JComponent popupDetails,
NotificationDisplayer.Priority priority,
NotificationDisplayer.Category category)
Create and show new notification with customized content.
|
Notification |
notify(String title,
Icon icon,
JComponent balloonDetails,
JComponent popupDetails,
NotificationDisplayer.Priority priority,
String categoryName)
Create and show new notification with customized content.
|
Notification |
notify(String title,
Icon icon,
String detailsText,
ActionListener detailsAction)
Create and show new notification with the default priority.
|
abstract Notification |
notify(String title,
Icon icon,
String detailsText,
ActionListener detailsAction,
NotificationDisplayer.Priority priority)
Create and show new notification.
|
Notification |
notify(String title,
Icon icon,
String detailsText,
ActionListener detailsAction,
NotificationDisplayer.Priority priority,
NotificationDisplayer.Category category)
Create and show new notification.
|
Notification |
notify(String title,
Icon icon,
String detailsText,
ActionListener detailsAction,
NotificationDisplayer.Priority priority,
String categoryName)
Create and show new notification.
|
public static NotificationDisplayer getDefault()
public Notification notify(String title, Icon icon, String detailsText, ActionListener detailsAction)
title
- Notification title. Html is not supported, any html tags will
be escaped.icon
- Notification icondetailsText
- Detailed description of the notification. If detailsAction
is non-null then this text will be presented as a clickable link. Html is
not supported, any html tags will be escaped.detailsAction
- Action to invoke when user click details text or null.public abstract Notification notify(String title, Icon icon, String detailsText, ActionListener detailsAction, NotificationDisplayer.Priority priority)
title
- Notification title. Html is not supported, any html tags will
be escaped.icon
- Notification icondetailsText
- Detailed description of the notification. If detailsAction
is non-null then this text will be presented as a clickable link. Html is
not supported, any html tags will be escaped.detailsAction
- Action to invoke when user click details text or null.priority
- Notification prioritypublic Notification notify(String title, Icon icon, String detailsText, ActionListener detailsAction, NotificationDisplayer.Priority priority, NotificationDisplayer.Category category)
title
- Notification title. Html is not supported, any html tags will
be escaped.icon
- Notification icondetailsText
- Detailed description of the notification. If detailsAction
is non-null then this text will be presented as a clickable link. Html is
not supported, any html tags will be escaped.detailsAction
- Action to invoke when user click details text or null.priority
- Notification prioritycategory
- Notification category.public Notification notify(String title, Icon icon, String detailsText, ActionListener detailsAction, NotificationDisplayer.Priority priority, String categoryName)
title
- Notification title. Html is not supported, any html tags will be escaped.icon
- Notification icondetailsText
- Detailed description of the notification. If detailsAction
is non-null then this text will be presented as a clickable link. Html is
not supported, any html tags will be escaped.detailsAction
- Action to invoke when user click details text or null.priority
- Notification prioritycategoryName
- Notification category name, refers to a custom category created in e.g. layer.xml.public abstract Notification notify(String title, Icon icon, JComponent balloonDetails, JComponent popupDetails, NotificationDisplayer.Priority priority)
title
- Notification title. Html is not supported, any html tags will
be escaped.icon
- Notification iconballoonDetails
- Component that will show below notification title
in a balloon.popupDetails
- Component that will show below notification title
in notifications list.priority
- Notification priority.public Notification notify(String title, Icon icon, JComponent balloonDetails, JComponent popupDetails, NotificationDisplayer.Priority priority, NotificationDisplayer.Category category)
title
- Notification title. Html is not supported, any html tags will
be escaped.icon
- Notification iconballoonDetails
- Component that will show below notification title
in a balloon.popupDetails
- Component that will show below notification title
in notifications list.priority
- Notification priority.category
- Notification category.public Notification notify(String title, Icon icon, JComponent balloonDetails, JComponent popupDetails, NotificationDisplayer.Priority priority, String categoryName)
title
- Notification title. Html is not supported, any html tags will
be escaped.icon
- Notification iconballoonDetails
- Component that will show below notification title
in a balloon.popupDetails
- Component that will show below notification title
in notifications list.priority
- Notification priority.categoryName
- Notification category name, refers to a custom category created in e.g. layer.xml.