public abstract class NotificationDisplayer extends Object
Modifier and Type | Class and Description |
---|---|
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,
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.
|
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 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 popup list.priority
- Notification priority.Built on March 29 2013. | Portions Copyright 1997-2013 Sun Microsystems, Inc. All rights reserved.