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 window
    protected 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 window
      text - 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 (if null, a default image is displayed)
      title - the title of the popup window
      text - 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 window
      text - the text of the notification
      theme - the graphical theme. If null, 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 (if null, a default image is displayed)
      title - the title of the popup window
      text - the text of the notification
      theme - the graphical theme. If null, 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. If null, a default image is used
      title - title, the title of the window
      text - text of the window
      colors - 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