Class Notifier
java.lang.Object
org.eclipse.nebula.widgets.opal.notifier.Notifier
public class Notifier
extends java.lang.Object
This class provides a notifier window, which is a window that appears in the
bottom of the screen and slides.
-
Constructor Summary
Constructors Constructor Description Notifier()
-
Method Summary
Modifier and Type Method Description protected static org.eclipse.swt.widgets.Shell
createNotificationWindow(org.eclipse.swt.graphics.Image image, java.lang.String title, java.lang.String text, NotifierColors colors)
Creates a notification windowprotected static void
makeShellAppears(org.eclipse.swt.widgets.Shell shell)
static void
notify(java.lang.String title, java.lang.String text)
Starts a notification.static void
notify(java.lang.String title, java.lang.String text, NotifierColorsFactory.NotifierTheme theme)
Starts a notification.static void
notify(org.eclipse.swt.graphics.Image image, java.lang.String title, java.lang.String text)
Starts a notification.static void
notify(org.eclipse.swt.graphics.Image image, java.lang.String title, java.lang.String text, NotifierColorsFactory.NotifierTheme theme)
Starts a notification.
-
Constructor Details
-
Notifier
public Notifier()
-
-
Method Details
-
notify
public static void notify(java.lang.String title, java.lang.String text)Starts a notification. A window will appear in the bottom of the screen, then will disappear after 4.5 s- Parameters:
title
- the title of the popup windowtext
- the text of the notification
-
notify
public static void notify(org.eclipse.swt.graphics.Image image, java.lang.String title, java.lang.String text)Starts a notification. A window will appear in the bottom of the screen, then will disappear after 4.5 s- Parameters:
image
- the image to display (ifnull
, a default image is displayed)title
- the title of the popup windowtext
- the text of the notification
-
notify
public static void notify(java.lang.String title, java.lang.String text, NotifierColorsFactory.NotifierTheme theme)Starts a notification. A window will appear in the bottom of the screen, then will disappear after 4.5 s- Parameters:
title
- the title of the popup windowtext
- the text of the notificationtheme
- the graphical theme. Ifnull
, the yellow theme is used- See Also:
NotifierColorsFactory.NotifierTheme
-
notify
public static void notify(org.eclipse.swt.graphics.Image image, java.lang.String title, java.lang.String text, NotifierColorsFactory.NotifierTheme theme)Starts a notification. A window will appear in the bottom of the screen, then will disappear after 4.5 s- Parameters:
image
- the image to display (ifnull
, a default image is displayed)title
- the title of the popup windowtext
- the text of the notificationtheme
- the graphical theme. Ifnull
, the yellow theme is used- See Also:
NotifierColorsFactory.NotifierTheme
-
createNotificationWindow
protected static org.eclipse.swt.widgets.Shell createNotificationWindow(org.eclipse.swt.graphics.Image image, java.lang.String title, java.lang.String text, NotifierColors colors)Creates a notification window- Parameters:
image
- image. Ifnull
, a default image is usedtitle
- title, the title of the windowtext
- text of the windowcolors
- color set- Returns:
- the notification window as a shell object
-
makeShellAppears
protected static void makeShellAppears(org.eclipse.swt.widgets.Shell shell)- Parameters:
shell
- shell that will appear
-