public class Notification
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Color |
defaultFirstLineColor
The default color for the first line of notifications
|
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
|
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFirstLine()
Gets the text in the first line
|
java.awt.Color |
getFirstLineColor()
Gets the color of the first line
|
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
|
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 |
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
|
public static java.awt.Color defaultTitleColor
public static java.awt.Color defaultFirstLineColor
public static java.awt.Color defaultSecondLineColor
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 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 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 color