public abstract class NotificationDisplayer
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
NotificationDisplayer.Category |
Category of Notification, displayed in Notifications TC.
|
static class |
NotificationDisplayer.Priority |
Priority of Notification
|
| Constructor | Description |
|---|---|
NotificationDisplayer() |
| Modifier and Type | Method | 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.
|
Notification |
notify(java.lang.String title,
javax.swing.Icon icon,
java.lang.String detailsText,
java.awt.event.ActionListener detailsAction) |
Create and show new notification with the default priority.
|
abstract Notification |
notify(java.lang.String title,
javax.swing.Icon icon,
java.lang.String detailsText,
java.awt.event.ActionListener detailsAction,
NotificationDisplayer.Priority priority) |
Create and show new notification.
|
Notification |
notify(java.lang.String title,
javax.swing.Icon icon,
java.lang.String detailsText,
java.awt.event.ActionListener detailsAction,
NotificationDisplayer.Priority priority,
java.lang.String categoryName) |
Create and show new notification.
|
Notification |
notify(java.lang.String title,
javax.swing.Icon icon,
java.lang.String detailsText,
java.awt.event.ActionListener detailsAction,
NotificationDisplayer.Priority priority,
NotificationDisplayer.Category category) |
Create and show new notification.
|
abstract Notification |
notify(java.lang.String title,
javax.swing.Icon icon,
javax.swing.JComponent balloonDetails,
javax.swing.JComponent popupDetails,
NotificationDisplayer.Priority priority) |
Create and show new notification with customized content.
|
Notification |
notify(java.lang.String title,
javax.swing.Icon icon,
javax.swing.JComponent balloonDetails,
javax.swing.JComponent popupDetails,
NotificationDisplayer.Priority priority,
java.lang.String categoryName) |
Create and show new notification with customized content.
|
Notification |
notify(java.lang.String title,
javax.swing.Icon icon,
javax.swing.JComponent balloonDetails,
javax.swing.JComponent popupDetails,
NotificationDisplayer.Priority priority,
NotificationDisplayer.Category category) |
Create and show new notification with customized content.
|
public static NotificationDisplayer getDefault()
public Notification notify(java.lang.String title, javax.swing.Icon icon, java.lang.String detailsText, java.awt.event.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(java.lang.String title, javax.swing.Icon icon, java.lang.String detailsText, java.awt.event.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(java.lang.String title, javax.swing.Icon icon, java.lang.String detailsText, java.awt.event.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(java.lang.String title, javax.swing.Icon icon, java.lang.String detailsText, java.awt.event.ActionListener detailsAction, NotificationDisplayer.Priority priority, java.lang.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(java.lang.String title, javax.swing.Icon icon, javax.swing.JComponent balloonDetails, javax.swing.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(java.lang.String title, javax.swing.Icon icon, javax.swing.JComponent balloonDetails, javax.swing.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(java.lang.String title, javax.swing.Icon icon, javax.swing.JComponent balloonDetails, javax.swing.JComponent popupDetails, NotificationDisplayer.Priority priority, java.lang.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.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.