public class Notification
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Color |
defaultBackgroundColor
The default background color
|
static java.awt.Color |
defaultFirstLineColor
The default color for the first line of notifications
|
static int |
defaultHeight
The default height of notifications
|
static java.awt.Color |
defaultMouseOverBackgroundColor
The default mouse-over background color
|
static java.awt.Color |
defaultSecondLineColor
The default color for the second line of notifications
|
static java.awt.Color |
defaultTitleColor
The default color for the title of notifications
|
static int |
defaultWidth
The default width of notifications
|
| Constructor and Description |
|---|
Notification()
Constructs a Notification
|
Notification(java.lang.String firstLine)
Constructs a Notification
|
Notification(java.lang.String firstLine,
java.lang.String secondLine)
Constructs a Notification
|
Notification(java.lang.String title,
java.lang.String firstLine,
java.lang.String secondLine)
Constructs a Notification
|
Notification(java.lang.String title,
java.lang.String firstLine,
java.lang.String secondLine,
java.awt.Color titleColor,
java.awt.Color firstLineColor,
java.awt.Color secondLineColor)
Constructs a Notification
|
Notification(java.lang.String title,
java.lang.String firstLine,
java.lang.String secondLine,
java.awt.Color titleColor,
java.awt.Color firstLineColor,
java.awt.Color secondLineColor,
int width)
Constructs a Notification
|
Notification(java.lang.String title,
java.lang.String firstLine,
java.lang.String secondLine,
java.awt.Color titleColor,
java.awt.Color firstLineColor,
java.awt.Color secondLineColor,
int width,
java.awt.Color backgroundColor,
java.awt.Color mouseOverBackgroundColor)
Constructs a Notification
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getBackgroundColor()
Gets the background color
|
java.lang.String |
getFirstLine()
Gets the text in the first line
|
java.awt.Color |
getFirstLineColor()
Gets the color of the first line
|
int |
getHeight()
Gets the height
|
java.awt.Color |
getMouseOverBackgroundColor()
Gets the mouse-over background color
|
java.lang.String |
getSecondLine()
Gets the text in the second line
|
java.awt.Color |
getSecondLineColor()
Gets the color of the second line
|
java.lang.String |
getTitle()
Gets the text in the title
|
java.awt.Color |
getTitleColor()
Gets the color of the title
|
int |
getWidth()
Gets the width
|
void |
setBackgroundColor(java.awt.Color color)
Sets the background color
|
void |
setFirstLine(java.lang.String text)
Sets the text in the first line
|
void |
setFirstLine(java.lang.String text,
java.awt.Color color)
Sets the text and color of the first line
|
void |
setFirstLineColor(java.awt.Color color)
Sets the color of the first line
|
void |
setMouseOverBackgroundColor(java.awt.Color color)
Sets the mouse-over background color
|
void |
setSecondLine(java.lang.String text)
Sets the text in the second line
|
void |
setSecondLine(java.lang.String text,
java.awt.Color color)
Sets the text and color of the second line
|
void |
setSecondLineColor(java.awt.Color color)
Sets the color of the second line
|
void |
setTitle(java.lang.String text)
Sets the text in the title
|
void |
setTitle(java.lang.String text,
java.awt.Color color)
Sets the text and color of the title
|
void |
setTitleColor(java.awt.Color color)
Sets the color of the title
|
void |
setWidth(int width)
Sets the width
|
boolean |
show()
Shows this notification on the desktop
|
public static java.awt.Color defaultTitleColor
public static java.awt.Color defaultFirstLineColor
public static java.awt.Color defaultSecondLineColor
public static int defaultWidth
public static int defaultHeight
public static java.awt.Color defaultBackgroundColor
public static java.awt.Color defaultMouseOverBackgroundColor
public Notification()
public Notification(java.lang.String firstLine)
firstLine - The text in the first linepublic Notification(java.lang.String firstLine,
java.lang.String secondLine)
firstLine - The text in the first linesecondLine - The text in the second linepublic Notification(java.lang.String title,
java.lang.String firstLine,
java.lang.String secondLine)
title - The text in the titlefirstLine - The text in the first linesecondLine - The text in the second linepublic Notification(java.lang.String title,
java.lang.String firstLine,
java.lang.String secondLine,
java.awt.Color titleColor,
java.awt.Color firstLineColor,
java.awt.Color secondLineColor)
title - The text in the titlefirstLine - The text in the first linesecondLine - The text in the second linetitleColor - The color of the titlefirstLineColor - The color of the first linesecondLineColor - The color of the second linepublic Notification(java.lang.String title,
java.lang.String firstLine,
java.lang.String secondLine,
java.awt.Color titleColor,
java.awt.Color firstLineColor,
java.awt.Color secondLineColor,
int width)
title - The text in the titlefirstLine - The text in the first linesecondLine - The text in the second linetitleColor - The color of the titlefirstLineColor - The color of the first linesecondLineColor - The color of the second linewidth - The widthpublic Notification(java.lang.String title,
java.lang.String firstLine,
java.lang.String secondLine,
java.awt.Color titleColor,
java.awt.Color firstLineColor,
java.awt.Color secondLineColor,
int width,
java.awt.Color backgroundColor,
java.awt.Color mouseOverBackgroundColor)
title - The text in the titlefirstLine - The text in the first linesecondLine - The text in the second linetitleColor - The color of the titlefirstLineColor - The color of the first linesecondLineColor - The color of the second linewidth - The widthbackgroundColor - The background color of the notificationmouseOverBackgroundColor - The mouse-over background color of the notificiationpublic java.lang.String getTitle()
public java.lang.String getFirstLine()
public java.lang.String getSecondLine()
public java.awt.Color getTitleColor()
public java.awt.Color getFirstLineColor()
public java.awt.Color getSecondLineColor()
public int getWidth()
public int getHeight()
public java.awt.Color getBackgroundColor()
public java.awt.Color getMouseOverBackgroundColor()
public void setTitle(java.lang.String text,
java.awt.Color color)
text - The textcolor - The colorpublic void setFirstLine(java.lang.String text,
java.awt.Color color)
text - The textcolor - The colorpublic void setSecondLine(java.lang.String text,
java.awt.Color color)
text - The textcolor - The colorpublic void setTitle(java.lang.String text)
text - The textpublic void setFirstLine(java.lang.String text)
text - The textpublic void setSecondLine(java.lang.String text)
text - The textpublic void setTitleColor(java.awt.Color color)
color - The colorpublic void setFirstLineColor(java.awt.Color color)
color - The colorpublic void setSecondLineColor(java.awt.Color color)
color - The colorpublic void setWidth(int width)
width - The widthpublic void setBackgroundColor(java.awt.Color color)
color - The colorpublic void setMouseOverBackgroundColor(java.awt.Color color)
color - The colorpublic boolean show()