public class TipOfTheDay
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
TipOfTheDay.TipStyle |
Types of opal dialog
|
| Constructor | Description |
|---|---|
TipOfTheDay() |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
TipOfTheDay |
addTip(java.lang.String tip) |
Add a tip
|
org.eclipse.swt.graphics.Image |
getImage() |
|
int |
getIndex() |
|
org.eclipse.swt.widgets.Shell |
getShell() |
|
TipOfTheDay.TipStyle |
getStyle() |
|
java.util.List<java.lang.String> |
getTips() |
|
boolean |
isDisplayShowOnStartup() |
|
boolean |
isShowOnStartup() |
|
void |
open(org.eclipse.swt.widgets.Shell parent) |
Open the "tip of the day" box
|
void |
setDisplayShowOnStartup(boolean displayShowOnStartup) |
|
void |
setImage(org.eclipse.swt.graphics.Image image) |
|
void |
setIndex(int index) |
|
void |
setShowOnStartup(boolean showOnStartup) |
|
void |
setStyle(TipOfTheDay.TipStyle style) |
public void open(org.eclipse.swt.widgets.Shell parent)
parent - the parent shellpublic TipOfTheDay addTip(java.lang.String tip)
tip - tip to addpublic org.eclipse.swt.graphics.Image getImage()
public int getIndex()
public TipOfTheDay.TipStyle getStyle()
public java.util.List<java.lang.String> getTips()
public boolean isDisplayShowOnStartup()
true, the "Show On Startup" checkbox is displayedpublic boolean isShowOnStartup()
public void setDisplayShowOnStartup(boolean displayShowOnStartup)
if - true, the checkbox "Show on startup" is displayedpublic void setIndex(int index)
index - the index of the selected tip. By default, the tip is chosen
randomlypublic void setImage(org.eclipse.swt.graphics.Image image)
image - the image to setpublic void setShowOnStartup(boolean showOnStartup)
the - value of the checkbox "Show on startup"public void setStyle(TipOfTheDay.TipStyle style)
style - the style of the windowpublic org.eclipse.swt.widgets.Shell getShell()