org.openide.awt 7.8.1

org.openide.awt
Class NotificationDisplayer

java.lang.Object
  extended by org.openide.awt.NotificationDisplayer

public abstract class NotificationDisplayer
extends Object

Creates and shows clickable notifications in the main status line.

Since:
7.6

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

NotificationDisplayer

public NotificationDisplayer()
Method Detail

getDefault

public 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.

Returns:
Default implementation.

notify

public Notification notify(String title,
                           Icon icon,
                           String detailsText,
                           ActionListener detailsAction)
Create and show new notification with the default priority.

Parameters:
title - Notification title. Html is not supported, any html tags will be escaped.
icon - Notification icon
detailsText - 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.
Returns:
New notification.

notify

public abstract Notification notify(String title,
                                    Icon icon,
                                    String detailsText,
                                    ActionListener detailsAction,
                                    NotificationDisplayer.Priority priority)
Create and show new notification.

Parameters:
title - Notification title. Html is not supported, any html tags will be escaped.
icon - Notification icon
detailsText - 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
Returns:
New notification.

notify

public abstract Notification notify(String title,
                                    Icon icon,
                                    JComponent balloonDetails,
                                    JComponent popupDetails,
                                    NotificationDisplayer.Priority priority)
Create and show new notification with customized content.

Parameters:
title - Notification title. Html is not supported, any html tags will be escaped.
icon - Notification icon
balloonDetails - 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.
Returns:
New notification.

org.openide.awt 7.8.1

Built on June 24 2009.  |  Portions Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.