GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Log in
  • Manage Cookies
  • Download
  • Projects
  • Working Groups
  • Members
  • Marketplace
  • Events
  • Planet Eclipse
  • Newsletter
  • Videos
  • Blogs
  • Report a Bug
  • Forums

This view

  • Original page
  • New address

GeezerVison is showing wiki.eclipse.org — Nebula Notifier - Eclipsepedia

Jump to: navigation, search

Nebula Notifier

< Back to Nebula Main Page

Introduction

Notifier.png

Contents

  • 1 Introduction
  • 2 Usage
  • 3 Example

Usage

This component is dedicated to notify users. When a notification appears, a window slides in the bottom right corner on the screen.

The user can close this window by pressing the red cross. After about 5 seconds, the notification window fades out.

3 colors set (called themes) are available : YELLOW (default), BLUE or GRAY.

The code is pretty simple :

Notifier.notify("New Mail message", "Laurent CARON (lcaron@...)

Test message ..."); Notifier.notify("New Mail message", "Laurent CARON (lcaron@...)

Test message with blue theme...", NotifierTheme.BLUE_THEME);

4 methods are available :

public static void notify(final String title, final String text)
public static void notify(final Image image,final String title, final String text)
public static void notify(final String title, final String text, final NotifierTheme theme)
public static void notify(final Image image,final String title, final String text, final NotifierTheme theme)

You can change the image or the theme.

The text can contains some tags for formatting :

  • <br/> for adding a line break
  • <i>...</i> to render text in italic
  • <u>...</u> to render text in underline
  • <b>...</b> to render text in bold
  • <size>...</size> to increase/decrease text size. You can use the following syntaxes : <size=10> (10px), <size=+4>, <size=-4>
  • <color>...</color> to change foreground color. You can use the following syntaxes : <color=#FFCCAA> (HTML color code), <color=9,255,10> (RGB values) and <color=aliceblue> (HTML color code)
  • <backgroundcolor>...</backgroundcolor> to change background color. You can use the following syntaxes : <backgroundcolor=#FFCCAA> (HTML color code), <backgroundcolor=9,255,10> (RGB values) and <backgroundcolor=aliceblue> (HTML color code)

Example

An example called NotifierSnippet is available in the plugin org.eclipse.nebula.widgets.opal.notifier.snippets.

You can also have a look here : NotifierSnippet.java

Retrieved from "https://wiki.eclipse.org/index.php?title=Nebula_Notifier&oldid=438778"

This page was last modified 07:03, 19 March 2020 by Eclipsepedia anonymous user Unnamed Poltroon.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.