|
org.openide.awt 7.23.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.awt.NotificationDisplayer
public abstract class NotificationDisplayer
Creates and shows clickable notifications in the main status line.
Nested Class Summary | |
---|---|
static class |
NotificationDisplayer.Priority
Priority of Notification |
Constructor Summary | |
---|---|
NotificationDisplayer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationDisplayer()
Method Detail |
---|
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 priority
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 popup list.priority
- Notification priority.
|
org.openide.awt 7.23.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |