Nebula TipOfTheDay

Introduction

Contents

Usage

This component is a widget that displays a "Tip of The Day". It contains the area to display the tip, buttons to navigate through the list of tips, a close button and optionnaly a checkbox "show tips on startup".

The first thing to do if to create an instance of TipOfTheDay and add tips :

final TipOfTheDay tip = new TipOfTheDay();
tip.addTip("This is the first tip<br/> " + "<b>This is the first tip</b> " + "<u>This is the first tip</u> " + "<i>This is the first tip</i> " + "This is the first tip " + "This is the first tip<br/>" + "This is the first tip "
+ "This is the first tip");
tip.addTip("This is the second tip<br/> " + "<b>This is the second tip</b> " + "<u>This is the second tip</u> <br/>" + "<i>This is the second tip</i> " + "This is the second tip " + "This is the second tip <br/>" + "This is the second tip "
+ "This is the second tip");

Please notice that tips can contain pseudo-HTML code 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 : <code><nowiki><size=10> (10px), <size=+4>, <size=-4>